public class MatchGroup extends MatchElement
Constructor and Description |
---|
MatchGroup()
Initialize the new instance with default values.
|
Modifier and Type | Method and Description |
---|---|
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) |
getAnd, getNot, isAttribute, matches, setAnd, setNot
public void addElement(MatchElement element)
public boolean isGroup()
isGroup
in class MatchElement
public int elementCount()
protected MatchElement getElement(int index)
protected boolean doMatch(java.util.Map<java.lang.String,?> dictionary)
doMatch
in class MatchElement
protected void ignoreCase(boolean ignoreIt)
ignoreCase
in class MatchElement
public void ignoreCaseInName(boolean ignoreIt)
ignoreCaseInName
in class MatchElement
protected void multiCharWildcardMatchesEmptyString(boolean yesOrNo)
multiCharWildcardMatchesEmptyString
in class MatchElement
protected 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 MatchElement
MatchRuleException
protected 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)