org.apache.ws.commons.schema.docpath
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.
PARENT
public static final XmlSchemaPathNode.Direction PARENT
CHILD
public static final XmlSchemaPathNode.Direction CHILD
CONTENT
public static final XmlSchemaPathNode.Direction CONTENT
SIBLING
public static final XmlSchemaPathNode.Direction SIBLING
values
public static XmlSchemaPathNode.Direction[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (XmlSchemaPathNode.Direction c : XmlSchemaPathNode.Direction.values())
System.out.println(c);
- 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
Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.