org.pf.text
Class MatchElement
java.lang.Object
org.pf.text.MatchElement
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- MatchAttribute, MatchGroup
public abstract class MatchElement
- extends java.lang.Object
- implements java.io.Serializable
Implements all common state and behaviour of elements in a match rule.
- Version:
- 1.5
- Author:
- Manfred Duchrow
- See Also:
- Serialized Form
|
Constructor Summary |
MatchElement()
Initialize the new instance with default values. |
|
Method Summary |
boolean |
getAnd()
|
boolean |
getNot()
|
boolean |
isAttribute()
|
boolean |
isGroup()
|
boolean |
matches(java.util.Map dictionary)
Returns true, if the attributes and their values in the given
dictionary comply to the rules of the receiver. |
void |
setAnd(boolean newValue)
|
void |
setNot(boolean newValue)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MatchElement
public MatchElement()
- Initialize the new instance with default values.
getAnd
public boolean getAnd()
setAnd
public void setAnd(boolean newValue)
getNot
public boolean getNot()
setNot
public void setNot(boolean newValue)
matches
public boolean matches(java.util.Map dictionary)
- Returns true, if the attributes and their values in the given
dictionary comply to the rules of the receiver.
- Parameters:
dictionary - The attribute-value pairs that have to be checked against the rules
isGroup
public boolean isGroup()
isAttribute
public boolean isAttribute()