info.magnolia.cms.util
Class Rule

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

public class Rule
extends Object
implements Serializable

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

Version:
$Revision: 51044 $ ($Author: ochytil $)
Author:
Sameer Charles
See Also:
Serialized Form

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

Rule

public Rule()

Rule

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

Parameters:
allowedTypes -

Rule

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

Parameters:
allowedTypes -
separator -
Method Detail

addAllowType

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

Parameters:
nodeType -

removeAllowType

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

Parameters:
nodeType -

isAllowed

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


toString

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

Overrides:
toString in class Object
Returns:
string representation

reverse

public void reverse()
Set reverse.



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