Class NodeUtils

java.lang.Object
com.emc.d2fs.utils.NodeUtils

public class NodeUtils extends Object
Model node utilities.
  • Field Details

  • Constructor Details

    • NodeUtils

      public NodeUtils()
  • Method Details

    • setAttribute

      public static void setAttribute(Node node, String name, String value)
      Set a node attribute
      Parameters:
      node - Target node
      name -
      value -
    • setAttribute

      public static void setAttribute(Node node, String name, boolean value)
      Set a node attribute
      Parameters:
      node - Target node
      name - Name of attribute
      value - Boolean value
    • setAttribute

      public static void setAttribute(Node node, String name, int value)
      Set a node attribute
      Parameters:
      node - Target node
      name - Name of attribute
      value - Integer value
    • getAttribute

      public static String getAttribute(Node node, String name)
      Get a node attribute
      Parameters:
      node - Source node
      name - Name of attribute
      Returns:
      Attribute value
    • getRootDialog

      public static Node getRootDialog()
      Get a dialog node
      Returns:
      New Node object
    • getRootSuccess

      public static Node getRootSuccess()
      Get a success node
      Returns:
      New Node object
    • getRootFailure

      public static Node getRootFailure(Throwable e)
      Get a failure node from exception
      Parameters:
      e - Source Throwable exception
      Returns:
      New Node object
    • appendChildNode

      public static Node appendChildNode(Node parent, String name)
      Append a child node
      Parameters:
      parent - Parent node for new child
      name - Name of new child node
      Returns:
      New child Node object