Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
com.steadystate.css.parser.selectors.ConditionFactoryImpl
Method Summary | |
CombinatorCondition |
|
AttributeCondition |
|
AttributeCondition |
|
AttributeCondition |
|
ContentCondition |
|
AttributeCondition |
|
LangCondition |
|
NegativeCondition |
|
AttributeCondition |
|
Condition |
|
Condition |
|
CombinatorCondition |
|
PositionalCondition |
|
AttributeCondition |
|
public CombinatorCondition createAndCondition(Condition first, Condition second) throws CSSException
Creates an and condition
- Specified by:
- createAndCondition in interface ConditionFactory
- Parameters:
first
- the first conditionsecond
- the second condition
- Returns:
- A combinator condition
- Throws:
CSSException
- if this exception is not supported.
public AttributeCondition createAttributeCondition(String localName, String namespaceURI, boolean specified, String value) throws CSSException
Creates an attribute condition
- Specified by:
- createAttributeCondition in interface ConditionFactory
- Parameters:
localName
- the localName of the attributenamespaceURI
- the namespace URI of the attributespecified
-true
if the attribute must be specified in the document.value
- the value of this attribute.
- Returns:
- An attribute condition
- Throws:
CSSException
- if this exception is not supported.
public AttributeCondition createBeginHyphenAttributeCondition(String localName, String namespaceURI, boolean specified, String value) throws CSSException
Creates a "begin hyphen" attribute condition
- Specified by:
- createBeginHyphenAttributeCondition in interface ConditionFactory
- Parameters:
localName
- the localName of the attributenamespaceURI
- the namespace URI of the attributespecified
-true
if the attribute must be specified in the document.value
- the value of this attribute.
- Returns:
- A "begin hyphen" attribute condition
- Throws:
CSSException
- if this exception is not supported.
public AttributeCondition createClassCondition(String namespaceURI, String value) throws CSSException
Creates a class condition
- Specified by:
- createClassCondition in interface ConditionFactory
- Parameters:
namespaceURI
- the namespace URI of the attributevalue
- the name of the class.
- Returns:
- A class condition
- Throws:
CSSException
- if this exception is not supported.
public ContentCondition createContentCondition(String data) throws CSSException
Creates a content condition
- Specified by:
- createContentCondition in interface ConditionFactory
- Parameters:
data
- the data in the content
- Returns:
- A content condition
- Throws:
CSSException
- if this exception is not supported.
public AttributeCondition createIdCondition(String value) throws CSSException
Creates an id condition
- Specified by:
- createIdCondition in interface ConditionFactory
- Parameters:
value
- the value of the id.
- Returns:
- An Id condition
- Throws:
CSSException
- if this exception is not supported.
public LangCondition createLangCondition(String lang) throws CSSException
Creates a lang condition
- Specified by:
- createLangCondition in interface ConditionFactory
- Parameters:
- Returns:
- A lang condition
- Throws:
CSSException
- if this exception is not supported.
public NegativeCondition createNegativeCondition(Condition condition) throws CSSException
Creates a negative condition
- Specified by:
- createNegativeCondition in interface ConditionFactory
- Parameters:
condition
- the condition
- Returns:
- A negative condition
- Throws:
CSSException
- if this exception is not supported.
public AttributeCondition createOneOfAttributeCondition(String localName, String namespaceURI, boolean specified, String value) throws CSSException
Creates a "one of" attribute condition
- Specified by:
- createOneOfAttributeCondition in interface ConditionFactory
- Parameters:
localName
- the localName of the attributenamespaceURI
- the namespace URI of the attributespecified
-true
if the attribute must be specified in the document.value
- the value of this attribute.
- Returns:
- A "one of" attribute condition
- Throws:
CSSException
- if this exception is not supported.
public Condition createOnlyChildCondition() throws CSSException
Creates a "only one" child condition
- Specified by:
- createOnlyChildCondition in interface ConditionFactory
- Returns:
- A "only one" child condition
- Throws:
CSSException
- if this exception is not supported.
public Condition createOnlyTypeCondition() throws CSSException
Creates a "only one" type condition
- Specified by:
- createOnlyTypeCondition in interface ConditionFactory
- Returns:
- A "only one" type condition
- Throws:
CSSException
- if this exception is not supported.
public CombinatorCondition createOrCondition(Condition first, Condition second) throws CSSException
Creates an or condition
- Specified by:
- createOrCondition in interface ConditionFactory
- Parameters:
first
- the first conditionsecond
- the second condition
- Returns:
- A combinator condition
- Throws:
CSSException
- if this exception is not supported.
public PositionalCondition createPositionalCondition(int position, boolean typeNode, boolean type) throws CSSException
Creates a positional condition
- Specified by:
- createPositionalCondition in interface ConditionFactory
- Parameters:
position
- the position of the node in the list.typeNode
-true
if the list should contain only nodes of the same type (element, text node, ...).type
-true
true if the list should contain only nodes of the same node (for element, same localName and same namespaceURI).
- Returns:
- A positional condition
- Throws:
CSSException
- if this exception is not supported.
public AttributeCondition createPseudoClassCondition(String namespaceURI, String value) throws CSSException
Creates a pseudo class condition
- Specified by:
- createPseudoClassCondition in interface ConditionFactory
- Parameters:
namespaceURI
- the namespace URI of the attributevalue
- the name of the pseudo class
- Returns:
- A pseudo class condition
- Throws:
CSSException
- if this exception is not supported.