public class RdrTree
extends java.lang.Object
Constructor and Description |
---|
RdrTree()
Default constructor
|
RdrTree(java.lang.String taskId)
Constructs an empty tree
|
Modifier and Type | Method and Description |
---|---|
RdrNode |
addNode(RdrNode newNode,
RdrNode parentNode,
boolean trueBranch) |
RdrNode |
createRootNode() |
boolean |
equals(java.lang.Object o) |
void |
fromXML(java.lang.String xml) |
java.util.List<java.lang.String> |
getAllConditions()
Gets the condition of each node in this tree
|
java.util.List<java.lang.String> |
getAllConditions(RdrNode node)
Recurses the tree, collecting the condition from each node
|
protected YAttributeMap |
getAttributes() |
RdrNode |
getNode(long id)
Gets the RdrNode for the id passed
|
RdrNode |
getRootNode() |
java.lang.String |
getTaskId() |
int |
hashCode() |
int |
nodeCount() |
RdrNode |
removeNode(long nodeID) |
RdrPair |
search(Element caseData)
evaluates the conditions of each transversed node in this tree
|
void |
setAttributes(java.lang.String processName,
RuleType rType) |
void |
setAttributes(YSpecificationID specID,
RuleType rType) |
void |
setRootNode(RdrNode root) |
void |
setTaskId(java.lang.String id) |
java.lang.String |
toString() |
java.lang.String |
toXML() |
XNode |
toXNode() |
XNode |
toXNode(java.lang.String name) |
public RdrTree()
public RdrTree(java.lang.String taskId)
taskId
- - id of task that this tree will supportpublic RdrNode getRootNode()
public java.lang.String getTaskId()
public RdrNode getNode(long id)
id
- - the node id of the node to findpublic java.util.List<java.lang.String> getAllConditions()
public java.util.List<java.lang.String> getAllConditions(RdrNode node)
node
- the root node of this (sub)-treeprotected YAttributeMap getAttributes()
public void setRootNode(RdrNode root)
public void setTaskId(java.lang.String id)
public void setAttributes(java.lang.String processName, RuleType rType)
public void setAttributes(YSpecificationID specID, RuleType rType)
public RdrPair search(Element caseData)
caseData
- - a JDOM Element that contains the set of data
attributes and values that are used to evaluate the conditional
expressionspublic RdrNode createRootNode()
public RdrNode removeNode(long nodeID)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int nodeCount()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toXML()
public XNode toXNode()
public XNode toXNode(java.lang.String name)
public void fromXML(java.lang.String xml)
Copyright © 2004-2014 The YAWL Foundation.