org.exist.client.xacml
Class RuleNode
java.lang.Object
org.exist.client.xacml.AbstractTreeNode
org.exist.client.xacml.AbstractNodeContainer
org.exist.client.xacml.PolicyElementNode
org.exist.client.xacml.RuleNode
- All Implemented Interfaces:
- NodeChangeListener, NodeContainer, XACMLTreeNode
- public class RuleNode
- extends PolicyElementNode
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RuleNode
public RuleNode(NodeContainer parent,
com.sun.xacml.Rule rule)
getEffect
public int getEffect()
setEffect
public void setEffect(int effect)
getCondition
public ConditionNode getCondition()
isModified
public boolean isModified(boolean deep)
- Description copied from interface:
XACMLTreeNode
- Returns true if this element has been modified. If
deep is true, then this takes into account the status
of any descendants.
- Specified by:
isModified
in interface XACMLTreeNode
- Overrides:
isModified
in class PolicyElementNode
isEffectModified
public boolean isEffectModified()
revert
public void revert(boolean deep)
- Description copied from interface:
XACMLTreeNode
- Reverts the state of this element to the last commit.
If deep is true, then this includes any descendants.
- Specified by:
revert
in interface XACMLTreeNode
- Overrides:
revert
in class PolicyElementNode
commit
public void commit(boolean deep)
- Description copied from interface:
XACMLTreeNode
- Commits the state of this element. This state
will be the state reverted to when revert is called.
If deep is true, then this includes any descendants.
- Specified by:
commit
in interface XACMLTreeNode
- Overrides:
commit
in class PolicyElementNode
create
public com.sun.xacml.PolicyTreeElement create()
- Returns:
- a
PolicyTreeElement
create
public com.sun.xacml.PolicyTreeElement create(java.net.URI id)
- Returns:
- a
PolicyTreeElement
createRule
public com.sun.xacml.Rule createRule()
createRule
public com.sun.xacml.Rule createRule(java.net.URI id)
getChildCount
public int getChildCount()
- Description copied from interface:
NodeContainer
- Gets the number of children of this element. Children
should include the target of this element, the condition
of a rule, child policies or policy sets of a policy set,
or child rules of a policy.
- Returns:
- the number of children
getChild
public XACMLTreeNode getChild(int index)
- Description copied from interface:
NodeContainer
- Gets the child at the specified index. Children
may include the target of this element, the condition of
a rule, child policies or policy sets of a policy set,
or child rules of a policy.
- Parameters:
index
- The child's position
- Returns:
- the child
indexOfChild
public int indexOfChild(java.lang.Object child)
- Description copied from interface:
NodeContainer
- Gets the index of a particular child. This operates on
reference equality, not equals.
- Parameters:
child
- The child to obtain the index of
- Returns:
- The child's index, or -1 if it is not a child of
this policy element
Copyright (C) Wolfgang Meier. All rights reserved.