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: 32667 $ ($Author: gjoseph $)
Author:
Sameer Charles
See Also:
Serialized Form

Constructor Summary
Rule()
          Default
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)
          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()
Default


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)
is allowed

Parameters:
nodeType -
Returns:
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-2010 Magnolia International Ltd.. All Rights Reserved.