|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.util.Rule
public class Rule
This class defines the rules to be used by the activation content aggregator this is simply a collection of node types.
Constructor Summary | |
---|---|
Rule()
|
|
Rule(String[] allowedTypes)
Generate list from string array. |
|
Rule(String allowedTypes,
String separator)
Generate list from the string. |
Method Summary | |
---|---|
void |
addAllowType(String nodeType)
Add to allow list. |
boolean |
isAllowed(String nodeType)
True if given nodeType is allowed. |
void |
removeAllowType(String nodeType)
Remove from allow list. |
void |
reverse()
Set reverse. |
String |
toString()
Get a string representation of this rule. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Rule()
public Rule(String[] allowedTypes)
allowedTypes
- public Rule(String allowedTypes, String separator)
allowedTypes
- separator
- Method Detail |
---|
public void addAllowType(String nodeType)
nodeType
- public void removeAllowType(String nodeType)
nodeType
- public boolean isAllowed(String nodeType)
public String toString()
toString
in class Object
public void reverse()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |