org.exist.client.xacml
Class PolicyNode
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.PolicyNode
- All Implemented Interfaces:
- NodeChangeListener, NodeContainer, PolicyElementContainer, XACMLTreeNode
- public class PolicyNode
- extends AbstractPolicyNode
|
Method Summary |
void |
add(int index,
PolicyTreeElement element)
|
void |
add(PolicyTreeElement element)
|
void |
commit(boolean deep)
Commits the state of this element. |
boolean |
containsId(java.lang.String id)
|
PolicyTreeElement |
create()
|
PolicyTreeElement |
create(java.net.URI id)
|
Policy |
createPolicy()
|
Policy |
createPolicy(java.net.URI id)
|
XACMLTreeNode |
getChild(int index)
Gets the child at the specified index. |
int |
getChildCount()
Gets the number of children of this element. |
int |
indexOfChild(java.lang.Object child)
Gets the index of a particular child. |
boolean |
isModified(boolean deep)
Returns true if this element has been modified. |
void |
remove(PolicyElementNode node)
|
void |
revert(boolean deep)
Reverts the state of this element to the last commit. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PolicyNode
public PolicyNode(NodeContainer parent,
Policy policy)
PolicyNode
public PolicyNode(NodeContainer parent,
java.lang.String documentName,
Policy policy)
create
public PolicyTreeElement create()
- Returns:
- a
PolicyTreeElement
create
public PolicyTreeElement create(java.net.URI id)
- Returns:
- a
PolicyTreeElement
createPolicy
public Policy createPolicy()
createPolicy
public Policy createPolicy(java.net.URI id)
add
public void add(PolicyTreeElement element)
add
public void add(int index,
PolicyTreeElement element)
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
<oXygen/>
XML Editor
provides support for editing and debugging XQuery
expressions against the eXist XML Database.