Package jodd.csselly
Enum Combinator
- java.lang.Object
-
- java.lang.Enum<Combinator>
-
- jodd.csselly.Combinator
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Combinator>
public enum Combinator extends java.lang.Enum<Combinator>
CSS selector combinators.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADJACENT_SIBLINGThe 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.CHILDDescribes a childhood relationship between two elements.DESCENDANTDescribes an arbitrary descendant of some ancestor elementGENERAL_SIBLINGThe 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetSign()Returns combinator sign.static CombinatorvalueOf(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.
-
-
-
Enum Constant Detail
-
DESCENDANT
public static final Combinator DESCENDANT
Describes an arbitrary descendant of some ancestor element
-
CHILD
public static final Combinator CHILD
Describes a childhood relationship between two elements.
-
ADJACENT_SIBLING
public static final Combinator 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.
-
GENERAL_SIBLING
public static final Combinator 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.
-
-
Method Detail
-
values
public static Combinator[] 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 (Combinator c : Combinator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Combinator valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getSign
public java.lang.String getSign()
Returns combinator sign.
-
-