Package org.w3c.flute.parser.selectors
Class SelectorFactoryImpl
- java.lang.Object
- 
- org.w3c.flute.parser.selectors.SelectorFactoryImpl
 
- 
- All Implemented Interfaces:
- org.w3c.css.sac.SelectorFactory
 
 public class SelectorFactoryImpl extends Object implements org.w3c.css.sac.SelectorFactory - Version:
- $Revision$
- Author:
- Philippe Le Hegaret
 
- 
- 
Constructor SummaryConstructors Constructor Description SelectorFactoryImpl()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.css.sac.SimpleSelectorcreateAnyNodeSelector()Creates an any node selector.org.w3c.css.sac.CharacterDataSelectorcreateCDataSectionSelector(String data)Creates a cdata section node selector.org.w3c.css.sac.DescendantSelectorcreateChildSelector(org.w3c.css.sac.Selector parent, org.w3c.css.sac.SimpleSelector child)Creates a child selector.org.w3c.css.sac.CharacterDataSelectorcreateCommentSelector(String data)Creates a comment node selector.org.w3c.css.sac.ConditionalSelectorcreateConditionalSelector(org.w3c.css.sac.SimpleSelector selector, org.w3c.css.sac.Condition condition)Creates a conditional selector.org.w3c.css.sac.DescendantSelectorcreateDescendantSelector(org.w3c.css.sac.Selector parent, org.w3c.css.sac.SimpleSelector descendant)Creates a descendant selector.org.w3c.css.sac.SiblingSelectorcreateDirectAdjacentSelector(short nodeType, org.w3c.css.sac.Selector child, org.w3c.css.sac.SimpleSelector directAdjacent)Creates a direct adjacent selector.org.w3c.css.sac.ElementSelectorcreateElementSelector(String namespaceURI, String localName)Creates an element selector.org.w3c.css.sac.NegativeSelectorcreateNegativeSelector(org.w3c.css.sac.SimpleSelector selector)Creates an negative selector.org.w3c.css.sac.ProcessingInstructionSelectorcreateProcessingInstructionSelector(String target, String data)Creates a processing instruction node selector.org.w3c.css.sac.ElementSelectorcreatePseudoElementSelector(String namespaceURI, String pseudoName)Creates a pseudo element selector.org.w3c.css.sac.SimpleSelectorcreateRootNodeSelector()Creates an root node selector.org.w3c.css.sac.CharacterDataSelectorcreateTextNodeSelector(String data)Creates a text node selector.
 
- 
- 
- 
Method Detail- 
createConditionalSelectorpublic org.w3c.css.sac.ConditionalSelector createConditionalSelector(org.w3c.css.sac.SimpleSelector selector, org.w3c.css.sac.Condition condition) throws org.w3c.css.sac.CSSExceptionCreates a conditional selector.- Specified by:
- createConditionalSelectorin interface- org.w3c.css.sac.SelectorFactory
- Parameters:
- selector- a selector.
- condition- a condition
- Returns:
- the conditional selector.
- Throws:
- org.w3c.css.sac.CSSException- If this selector is not supported.
 
 - 
createAnyNodeSelectorpublic org.w3c.css.sac.SimpleSelector createAnyNodeSelector() throws org.w3c.css.sac.CSSExceptionCreates an any node selector.- Specified by:
- createAnyNodeSelectorin interface- org.w3c.css.sac.SelectorFactory
- Returns:
- the any node selector.
- Throws:
- org.w3c.css.sac.CSSException- If this selector is not supported.
 
 - 
createRootNodeSelectorpublic org.w3c.css.sac.SimpleSelector createRootNodeSelector() throws org.w3c.css.sac.CSSExceptionCreates an root node selector.- Specified by:
- createRootNodeSelectorin interface- org.w3c.css.sac.SelectorFactory
- Returns:
- the root node selector.
- Throws:
- org.w3c.css.sac.CSSException- If this selector is not supported.
 
 - 
createNegativeSelectorpublic org.w3c.css.sac.NegativeSelector createNegativeSelector(org.w3c.css.sac.SimpleSelector selector) throws org.w3c.css.sac.CSSExceptionCreates an negative selector.- Specified by:
- createNegativeSelectorin interface- org.w3c.css.sac.SelectorFactory
- Parameters:
- selector- a selector.
- Returns:
- the negative selector.
- Throws:
- org.w3c.css.sac.CSSException- If this selector is not supported.
 
 - 
createElementSelectorpublic org.w3c.css.sac.ElementSelector createElementSelector(String namespaceURI, String localName) throws org.w3c.css.sac.CSSException Creates an element selector.- Specified by:
- createElementSelectorin interface- org.w3c.css.sac.SelectorFactory
- Parameters:
- namespaceURI- the namespace URI of the element selector.
- tagName- the local part of the element name.- NULLif this element selector can match any element.
- Returns:
- the element selector
- Throws:
- org.w3c.css.sac.CSSException- If this selector is not supported.
 
 - 
createTextNodeSelectorpublic org.w3c.css.sac.CharacterDataSelector createTextNodeSelector(String data) throws org.w3c.css.sac.CSSException Creates a text node selector.- Specified by:
- createTextNodeSelectorin interface- org.w3c.css.sac.SelectorFactory
- Parameters:
- data- the data
- Returns:
- the text node selector
- Throws:
- org.w3c.css.sac.CSSException- If this selector is not supported.
 
 - 
createCDataSectionSelectorpublic org.w3c.css.sac.CharacterDataSelector createCDataSectionSelector(String data) throws org.w3c.css.sac.CSSException Creates a cdata section node selector.- Specified by:
- createCDataSectionSelectorin interface- org.w3c.css.sac.SelectorFactory
- Parameters:
- data- the data
- Returns:
- the cdata section node selector
- Throws:
- org.w3c.css.sac.CSSException- If this selector is not supported.
 
 - 
createProcessingInstructionSelectorpublic org.w3c.css.sac.ProcessingInstructionSelector createProcessingInstructionSelector(String target, String data) throws org.w3c.css.sac.CSSException Creates a processing instruction node selector.- Specified by:
- createProcessingInstructionSelectorin interface- org.w3c.css.sac.SelectorFactory
- Parameters:
- target- the target
- data- the data
- Returns:
- the processing instruction node selector
- Throws:
- org.w3c.css.sac.CSSException- If this selector is not supported.
 
 - 
createCommentSelectorpublic org.w3c.css.sac.CharacterDataSelector createCommentSelector(String data) throws org.w3c.css.sac.CSSException Creates a comment node selector.- Specified by:
- createCommentSelectorin interface- org.w3c.css.sac.SelectorFactory
- Parameters:
- data- the data
- Returns:
- the comment node selector
- Throws:
- org.w3c.css.sac.CSSException- If this selector is not supported.
 
 - 
createPseudoElementSelectorpublic org.w3c.css.sac.ElementSelector createPseudoElementSelector(String namespaceURI, String pseudoName) throws org.w3c.css.sac.CSSException Creates a pseudo element selector.- Specified by:
- createPseudoElementSelectorin interface- org.w3c.css.sac.SelectorFactory
- Parameters:
- pseudoName- the pseudo element name.- NULLif this element selector can match any pseudo element.
- Returns:
- the element selector
- Throws:
- org.w3c.css.sac.CSSException- If this selector is not supported.
 
 - 
createDescendantSelectorpublic org.w3c.css.sac.DescendantSelector createDescendantSelector(org.w3c.css.sac.Selector parent, org.w3c.css.sac.SimpleSelector descendant) throws org.w3c.css.sac.CSSExceptionCreates a descendant selector.- Specified by:
- createDescendantSelectorin interface- org.w3c.css.sac.SelectorFactory
- Parameters:
- parent- the parent selector
- descendant- the descendant selector
- Returns:
- the combinator selector.
- Throws:
- org.w3c.css.sac.CSSException- If this selector is not supported.
 
 - 
createChildSelectorpublic org.w3c.css.sac.DescendantSelector createChildSelector(org.w3c.css.sac.Selector parent, org.w3c.css.sac.SimpleSelector child) throws org.w3c.css.sac.CSSExceptionCreates a child selector.- Specified by:
- createChildSelectorin interface- org.w3c.css.sac.SelectorFactory
- Parameters:
- parent- the parent selector
- child- the child selector
- Returns:
- the combinator selector.
- Throws:
- org.w3c.css.sac.CSSException- If this selector is not supported.
 
 - 
createDirectAdjacentSelectorpublic 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.CSSExceptionCreates a direct adjacent selector.- Specified by:
- createDirectAdjacentSelectorin interface- org.w3c.css.sac.SelectorFactory
- Parameters:
- child- the child selector
- adjacent- the direct adjacent selector
- Returns:
- the combinator selector.
- Throws:
- org.w3c.css.sac.CSSException- If this selector is not supported.
 
 
- 
 
-