com.steadystate.css.parser.selectors
Class SelectorFactoryImpl

java.lang.Object
  extended by com.steadystate.css.parser.selectors.SelectorFactoryImpl
All Implemented Interfaces:
SelectorFactory

public class SelectorFactoryImpl
extends Object
implements SelectorFactory

Version:
$Id: SelectorFactoryImpl.java,v 1.1 2008/03/20 01:20:17 sdanig Exp $
Author:
David Schweinsberg

Constructor Summary
SelectorFactoryImpl()
           
 
Method Summary
 SimpleSelector createAnyNodeSelector()
           
 CharacterDataSelector createCDataSectionSelector(String data)
           
 DescendantSelector createChildSelector(Selector parent, SimpleSelector child)
           
 CharacterDataSelector createCommentSelector(String data)
           
 ConditionalSelector createConditionalSelector(SimpleSelector selector, Condition condition)
           
 DescendantSelector createDescendantSelector(Selector parent, SimpleSelector descendant)
           
 SiblingSelector createDirectAdjacentSelector(short nodeType, Selector child, SimpleSelector directAdjacent)
           
 ElementSelector createElementSelector(String namespaceURI, String localName)
           
 NegativeSelector createNegativeSelector(SimpleSelector selector)
           
 ProcessingInstructionSelector createProcessingInstructionSelector(String target, String data)
           
 ElementSelector createPseudoElementSelector(String namespaceURI, String pseudoName)
           
 SimpleSelector createRootNodeSelector()
           
 CharacterDataSelector createTextNodeSelector(String data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectorFactoryImpl

public SelectorFactoryImpl()
Method Detail

createConditionalSelector

public ConditionalSelector createConditionalSelector(SimpleSelector selector,
                                                     Condition condition)
                                              throws CSSException
Specified by:
createConditionalSelector in interface SelectorFactory
Throws:
CSSException

createAnyNodeSelector

public SimpleSelector createAnyNodeSelector()
                                     throws CSSException
Specified by:
createAnyNodeSelector in interface SelectorFactory
Throws:
CSSException

createRootNodeSelector

public SimpleSelector createRootNodeSelector()
                                      throws CSSException
Specified by:
createRootNodeSelector in interface SelectorFactory
Throws:
CSSException

createNegativeSelector

public NegativeSelector createNegativeSelector(SimpleSelector selector)
                                        throws CSSException
Specified by:
createNegativeSelector in interface SelectorFactory
Throws:
CSSException

createElementSelector

public ElementSelector createElementSelector(String namespaceURI,
                                             String localName)
                                      throws CSSException
Specified by:
createElementSelector in interface SelectorFactory
Throws:
CSSException

createTextNodeSelector

public CharacterDataSelector createTextNodeSelector(String data)
                                             throws CSSException
Specified by:
createTextNodeSelector in interface SelectorFactory
Throws:
CSSException

createCDataSectionSelector

public CharacterDataSelector createCDataSectionSelector(String data)
                                                 throws CSSException
Specified by:
createCDataSectionSelector in interface SelectorFactory
Throws:
CSSException

createProcessingInstructionSelector

public ProcessingInstructionSelector createProcessingInstructionSelector(String target,
                                                                         String data)
                                                                  throws CSSException
Specified by:
createProcessingInstructionSelector in interface SelectorFactory
Throws:
CSSException

createCommentSelector

public CharacterDataSelector createCommentSelector(String data)
                                            throws CSSException
Specified by:
createCommentSelector in interface SelectorFactory
Throws:
CSSException

createPseudoElementSelector

public ElementSelector createPseudoElementSelector(String namespaceURI,
                                                   String pseudoName)
                                            throws CSSException
Specified by:
createPseudoElementSelector in interface SelectorFactory
Throws:
CSSException

createDescendantSelector

public DescendantSelector createDescendantSelector(Selector parent,
                                                   SimpleSelector descendant)
                                            throws CSSException
Specified by:
createDescendantSelector in interface SelectorFactory
Throws:
CSSException

createChildSelector

public DescendantSelector createChildSelector(Selector parent,
                                              SimpleSelector child)
                                       throws CSSException
Specified by:
createChildSelector in interface SelectorFactory
Throws:
CSSException

createDirectAdjacentSelector

public SiblingSelector createDirectAdjacentSelector(short nodeType,
                                                    Selector child,
                                                    SimpleSelector directAdjacent)
                                             throws CSSException
Specified by:
createDirectAdjacentSelector in interface SelectorFactory
Throws:
CSSException


Copyright © 2009. All Rights Reserved.