Package com.emc.d2fs.utils
Class NodeUtils
java.lang.Object
com.emc.d2fs.utils.NodeUtils
Model node utilities.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NodeappendChildNode(Node parent, String name) Append a child nodestatic StringgetAttribute(Node node, String name) Get a node attributestatic NodeGet a dialog nodestatic NodeGet a failure node from exceptionstatic NodeGet a success nodestatic voidsetAttribute(Node node, String name, boolean value) Set a node attributestatic voidsetAttribute(Node node, String name, int value) Set a node attributestatic voidsetAttribute(Node node, String name, String value) Set a node attribute
-
Field Details
-
NODE_SUCCESS
Success node name- See Also:
-
NODE_FAILURE
Failure node name- See Also:
-
NODE_DIALOG
Dialog node name- See Also:
-
-
Constructor Details
-
NodeUtils
public NodeUtils()
-
-
Method Details
-
setAttribute
Set a node attribute- Parameters:
node- Target nodename-value-
-
setAttribute
Set a node attribute- Parameters:
node- Target nodename- Name of attributevalue- Boolean value
-
setAttribute
Set a node attribute- Parameters:
node- Target nodename- Name of attributevalue- Integer value
-
getAttribute
Get a node attribute- Parameters:
node- Source nodename- Name of attribute- Returns:
- Attribute value
-
getRootDialog
Get a dialog node- Returns:
- New Node object
-
getRootSuccess
Get a success node- Returns:
- New Node object
-
getRootFailure
Get a failure node from exception- Parameters:
e- Source Throwable exception- Returns:
- New Node object
-
appendChildNode
Append a child node- Parameters:
parent- Parent node for new childname- Name of new child node- Returns:
- New child Node object
-