public enum Combinator extends java.lang.Enum<Combinator>
Enum Constant and Description |
---|
ADJACENT_SIBLING
The elements represented by the two sequences share the same parent
in the document tree and the element represented by the first sequence
immediately precedes the element represented by the second one.
|
CHILD
Describes a childhood relationship between two elements.
|
DESCENDANT
Describes an arbitrary descendant of some ancestor element
|
GENERAL_SIBLING
The elements represented by the two sequences share the same parent
in the document tree and the element represented by the first sequence
precedes (not necessarily immediately) the element represented by the second one.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSign()
Returns combinator sign.
|
static Combinator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Combinator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Combinator DESCENDANT
public static final Combinator CHILD
public static final Combinator ADJACENT_SIBLING
public static final Combinator GENERAL_SIBLING
public static Combinator[] values()
for (Combinator c : Combinator.values()) System.out.println(c);
public static Combinator valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getSign()
Copyright © 2003-present Jodd Team