|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.client.xacml.AbstractTreeNode
org.exist.client.xacml.AbstractNodeContainer
org.exist.client.xacml.PolicyElementNode
org.exist.client.xacml.RuleNode
public class RuleNode
Constructor Summary | |
---|---|
RuleNode(NodeContainer parent,
Rule rule)
|
Method Summary | |
---|---|
void |
commit(boolean deep)
Commits the state of this element. |
PolicyTreeElement |
create()
Creates a PolicyTreeElement
from this object's current state. |
PolicyTreeElement |
create(URI id)
Creates a PolicyTreeElement
from this object's current state except
that it uses the specified id. |
Rule |
createRule()
|
Rule |
createRule(URI id)
|
XACMLTreeNode |
getChild(int index)
Gets the child at the specified index. |
int |
getChildCount()
Gets the number of children of this element. |
ConditionNode |
getCondition()
|
int |
getEffect()
|
int |
indexOfChild(Object child)
Gets the index of a particular child. |
boolean |
isEffectModified()
|
boolean |
isModified(boolean deep)
Returns true if this element has been modified. |
void |
revert(boolean deep)
Reverts the state of this element to the last commit. |
void |
setEffect(int effect)
|
Methods inherited from class org.exist.client.xacml.PolicyElementNode |
---|
getDescription, getId, getTarget, isDescriptionModified, isIdModified, serialize, setDescription, toString |
Methods inherited from class org.exist.client.xacml.AbstractNodeContainer |
---|
nodeAdded, nodeChanged, nodeRemoved |
Methods inherited from class org.exist.client.xacml.AbstractTreeNode |
---|
getParent, setModified |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.exist.client.xacml.NodeChangeListener |
---|
nodeAdded, nodeChanged, nodeRemoved |
Methods inherited from interface org.exist.client.xacml.XACMLTreeNode |
---|
getParent, setModified |
Constructor Detail |
---|
public RuleNode(NodeContainer parent, Rule rule)
Method Detail |
---|
public int getEffect()
public void setEffect(int effect)
public ConditionNode getCondition()
public boolean isModified(boolean deep)
XACMLTreeNode
isModified
in interface XACMLTreeNode
isModified
in class PolicyElementNode
deep
- if descendants should be included
public boolean isEffectModified()
public void revert(boolean deep)
XACMLTreeNode
revert
in interface XACMLTreeNode
revert
in class PolicyElementNode
public void commit(boolean deep)
XACMLTreeNode
commit
in interface XACMLTreeNode
commit
in class PolicyElementNode
public PolicyTreeElement create()
PolicyElementNode
PolicyTreeElement
from this object's current state.
PolicyTreeElement
public PolicyTreeElement create(URI id)
PolicyElementNode
PolicyTreeElement
from this object's current state except
that it uses the specified id.
PolicyTreeElement
public Rule createRule()
public Rule createRule(URI id)
public int getChildCount()
NodeContainer
public XACMLTreeNode getChild(int index)
NodeContainer
index
- The child's position
public int indexOfChild(Object child)
NodeContainer
child
- The child to obtain the index of
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |