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 Node
appendChildNode
(Node parent, String name) Append a child nodestatic String
getAttribute
(Node node, String name) Get a node attributestatic Node
Get a dialog nodestatic Node
Get a failure node from exceptionstatic Node
Get a success nodestatic void
setAttribute
(Node node, String name, boolean value) Set a node attributestatic void
setAttribute
(Node node, String name, int value) Set a node attributestatic void
setAttribute
(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
-