Package org.w3c.flute.parser.selectors
Class ConditionFactoryImpl
- java.lang.Object
- 
- org.w3c.flute.parser.selectors.ConditionFactoryImpl
 
- 
- All Implemented Interfaces:
- org.w3c.css.sac.ConditionFactory
 
 public class ConditionFactoryImpl extends Object implements org.w3c.css.sac.ConditionFactory - Version:
- $Revision$
- Author:
- Philippe Le Hegaret
 
- 
- 
Constructor SummaryConstructors Constructor Description ConditionFactoryImpl()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.css.sac.CombinatorConditioncreateAndCondition(org.w3c.css.sac.Condition first, org.w3c.css.sac.Condition second)Creates an and conditionorg.w3c.css.sac.AttributeConditioncreateAttributeCondition(String localName, String namespaceURI, boolean specified, String value)creates an attribute conditionorg.w3c.css.sac.AttributeConditioncreateBeginHyphenAttributeCondition(String localName, String namespaceURI, boolean specified, String value)Creates a "begin hyphen" attribute conditionorg.w3c.css.sac.AttributeConditioncreateClassCondition(String namespaceURI, String value)Creates a class conditionorg.w3c.css.sac.ContentConditioncreateContentCondition(String data)Creates a content conditionorg.w3c.css.sac.AttributeConditioncreateIdCondition(String value)Creates an id conditionorg.w3c.css.sac.LangConditioncreateLangCondition(String lang)Creates a lang conditionorg.w3c.css.sac.NegativeConditioncreateNegativeCondition(org.w3c.css.sac.Condition condition)Creates a negative conditionorg.w3c.css.sac.AttributeConditioncreateOneOfAttributeCondition(String localName, String namespaceURI, boolean specified, String value)Creates a "one of" attribute conditionorg.w3c.css.sac.ConditioncreateOnlyChildCondition()Creates a "only one" child conditionorg.w3c.css.sac.ConditioncreateOnlyTypeCondition()Creates a "only one" type conditionorg.w3c.css.sac.CombinatorConditioncreateOrCondition(org.w3c.css.sac.Condition first, org.w3c.css.sac.Condition second)Creates an or conditionorg.w3c.css.sac.PositionalConditioncreatePositionalCondition(int position, boolean typeNode, boolean type)Creates a positional conditionorg.w3c.css.sac.AttributeConditioncreatePseudoClassCondition(String namespaceURI, String value)Creates a pseudo class condition
 
- 
- 
- 
Method Detail- 
createAndConditionpublic org.w3c.css.sac.CombinatorCondition createAndCondition(org.w3c.css.sac.Condition first, org.w3c.css.sac.Condition second) throws org.w3c.css.sac.CSSExceptionCreates an and condition- Specified by:
- createAndConditionin interface- org.w3c.css.sac.ConditionFactory
- Parameters:
- first- the first condition
- second- the second condition
- Returns:
- A combinator condition
- Throws:
- org.w3c.css.sac.CSSException- if this exception is not supported.
 
 - 
createOrConditionpublic org.w3c.css.sac.CombinatorCondition createOrCondition(org.w3c.css.sac.Condition first, org.w3c.css.sac.Condition second) throws org.w3c.css.sac.CSSExceptionCreates an or condition- Specified by:
- createOrConditionin interface- org.w3c.css.sac.ConditionFactory
- Parameters:
- first- the first condition
- second- the second condition
- Returns:
- A combinator condition
- Throws:
- org.w3c.css.sac.CSSException- if this exception is not supported.
 
 - 
createNegativeConditionpublic org.w3c.css.sac.NegativeCondition createNegativeCondition(org.w3c.css.sac.Condition condition) throws org.w3c.css.sac.CSSExceptionCreates a negative condition- Specified by:
- createNegativeConditionin interface- org.w3c.css.sac.ConditionFactory
- Parameters:
- condition- the condition
- Returns:
- A negative condition
- Throws:
- org.w3c.css.sac.CSSException- if this exception is not supported.
 
 - 
createPositionalConditionpublic org.w3c.css.sac.PositionalCondition createPositionalCondition(int position, boolean typeNode, boolean type) throws org.w3c.css.sac.CSSExceptionCreates a positional condition- Specified by:
- createPositionalConditionin interface- org.w3c.css.sac.ConditionFactory
- Parameters:
- position- the position of the node in the list.
- typeNode-- trueif the list should contain only nodes of the same type (element, text node, ...).
- type-- truetrue if the list should contain only nodes of the same node (for element, same localName and same namespaceURI).
- Returns:
- A positional condition
- Throws:
- org.w3c.css.sac.CSSException- if this exception is not supported.
 
 - 
createAttributeConditionpublic org.w3c.css.sac.AttributeCondition createAttributeCondition(String localName, String namespaceURI, boolean specified, String value) throws org.w3c.css.sac.CSSException creates an attribute condition- Specified by:
- createAttributeConditionin interface- org.w3c.css.sac.ConditionFactory
- Parameters:
- localName- the localName of the attribute
- namespaceURI- the namespace URI of the attribute
- specified-- trueif the attribute must be specified in the document.
- value- the value of this attribute.
- Returns:
- An attribute condition
- Throws:
- org.w3c.css.sac.CSSException- if this exception is not supported.
 
 - 
createIdConditionpublic org.w3c.css.sac.AttributeCondition createIdCondition(String value) throws org.w3c.css.sac.CSSException Creates an id condition- Specified by:
- createIdConditionin interface- org.w3c.css.sac.ConditionFactory
- Parameters:
- value- the value of the id.
- Returns:
- An Id condition
- Throws:
- org.w3c.css.sac.CSSException- if this exception is not supported.
 
 - 
createLangConditionpublic org.w3c.css.sac.LangCondition createLangCondition(String lang) throws org.w3c.css.sac.CSSException Creates a lang condition- Specified by:
- createLangConditionin interface- org.w3c.css.sac.ConditionFactory
- Parameters:
- value- the value of the language.
- Returns:
- A lang condition
- Throws:
- org.w3c.css.sac.CSSException- if this exception is not supported.
 
 - 
createOneOfAttributeConditionpublic org.w3c.css.sac.AttributeCondition createOneOfAttributeCondition(String localName, String namespaceURI, boolean specified, String value) throws org.w3c.css.sac.CSSException Creates a "one of" attribute condition- Specified by:
- createOneOfAttributeConditionin interface- org.w3c.css.sac.ConditionFactory
- Parameters:
- localName- the localName of the attribute
- namespaceURI- the namespace URI of the attribute
- specified-- trueif the attribute must be specified in the document.
- value- the value of this attribute.
- Returns:
- A "one of" attribute condition
- Throws:
- org.w3c.css.sac.CSSException- if this exception is not supported.
 
 - 
createBeginHyphenAttributeConditionpublic org.w3c.css.sac.AttributeCondition createBeginHyphenAttributeCondition(String localName, String namespaceURI, boolean specified, String value) throws org.w3c.css.sac.CSSException Creates a "begin hyphen" attribute condition- Specified by:
- createBeginHyphenAttributeConditionin interface- org.w3c.css.sac.ConditionFactory
- Parameters:
- localName- the localName of the attribute
- namespaceURI- the namespace URI of the attribute
- specified-- trueif the attribute must be specified in the document.
- value- the value of this attribute.
- Returns:
- A "begin hyphen" attribute condition
- Throws:
- org.w3c.css.sac.CSSException- if this exception is not supported.
 
 - 
createClassConditionpublic org.w3c.css.sac.AttributeCondition createClassCondition(String namespaceURI, String value) throws org.w3c.css.sac.CSSException Creates a class condition- Specified by:
- createClassConditionin interface- org.w3c.css.sac.ConditionFactory
- Parameters:
- localName- the localName of the attribute
- namespaceURI- the namespace URI of the attribute
- specified-- trueif the attribute must be specified in the document.
- value- the name of the class.
- Returns:
- A class condition
- Throws:
- org.w3c.css.sac.CSSException- if this exception is not supported.
 
 - 
createPseudoClassConditionpublic org.w3c.css.sac.AttributeCondition createPseudoClassCondition(String namespaceURI, String value) throws org.w3c.css.sac.CSSException Creates a pseudo class condition- Specified by:
- createPseudoClassConditionin interface- org.w3c.css.sac.ConditionFactory
- Parameters:
- namespaceURI- the namespace URI of the attribute
- value- the name of the pseudo class
- Returns:
- A pseudo class condition
- Throws:
- org.w3c.css.sac.CSSException- if this exception is not supported.
 
 - 
createOnlyChildConditionpublic org.w3c.css.sac.Condition createOnlyChildCondition() throws org.w3c.css.sac.CSSExceptionCreates a "only one" child condition- Specified by:
- createOnlyChildConditionin interface- org.w3c.css.sac.ConditionFactory
- Returns:
- A "only one" child condition
- Throws:
- org.w3c.css.sac.CSSException- if this exception is not supported.
 
 - 
createOnlyTypeConditionpublic org.w3c.css.sac.Condition createOnlyTypeCondition() throws org.w3c.css.sac.CSSExceptionCreates a "only one" type condition- Specified by:
- createOnlyTypeConditionin interface- org.w3c.css.sac.ConditionFactory
- Returns:
- A "only one" type condition
- Throws:
- org.w3c.css.sac.CSSException- if this exception is not supported.
 
 - 
createContentConditionpublic org.w3c.css.sac.ContentCondition createContentCondition(String data) throws org.w3c.css.sac.CSSException Creates a content condition- Specified by:
- createContentConditionin interface- org.w3c.css.sac.ConditionFactory
- Parameters:
- data- the data in the content
- Returns:
- A content condition
- Throws:
- org.w3c.css.sac.CSSException- if this exception is not supported.
 
 
- 
 
-