|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.css.engine.sac.CSSSelectorFactory
This class implements the SelectorFactory
interface.
Field Summary | |
static SelectorFactory |
INSTANCE
The instance of this class. |
Constructor Summary | |
protected |
CSSSelectorFactory()
This class does not need to be instantiated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final SelectorFactory INSTANCE
Constructor Detail |
protected CSSSelectorFactory()
Method Detail |
public ConditionalSelector createConditionalSelector(SimpleSelector selector, Condition condition) throws CSSException
SelectorFactory.createConditionalSelector(SimpleSelector,Condition)
.
createConditionalSelector
in interface SelectorFactory
selector
- a selector.condition
- a condition
CSSException
- If this selector is not supported.public SimpleSelector createAnyNodeSelector() throws CSSException
SelectorFactory.createAnyNodeSelector()
.
createAnyNodeSelector
in interface SelectorFactory
CSSException
- If this selector is not supported.public SimpleSelector createRootNodeSelector() throws CSSException
SelectorFactory.createRootNodeSelector()
.
createRootNodeSelector
in interface SelectorFactory
CSSException
- If this selector is not supported.public NegativeSelector createNegativeSelector(SimpleSelector selector) throws CSSException
SelectorFactory.createNegativeSelector(SimpleSelector)
.
createNegativeSelector
in interface SelectorFactory
selector
- a selector.
CSSException
- If this selector is not supported.public ElementSelector createElementSelector(java.lang.String namespaceURI, java.lang.String tagName) throws CSSException
SelectorFactory.createElementSelector(String,String)
.
createElementSelector
in interface 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.
CSSException
- If this selector is not supported.public CharacterDataSelector createTextNodeSelector(java.lang.String data) throws CSSException
SelectorFactory.createTextNodeSelector(String)
.
createTextNodeSelector
in interface SelectorFactory
data
- the data
CSSException
- If this selector is not supported.public CharacterDataSelector createCDataSectionSelector(java.lang.String data) throws CSSException
SelectorFactory.createCDataSectionSelector(String)
.
createCDataSectionSelector
in interface SelectorFactory
data
- the data
CSSException
- If this selector is not supported.public ProcessingInstructionSelector createProcessingInstructionSelector(java.lang.String target, java.lang.String data) throws CSSException
SelectorFactory.createProcessingInstructionSelector(String,String)
.
createProcessingInstructionSelector
in interface SelectorFactory
target
- the targetdata
- the data
CSSException
- If this selector is not supported.public CharacterDataSelector createCommentSelector(java.lang.String data) throws CSSException
SelectorFactory.createCommentSelector(String)
.
createCommentSelector
in interface SelectorFactory
data
- the data
CSSException
- If this selector is not supported.public ElementSelector createPseudoElementSelector(java.lang.String namespaceURI, java.lang.String pseudoName) throws CSSException
SelectorFactory.createPseudoElementSelector(String,String)
.
createPseudoElementSelector
in interface SelectorFactory
pseudoName
- 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(Selector,SimpleSelector)
.
createDescendantSelector
in interface SelectorFactory
parent
- the parent selectordescendant
- the descendant selector
CSSException
- If this selector is not supported.public DescendantSelector createChildSelector(Selector parent, SimpleSelector child) throws CSSException
SelectorFactory.createChildSelector(Selector,SimpleSelector)
.
createChildSelector
in interface SelectorFactory
parent
- 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(short,Selector,SimpleSelector)
.
createDirectAdjacentSelector
in interface SelectorFactory
nodeType
- 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 |