public abstract class MatchElement
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
MatchElement()
Initialize the new instance with default values.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
apply(MatchRuleVisitor visitor) |
protected abstract void |
applyDatatypes(java.util.Map<java.lang.String,java.lang.Class<?>> datatypes) |
protected abstract boolean |
doMatch(java.util.Map<java.lang.String,?> dictionary) |
boolean |
getAnd() |
boolean |
getNot() |
protected abstract void |
ignoreCase(boolean ignoreIt) |
protected abstract void |
ignoreCaseInName(boolean newValue) |
boolean |
isAttribute() |
boolean |
isGroup() |
boolean |
matches(java.util.Map<java.lang.String,?> dictionary)
Returns true, if the attributes and their values in the given
dictionary comply to the rules of the receiver.
|
protected abstract void |
multiCharWildcardMatchesEmptyString(boolean yesOrNo) |
void |
setAnd(boolean newValue) |
void |
setNot(boolean newValue) |
public MatchElement()
public boolean getAnd()
public void setAnd(boolean newValue)
public boolean getNot()
public void setNot(boolean newValue)
public boolean matches(java.util.Map<java.lang.String,?> dictionary)
dictionary
- The attribute-value pairs that have to be checked against the rulespublic boolean isGroup()
public boolean isAttribute()
protected abstract void multiCharWildcardMatchesEmptyString(boolean yesOrNo)
protected abstract boolean doMatch(java.util.Map<java.lang.String,?> dictionary)
protected abstract void ignoreCaseInName(boolean newValue)
protected abstract void ignoreCase(boolean ignoreIt)
protected abstract void apply(MatchRuleVisitor visitor)
protected abstract void applyDatatypes(java.util.Map<java.lang.String,java.lang.Class<?>> datatypes) throws MatchRuleException
MatchRuleException