All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface org.w3c.css.sac.Selector

public interface Selector
This interface defines a selector.

Remarks: Not all the following selectors are supported (or will be supported) by CSS.

All examples are CSS2 compliant.


Variable Index

 o SAC_ANY_NODE_SELECTOR
This selector matches any node.
 o SAC_CDATA_SECTION_NODE_SELECTOR
This selector matches only cdata node.
 o SAC_CHILD_SELECTOR
This selector matches a childhood relationship between two elements.
 o SAC_COMMENT_NODE_SELECTOR
This selector matches only comment node.
 o SAC_CONDITIONAL_SELECTOR
This is a conditional selector.
 o SAC_DESCENDANT_SELECTOR
This selector matches an arbitrary descendant of some ancestor element.
 o SAC_DIRECT_ADJACENT_SELECTOR
This selector matches two selectors who shared the same parent in the document tree and the element represented by the first sequence immediately precedes the element represented by the second one.
 o SAC_ELEMENT_NODE_SELECTOR
This selector matches only element node or pseudo element node.
 o SAC_INDIRECT_ADJACENT_SELECTOR
This selector matches two selectors who shared 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.
 o SAC_NEGATIVE_SELECTOR
This selector matches only node that are different from a specified one.
 o SAC_PROCESSING_INSTRUCTION_NODE_SELECTOR
This selector matches only processing instruction node.
 o SAC_PSEUDO_ELEMENT_SELECTOR
This selector matches the 'first line' pseudo element.
 o SAC_ROOT_NODE_SELECTOR
This selector matches the root node.
 o SAC_TEXT_NODE_SELECTOR
This selector matches only text node.

Method Index

 o getSelectorType()
An integer indicating the type of Selector

Variables

 o SAC_CONDITIONAL_SELECTOR
 public static final short SAC_CONDITIONAL_SELECTOR
This is a conditional selector. example:
   simple[role="private"]
   .part1
   H1#myId
   P:lang(fr).p1
 

See Also:
ConditionalSelector
 o SAC_ANY_NODE_SELECTOR
 public static final short SAC_ANY_NODE_SELECTOR
This selector matches any node.

See Also:
SimpleSelector
 o SAC_ROOT_NODE_SELECTOR
 public static final short SAC_ROOT_NODE_SELECTOR
This selector matches the root node.

See Also:
SimpleSelector
 o SAC_NEGATIVE_SELECTOR
 public static final short SAC_NEGATIVE_SELECTOR
This selector matches only node that are different from a specified one.

See Also:
NegativeSelector
 o SAC_ELEMENT_NODE_SELECTOR
 public static final short SAC_ELEMENT_NODE_SELECTOR
This selector matches only element node or pseudo element node. example:
   H1
   animate
 

See Also:
ElementSelector
 o SAC_TEXT_NODE_SELECTOR
 public static final short SAC_TEXT_NODE_SELECTOR
This selector matches only text node.

See Also:
CharacterDataSelector
 o SAC_CDATA_SECTION_NODE_SELECTOR
 public static final short SAC_CDATA_SECTION_NODE_SELECTOR
This selector matches only cdata node.

See Also:
CharacterDataSelector
 o SAC_PROCESSING_INSTRUCTION_NODE_SELECTOR
 public static final short SAC_PROCESSING_INSTRUCTION_NODE_SELECTOR
This selector matches only processing instruction node.

See Also:
ProcessingInstructionSelector
 o SAC_COMMENT_NODE_SELECTOR
 public static final short SAC_COMMENT_NODE_SELECTOR
This selector matches only comment node.

See Also:
CharacterDataSelector
 o SAC_PSEUDO_ELEMENT_SELECTOR
 public static final short SAC_PSEUDO_ELEMENT_SELECTOR
This selector matches the 'first line' pseudo element. example:
   :first-line
 

See Also:
ElementSelector
 o SAC_DESCENDANT_SELECTOR
 public static final short SAC_DESCENDANT_SELECTOR
This selector matches an arbitrary descendant of some ancestor element. example:
   E F
 

See Also:
CombinatorSelector
 o SAC_CHILD_SELECTOR
 public static final short SAC_CHILD_SELECTOR
This selector matches a childhood relationship between two elements. example:
   E > F
 

See Also:
CombinatorSelector
 o SAC_DIRECT_ADJACENT_SELECTOR
 public static final short SAC_DIRECT_ADJACENT_SELECTOR
This selector matches two selectors who shared the same parent in the document tree and the element represented by the first sequence immediately precedes the element represented by the second one. example:
   E + F
 

See Also:
CombinatorSelector
 o SAC_INDIRECT_ADJACENT_SELECTOR
 public static final short SAC_INDIRECT_ADJACENT_SELECTOR
This selector matches two selectors who shared 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.

See Also:
CombinatorSelector

Methods

 o getSelectorType
 public abstract short getSelectorType()
An integer indicating the type of Selector


All Packages  Class Hierarchy  This Package  Previous  Next  Index