public class Rule extends Object implements Serializable
Constructor and Description |
---|
Rule() |
Rule(String[] allowedTypes)
Generate list from string array.
|
Rule(String ruleStringRepresentation,
String separator)
Generate Rule from the string representation of Rule.
|
Modifier and Type | Method and Description |
---|---|
void |
addAllowType(String nodeType)
Add to allow list.
|
boolean |
isAllowed(javax.jcr.Node node)
True if given nodeType is allowed.
|
boolean |
isAllowed(String nodeType)
Deprecated.
since 4.5.5 - use
isAllowed(Node) instead. |
void |
removeAllowType(String nodeType)
Remove from allow list.
|
void |
reverse()
Set reverse.
|
void |
setAllowedTypes(String[] types) |
String |
toString()
Get a string representation of this rule.
|
public Rule()
public Rule(String[] allowedTypes)
public Rule(String ruleStringRepresentation, String separator)
toString()
public void setAllowedTypes(String[] types)
public void addAllowType(String nodeType)
public void removeAllowType(String nodeType)
@Deprecated public boolean isAllowed(String nodeType)
isAllowed(Node)
instead.public boolean isAllowed(javax.jcr.Node node) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public String toString()
public void reverse()
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.