jodd.lagarto.csselly
Enum Combinator

java.lang.Object
  extended by java.lang.Enum<Combinator>
      extended by jodd.lagarto.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
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.
 
Method Summary
 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're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

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 final Combinator[] values()
Returns an array containing the constants of this enum type, in the order they're 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're 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 name

getSign

public java.lang.String getSign()
Returns combinator sign.



Copyright © 2003-2012 Jodd Team