|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.wles.util.RuleParser.Constraint
Class for representing a rule's constraint.
Field Summary | |
static java.lang.String |
IF
String identifying the start of a constraint. |
static java.lang.String |
TERMINATOR
String identifying the end of a constraint. |
static java.lang.String |
TRUE
String identifying the contents of a default constraint. |
Constructor Summary | |
RuleParser.Constraint(java.lang.String text)
Construct a constraint based on the supplied text. |
Method Summary | |
boolean |
equals(java.lang.Object other)
Tests for constraint equality. |
java.lang.String |
getCondition()
Gets the condition, this is the portion between if and ; |
java.lang.String |
getText()
Get the full text of the constraint this is the portion including if and ; |
int |
hashCode()
|
boolean |
isEmpty()
Determines if the condition is empty, or just true i.e. grant(...); or grant(...) if true; |
java.lang.String |
toString()
Returns a report on the structure of the constraint. |
void |
validate()
Validates that the internal string is a constraint. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String IF
public static final java.lang.String TERMINATOR
public static final java.lang.String TRUE
Constructor Detail |
public RuleParser.Constraint(java.lang.String text) throws RuleParser.ParsingException
Method Detail |
public boolean equals(java.lang.Object other)
public java.lang.String getCondition()
public java.lang.String getText()
public int hashCode()
public boolean isEmpty()
public java.lang.String toString()
public void validate() throws RuleParser.ParsingException
RuleParser.ParsingException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |