|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pf.text.MatchRulePrinter
public class MatchRulePrinter
Converts a MatchRule to a String using the default syntax. The only necessary method to call is:
asString( matchRule )
| Constructor Summary | |
|---|---|
MatchRulePrinter()
Initialize the new instance with default values. |
|
MatchRulePrinter(MatchRuleChars ruleCharacters)
Initialize the new instance with match rule characters. |
|
| Method Summary | |
|---|---|
java.lang.String |
asString(MatchRule matchRule)
Returns the specified match rule as a string. |
void |
attribute(java.lang.String name,
int compareOperator,
java.lang.String[] values,
boolean andOperator,
boolean notOperator)
This method will be called for each attribute. |
void |
endGroup()
This method will be called for each group end occurence. |
void |
startGroup(boolean andOperator,
boolean notOperator)
This method will be called for each start of a new group. |
boolean |
useNewSyntax()
Returns true, if the printer uses the new syntax which is using an equals character rather than the curly brackets for single values. |
void |
useNewSyntax(boolean newValue)
Sets if the printer uses the new syntax. |
void |
walkThroughFinished()
This method will be called when the MatchRule has finished to walk through its elements. |
void |
walkThroughInit()
This method will be called right before the MatchRule walks through its elements. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MatchRulePrinter()
public MatchRulePrinter(MatchRuleChars ruleCharacters)
| Method Detail |
|---|
public boolean useNewSyntax()
public void useNewSyntax(boolean newValue)
public void walkThroughInit()
walkThroughInit in interface MatchRuleVisitorpublic void walkThroughFinished()
walkThroughFinished in interface MatchRuleVisitor
public void startGroup(boolean andOperator,
boolean notOperator)
startGroup in interface MatchRuleVisitorandOperator - If true it is an AND combination otherwise it is ORnotOperator - Is only true for a NOT operationpublic void endGroup()
endGroup in interface MatchRuleVisitor
public void attribute(java.lang.String name,
int compareOperator,
java.lang.String[] values,
boolean andOperator,
boolean notOperator)
attribute in interface MatchRuleVisitorname - The attribute's namecompareOperator - The operator used to compare valuesvalues - All values the attrubute my match (implicit OR combination !)andOperator - If true it is an AND combination otherwise it is ORnotOperator - Is only true for a NOT operationpublic java.lang.String asString(MatchRule matchRule)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||