org.exist.client.xacml
Class AbstractPolicyNode
java.lang.Object
org.exist.client.xacml.AbstractTreeNode
org.exist.client.xacml.AbstractNodeContainer
org.exist.client.xacml.PolicyElementNode
org.exist.client.xacml.AbstractPolicyNode
- All Implemented Interfaces:
- NodeChangeListener, NodeContainer, PolicyElementContainer, XACMLTreeNode
- Direct Known Subclasses:
- PolicyNode, PolicySetNode
public abstract class AbstractPolicyNode
- extends PolicyElementNode
- implements PolicyElementContainer
AbstractPolicyNode
public AbstractPolicyNode(NodeContainer parent,
AbstractPolicy policy)
AbstractPolicyNode
public AbstractPolicyNode(NodeContainer parent,
String documentName,
AbstractPolicy policy)
getDocumentName
public String getDocumentName()
- Returns the name of the document represented by this
element if it is the top-level policy element of the
document.
- Returns:
- The document name, or null if this element
is not a top-level element
getCombiningAlgorithm
public CombiningAlgorithm getCombiningAlgorithm()
setCombiningAlgorithm
public void setCombiningAlgorithm(CombiningAlgorithm algorithm)
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
- Parameters:
deep
- if descendants should be included
- Returns:
- if this element has been modified
isAlgorithmModified
public boolean isAlgorithmModified()
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
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
setDocumentName
public void setDocumentName(String documentName)
Copyright (C) Wolfgang Meier. All rights reserved.