info.magnolia.cms.util
Class Rule

java.lang.Object
  extended by info.magnolia.cms.util.Rule
All Implemented Interfaces:
java.io.Serializable

public class Rule
extends java.lang.Object
implements java.io.Serializable

This class defines the rules to be used by the activation content aggregator this is simply a collection of node types.

Version:
$Revision: 46561 $ ($Author: fgrilli $)
Author:
Sameer Charles
See Also:
Serialized Form

Constructor Summary
Rule()
           
Rule(java.lang.String[] allowedTypes)
          Generate list from string array.
Rule(java.lang.String allowedTypes, java.lang.String separator)
          Generate list from the string.
 
Method Summary
 void addAllowType(java.lang.String nodeType)
          Add to allow list.
 boolean isAllowed(java.lang.String nodeType)
          True if given nodeType is allowed.
 void removeAllowType(java.lang.String nodeType)
          Remove from allow list.
 void reverse()
          Set reverse.
 java.lang.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

Rule

public Rule()

Rule

public Rule(java.lang.String[] allowedTypes)
Generate list from string array.

Parameters:
allowedTypes -

Rule

public Rule(java.lang.String allowedTypes,
            java.lang.String separator)
Generate list from the string.

Parameters:
allowedTypes -
separator -
Method Detail

addAllowType

public void addAllowType(java.lang.String nodeType)
Add to allow list.

Parameters:
nodeType -

removeAllowType

public void removeAllowType(java.lang.String nodeType)
Remove from allow list.

Parameters:
nodeType -

isAllowed

public boolean isAllowed(java.lang.String nodeType)
True if given nodeType is allowed.


toString

public java.lang.String toString()
Get a string representation of this rule.

Overrides:
toString in class java.lang.Object
Returns:
string representation

reverse

public void reverse()
Set reverse.



Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.