|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.steadystate.css.parser.selectors.SelectorFactoryImpl
public class SelectorFactoryImpl
| Constructor Summary | |
|---|---|
SelectorFactoryImpl()
|
|
| Method Summary | |
|---|---|
SimpleSelector |
createAnyNodeSelector()
Creates an any node selector. |
CharacterDataSelector |
createCDataSectionSelector(java.lang.String data)
Creates a cdata section node selector. |
DescendantSelector |
createChildSelector(Selector parent,
SimpleSelector child)
Creates a child selector. |
CharacterDataSelector |
createCommentSelector(java.lang.String data)
Creates a comment node selector. |
ConditionalSelector |
createConditionalSelector(SimpleSelector selector,
Condition condition)
Creates a conditional selector. |
DescendantSelector |
createDescendantSelector(Selector parent,
SimpleSelector descendant)
Creates a descendant selector. |
SiblingSelector |
createDirectAdjacentSelector(short nodeType,
Selector child,
SimpleSelector directAdjacent)
Creates a sibling selector. |
ElementSelector |
createElementSelector(java.lang.String namespaceURI,
java.lang.String localName)
Creates an element selector. |
NegativeSelector |
createNegativeSelector(SimpleSelector selector)
Creates an negative selector. |
ProcessingInstructionSelector |
createProcessingInstructionSelector(java.lang.String target,
java.lang.String data)
Creates a processing instruction node selector. |
ElementSelector |
createPseudoElementSelector(java.lang.String namespaceURI,
java.lang.String pseudoName)
Creates a pseudo element selector. |
SimpleSelector |
createRootNodeSelector()
Creates an root node selector. |
CharacterDataSelector |
createTextNodeSelector(java.lang.String data)
Creates a text node selector. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SelectorFactoryImpl()
| Method Detail |
|---|
public ConditionalSelector createConditionalSelector(SimpleSelector selector,
Condition condition)
throws CSSException
SelectorFactory
createConditionalSelector in interface SelectorFactoryselector - a selector.condition - a condition
CSSException - If this selector is not supported.
public SimpleSelector createAnyNodeSelector()
throws CSSException
SelectorFactory
createAnyNodeSelector in interface SelectorFactoryCSSException - If this selector is not supported.
public SimpleSelector createRootNodeSelector()
throws CSSException
SelectorFactory
createRootNodeSelector in interface SelectorFactoryCSSException - If this selector is not supported.
public NegativeSelector createNegativeSelector(SimpleSelector selector)
throws CSSException
SelectorFactory
createNegativeSelector in interface SelectorFactoryselector - a selector.
CSSException - If this selector is not supported.
public ElementSelector createElementSelector(java.lang.String namespaceURI,
java.lang.String localName)
throws CSSException
SelectorFactory
createElementSelector in interface SelectorFactorynamespaceURI - the namespace
URI of the element selector.localName - the local
part of the element name. NULL if this element
selector can match any element.
CSSException - If this selector is not supported.
public CharacterDataSelector createTextNodeSelector(java.lang.String data)
throws CSSException
SelectorFactory
createTextNodeSelector in interface SelectorFactorydata - the data
CSSException - If this selector is not supported.
public CharacterDataSelector createCDataSectionSelector(java.lang.String data)
throws CSSException
SelectorFactory
createCDataSectionSelector in interface SelectorFactorydata - the data
CSSException - If this selector is not supported.
public ProcessingInstructionSelector createProcessingInstructionSelector(java.lang.String target,
java.lang.String data)
throws CSSException
SelectorFactory
createProcessingInstructionSelector in interface SelectorFactorytarget - the targetdata - the data
CSSException - If this selector is not supported.
public CharacterDataSelector createCommentSelector(java.lang.String data)
throws CSSException
SelectorFactory
createCommentSelector in interface SelectorFactorydata - the data
CSSException - If this selector is not supported.
public ElementSelector createPseudoElementSelector(java.lang.String namespaceURI,
java.lang.String pseudoName)
throws CSSException
SelectorFactory
createPseudoElementSelector in interface SelectorFactorypseudoName - the pseudo element name. NULL if this
element selector can match any pseudo element.
CSSException - If this selector is not supported.
public DescendantSelector createDescendantSelector(Selector parent,
SimpleSelector descendant)
throws CSSException
SelectorFactory
createDescendantSelector in interface SelectorFactoryparent - the parent selectordescendant - the descendant selector
CSSException - If this selector is not supported.
public DescendantSelector createChildSelector(Selector parent,
SimpleSelector child)
throws CSSException
SelectorFactory
createChildSelector in interface SelectorFactoryparent - the parent selectorchild - the child selector
CSSException - If this selector is not supported.
public SiblingSelector createDirectAdjacentSelector(short nodeType,
Selector child,
SimpleSelector directAdjacent)
throws CSSException
SelectorFactory
createDirectAdjacentSelector in interface SelectorFactorynodeType - the type of nodes in the siblings list.child - the child selector
CSSException - If this selector is not supported.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||