public static enum XmlSchemaPathNode.Direction extends Enum<XmlSchemaPathNode.Direction>
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.Modifier and Type | Method and Description |
---|---|
static XmlSchemaPathNode.Direction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static XmlSchemaPathNode.Direction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XmlSchemaPathNode.Direction PARENT
public static final XmlSchemaPathNode.Direction CHILD
public static final XmlSchemaPathNode.Direction CONTENT
public static final XmlSchemaPathNode.Direction SIBLING
public static XmlSchemaPathNode.Direction[] values()
for (XmlSchemaPathNode.Direction c : XmlSchemaPathNode.Direction.values()) System.out.println(c);
public static XmlSchemaPathNode.Direction valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2004–2017 The Apache Software Foundation. All rights reserved.