public class SelectorFactoryImpl extends Object implements org.w3c.css.sac.SelectorFactory
Constructor and Description |
---|
SelectorFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
org.w3c.css.sac.SimpleSelector |
createAnyNodeSelector()
Creates an any node selector.
|
org.w3c.css.sac.CharacterDataSelector |
createCDataSectionSelector(String data)
Creates a cdata section node selector.
|
org.w3c.css.sac.DescendantSelector |
createChildSelector(org.w3c.css.sac.Selector parent,
org.w3c.css.sac.SimpleSelector child)
Creates a child selector.
|
org.w3c.css.sac.CharacterDataSelector |
createCommentSelector(String data)
Creates a comment node selector.
|
org.w3c.css.sac.ConditionalSelector |
createConditionalSelector(org.w3c.css.sac.SimpleSelector selector,
org.w3c.css.sac.Condition condition)
Creates a conditional selector.
|
org.w3c.css.sac.DescendantSelector |
createDescendantSelector(org.w3c.css.sac.Selector parent,
org.w3c.css.sac.SimpleSelector descendant)
Creates a descendant selector.
|
org.w3c.css.sac.SiblingSelector |
createDirectAdjacentSelector(short nodeType,
org.w3c.css.sac.Selector child,
org.w3c.css.sac.SimpleSelector directAdjacent)
Creates a direct adjacent selector.
|
org.w3c.css.sac.ElementSelector |
createElementSelector(String namespaceURI,
String localName)
Creates an element selector.
|
org.w3c.css.sac.NegativeSelector |
createNegativeSelector(org.w3c.css.sac.SimpleSelector selector)
Creates an negative selector.
|
org.w3c.css.sac.ProcessingInstructionSelector |
createProcessingInstructionSelector(String target,
String data)
Creates a processing instruction node selector.
|
org.w3c.css.sac.ElementSelector |
createPseudoElementSelector(String namespaceURI,
String pseudoName)
Creates a pseudo element selector.
|
org.w3c.css.sac.SimpleSelector |
createRootNodeSelector()
Creates an root node selector.
|
org.w3c.css.sac.CharacterDataSelector |
createTextNodeSelector(String data)
Creates a text node selector.
|
public org.w3c.css.sac.ConditionalSelector createConditionalSelector(org.w3c.css.sac.SimpleSelector selector, org.w3c.css.sac.Condition condition) throws org.w3c.css.sac.CSSException
createConditionalSelector
in interface org.w3c.css.sac.SelectorFactory
selector
- a selector.condition
- a conditionorg.w3c.css.sac.CSSException
- If this selector is not supported.public org.w3c.css.sac.SimpleSelector createAnyNodeSelector() throws org.w3c.css.sac.CSSException
createAnyNodeSelector
in interface org.w3c.css.sac.SelectorFactory
org.w3c.css.sac.CSSException
- If this selector is not supported.public org.w3c.css.sac.SimpleSelector createRootNodeSelector() throws org.w3c.css.sac.CSSException
createRootNodeSelector
in interface org.w3c.css.sac.SelectorFactory
org.w3c.css.sac.CSSException
- If this selector is not supported.public org.w3c.css.sac.NegativeSelector createNegativeSelector(org.w3c.css.sac.SimpleSelector selector) throws org.w3c.css.sac.CSSException
createNegativeSelector
in interface org.w3c.css.sac.SelectorFactory
selector
- a selector.org.w3c.css.sac.CSSException
- If this selector is not supported.public org.w3c.css.sac.ElementSelector createElementSelector(String namespaceURI, String localName) throws org.w3c.css.sac.CSSException
createElementSelector
in interface org.w3c.css.sac.SelectorFactory
namespaceURI
- the namespace URI of the element
selector.tagName
- the local part of the element
name. NULL
if this element selector can match any element.org.w3c.css.sac.CSSException
- If this selector is not supported.public org.w3c.css.sac.CharacterDataSelector createTextNodeSelector(String data) throws org.w3c.css.sac.CSSException
createTextNodeSelector
in interface org.w3c.css.sac.SelectorFactory
data
- the dataorg.w3c.css.sac.CSSException
- If this selector is not supported.public org.w3c.css.sac.CharacterDataSelector createCDataSectionSelector(String data) throws org.w3c.css.sac.CSSException
createCDataSectionSelector
in interface org.w3c.css.sac.SelectorFactory
data
- the dataorg.w3c.css.sac.CSSException
- If this selector is not supported.public org.w3c.css.sac.ProcessingInstructionSelector createProcessingInstructionSelector(String target, String data) throws org.w3c.css.sac.CSSException
createProcessingInstructionSelector
in interface org.w3c.css.sac.SelectorFactory
target
- the targetdata
- the dataorg.w3c.css.sac.CSSException
- If this selector is not supported.public org.w3c.css.sac.CharacterDataSelector createCommentSelector(String data) throws org.w3c.css.sac.CSSException
createCommentSelector
in interface org.w3c.css.sac.SelectorFactory
data
- the dataorg.w3c.css.sac.CSSException
- If this selector is not supported.public org.w3c.css.sac.ElementSelector createPseudoElementSelector(String namespaceURI, String pseudoName) throws org.w3c.css.sac.CSSException
createPseudoElementSelector
in interface org.w3c.css.sac.SelectorFactory
pseudoName
- the pseudo element name. NULL
if this element selector can match any pseudo
element.org.w3c.css.sac.CSSException
- If this selector is not supported.public org.w3c.css.sac.DescendantSelector createDescendantSelector(org.w3c.css.sac.Selector parent, org.w3c.css.sac.SimpleSelector descendant) throws org.w3c.css.sac.CSSException
createDescendantSelector
in interface org.w3c.css.sac.SelectorFactory
parent
- the parent selectordescendant
- the descendant selectororg.w3c.css.sac.CSSException
- If this selector is not supported.public org.w3c.css.sac.DescendantSelector createChildSelector(org.w3c.css.sac.Selector parent, org.w3c.css.sac.SimpleSelector child) throws org.w3c.css.sac.CSSException
createChildSelector
in interface org.w3c.css.sac.SelectorFactory
parent
- the parent selectorchild
- the child selectororg.w3c.css.sac.CSSException
- If this selector is not supported.public org.w3c.css.sac.SiblingSelector createDirectAdjacentSelector(short nodeType, org.w3c.css.sac.Selector child, org.w3c.css.sac.SimpleSelector directAdjacent) throws org.w3c.css.sac.CSSException
createDirectAdjacentSelector
in interface org.w3c.css.sac.SelectorFactory
child
- the child selectoradjacent
- the direct adjacent selectororg.w3c.css.sac.CSSException
- If this selector is not supported.