Enum XmlSchemaPathNode.Direction

java.lang.Object
java.lang.Enum<XmlSchemaPathNode.Direction>
org.apache.ws.commons.schema.docpath.XmlSchemaPathNode.Direction
All Implemented Interfaces:
Serializable, Comparable<XmlSchemaPathNode.Direction>
Enclosing class:
XmlSchemaPathNode<U,V>

public static enum XmlSchemaPathNode.Direction extends Enum<XmlSchemaPathNode.Direction>
Represents a path's direction. Paths may go in four directions:
  • CHILD : The path moves from the current node in the tree (an element or group) to one of its children.
  • PARENT : The path moves from the current node in the tree to its parent. If moving to the parent of an element, this closes the tag.
  • SIBLING : This initiates a new occurrence of the current (wildcard) element or group. If creating a sibling (wildcard) element, this closes the tag of the existing element and opens a new one of the same name.
  • CONTENT : This represents content inside an element (not children tags). This will either be the simple content of a simple element, or the text contained inside a mixed element. Mixed content may occur as either a direct child of the owning element, or inside one of the owning element's child groups.
  • Enum Constant Details

  • Field Details

    • rank

      final int rank
  • Constructor Details

    • Direction

      private Direction(int rank)
  • Method Details

    • values

      public static XmlSchemaPathNode.Direction[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static XmlSchemaPathNode.Direction valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getRank

      int getRank()