|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pfsw.text.MatchElement
org.pfsw.text.MatchGroup
public class MatchGroup
Represents a group of MatchAttributes and/or MatchGroups
| Constructor Summary | |
|---|---|
MatchGroup()
Initialize the new instance with default values. |
|
| Method Summary | |
|---|---|
protected void |
addAll(java.util.Collection<StringPattern> coll,
StringPattern[] patternArray)
|
void |
addElement(MatchElement element)
Add the specified element to the group. |
protected void |
apply(MatchRuleVisitor visitor)
|
protected void |
applyDatatypes(java.util.Map<java.lang.String,java.lang.Class<?>> datatypes)
|
protected boolean |
doMatch(java.util.Map<java.lang.String,?> dictionary)
|
int |
elementCount()
Returns the current number of elements in this group. |
protected MatchElement |
getElement(int index)
|
protected java.util.List<MatchElement> |
getElements()
|
protected void |
ignoreCase(boolean ignoreIt)
|
void |
ignoreCaseInName(boolean ignoreIt)
Defines whether or not the case of characters in attribute names must be ignored. |
boolean |
isGroup()
Returns always true, because this is a group. |
protected void |
multiCharWildcardMatchesEmptyString(boolean yesOrNo)
|
protected java.util.List<MatchElement> |
newElementList()
|
protected void |
optimize()
|
protected void |
optimizeAttribute(int index)
|
protected void |
removeElements(int from,
int to)
|
protected void |
setElements(java.util.List<MatchElement> newValue)
|
| Methods inherited from class org.pfsw.text.MatchElement |
|---|
getAnd, getNot, isAttribute, matches, setAnd, setNot |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MatchGroup()
| Method Detail |
|---|
public void addElement(MatchElement element)
public boolean isGroup()
isGroup in class MatchElementpublic int elementCount()
protected MatchElement getElement(int index)
protected boolean doMatch(java.util.Map<java.lang.String,?> dictionary)
doMatch in class MatchElementprotected void ignoreCase(boolean ignoreIt)
ignoreCase in class MatchElementpublic void ignoreCaseInName(boolean ignoreIt)
ignoreCaseInName in class MatchElementprotected void multiCharWildcardMatchesEmptyString(boolean yesOrNo)
multiCharWildcardMatchesEmptyString in class MatchElementprotected void apply(MatchRuleVisitor visitor)
apply in class MatchElement
protected void applyDatatypes(java.util.Map<java.lang.String,java.lang.Class<?>> datatypes)
throws MatchRuleException
applyDatatypes in class MatchElementMatchRuleExceptionprotected void optimize()
protected void optimizeAttribute(int index)
protected void addAll(java.util.Collection<StringPattern> coll,
StringPattern[] patternArray)
protected void removeElements(int from,
int to)
protected java.util.List<MatchElement> newElementList()
protected java.util.List<MatchElement> getElements()
protected void setElements(java.util.List<MatchElement> newValue)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||