org.exist.client.xacml
Class PolicySetNode
java.lang.Object
org.exist.client.xacml.AbstractTreeNode
org.exist.client.xacml.AbstractNodeContainer
org.exist.client.xacml.PolicyElementNode
org.exist.client.xacml.AbstractPolicyNode
org.exist.client.xacml.PolicySetNode
- All Implemented Interfaces:
- NodeChangeListener, NodeContainer, PolicyElementContainer, XACMLTreeNode
- public class PolicySetNode
- extends AbstractPolicyNode
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PolicySetNode
public PolicySetNode(NodeContainer parent,
com.sun.xacml.PolicySet policySet)
PolicySetNode
public PolicySetNode(NodeContainer parent,
java.lang.String documentName,
com.sun.xacml.PolicySet policySet)
create
public com.sun.xacml.PolicyTreeElement create()
- Returns:
- a
PolicyTreeElement
create
public com.sun.xacml.PolicyTreeElement create(java.net.URI id)
- Returns:
- a
PolicyTreeElement
createPolicySet
public com.sun.xacml.PolicySet createPolicySet()
createPolicySet
public com.sun.xacml.PolicySet createPolicySet(java.net.URI id)
add
public void add(com.sun.xacml.PolicyTreeElement element)
add
public void add(int index,
com.sun.xacml.PolicyTreeElement element)
add
public void add(PolicyElementNode node)
add
public void add(int index,
PolicyElementNode node)
remove
public void remove(PolicyElementNode node)
containsId
public boolean containsId(java.lang.String 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
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 AbstractPolicyNode
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 AbstractPolicyNode
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 AbstractPolicyNode
Copyright (C) Wolfgang Meier. All rights reserved.