public class ConditionFactoryImpl extends Object implements ConditionFactoryExt
| Constructor and Description |
|---|
ConditionFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
CombinatorCondition |
createAndCondition(Condition first,
Condition second)
Creates an and condition
|
AttributeCondition |
createAttributeCondition(String localName,
String namespaceURI,
boolean specified,
String value)
Creates an attribute condition
|
AttributeCondition |
createBeginHyphenAttributeCondition(String localName,
String namespaceURI,
boolean specified,
String value)
Creates a "begin hyphen" attribute condition
|
AttributeCondition |
createClassCondition(String namespaceURI,
String value)
Creates a class condition
|
AttributeCondition |
createClassCondition(String namespaceURI,
String value,
Locator locator) |
ContentCondition |
createContentCondition(String data)
Creates a content condition
|
AttributeCondition |
createIdCondition(String value)
Creates an id condition
|
AttributeCondition |
createIdCondition(String value,
Locator locator) |
LangCondition |
createLangCondition(String lang)
Creates a lang condition
|
LangCondition |
createLangCondition(String lang,
Locator locator) |
NegativeCondition |
createNegativeCondition(Condition condition)
Creates a negative condition
|
AttributeCondition |
createOneOfAttributeCondition(String localName,
String namespaceURI,
boolean specified,
String value)
Creates a "one of" attribute condition
|
Condition |
createOnlyChildCondition()
Creates a "only one" child condition
|
Condition |
createOnlyTypeCondition()
Creates a "only one" type condition
|
CombinatorCondition |
createOrCondition(Condition first,
Condition second)
Creates an or condition
|
PositionalCondition |
createPositionalCondition(int position,
boolean typeNode,
boolean type)
Creates a positional condition
|
AttributeCondition |
createPrefixAttributeCondition(String localName,
String namespaceURI,
boolean specified,
String value) |
AttributeCondition |
createPseudoClassCondition(String namespaceURI,
String value)
Creates a pseudo class condition
|
AttributeCondition |
createPseudoClassCondition(String namespaceURI,
String value,
Locator locator,
boolean doubleColon) |
AttributeCondition |
createSubstringAttributeCondition(String localName,
String namespaceURI,
boolean specified,
String value) |
AttributeCondition |
createSuffixAttributeCondition(String localName,
String namespaceURI,
boolean specified,
String value) |
public CombinatorCondition createAndCondition(Condition first, Condition second) throws CSSException
ConditionFactorycreateAndCondition in interface ConditionFactoryfirst - the first conditionsecond - the second conditionCSSException - if this exception is not supported.public CombinatorCondition createOrCondition(Condition first, Condition second) throws CSSException
ConditionFactorycreateOrCondition in interface ConditionFactoryfirst - the first conditionsecond - the second conditionCSSException - if this exception is not supported.public NegativeCondition createNegativeCondition(Condition condition) throws CSSException
ConditionFactorycreateNegativeCondition in interface ConditionFactorycondition - the conditionCSSException - if this exception is not supported.public PositionalCondition createPositionalCondition(int position, boolean typeNode, boolean type) throws CSSException
ConditionFactorycreatePositionalCondition in interface ConditionFactoryposition - 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).CSSException - if this exception is not supported.public AttributeCondition createAttributeCondition(String localName, String namespaceURI, boolean specified, String value) throws CSSException
ConditionFactorycreateAttributeCondition in interface ConditionFactorylocalName - 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.CSSException - if this exception is not supported.public AttributeCondition createIdCondition(String value) throws CSSException
ConditionFactorycreateIdCondition in interface ConditionFactoryvalue - the value of the id.CSSException - if this exception is not supported.public AttributeCondition createIdCondition(String value, Locator locator) throws CSSException
createIdCondition in interface ConditionFactoryExtCSSExceptionpublic LangCondition createLangCondition(String lang) throws CSSException
ConditionFactorycreateLangCondition in interface ConditionFactoryCSSException - if this exception is not supported.public LangCondition createLangCondition(String lang, Locator locator) throws CSSException
createLangCondition in interface ConditionFactoryExtCSSExceptionpublic AttributeCondition createOneOfAttributeCondition(String localName, String namespaceURI, boolean specified, String value) throws CSSException
ConditionFactorycreateOneOfAttributeCondition in interface ConditionFactorylocalName - 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.CSSException - if this exception is not supported.public AttributeCondition createBeginHyphenAttributeCondition(String localName, String namespaceURI, boolean specified, String value) throws CSSException
ConditionFactorycreateBeginHyphenAttributeCondition in interface ConditionFactorylocalName - 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.CSSException - if this exception is not supported.public AttributeCondition createPrefixAttributeCondition(String localName, String namespaceURI, boolean specified, String value) throws CSSException
createPrefixAttributeCondition in interface ConditionFactoryExtCSSExceptionpublic AttributeCondition createSuffixAttributeCondition(String localName, String namespaceURI, boolean specified, String value) throws CSSException
createSuffixAttributeCondition in interface ConditionFactoryExtCSSExceptionpublic AttributeCondition createSubstringAttributeCondition(String localName, String namespaceURI, boolean specified, String value) throws CSSException
createSubstringAttributeCondition in interface ConditionFactoryExtCSSExceptionpublic AttributeCondition createClassCondition(String namespaceURI, String value) throws CSSException
ConditionFactorycreateClassCondition in interface ConditionFactorynamespaceURI - the namespace URI of the attributevalue - the name of the class.CSSException - if this exception is not supported.public AttributeCondition createClassCondition(String namespaceURI, String value, Locator locator) throws CSSException
createClassCondition in interface ConditionFactoryExtCSSExceptionpublic AttributeCondition createPseudoClassCondition(String namespaceURI, String value) throws CSSException
ConditionFactorycreatePseudoClassCondition in interface ConditionFactorynamespaceURI - the namespace URI of the attributevalue - the name of the pseudo classCSSException - if this exception is not supported.public AttributeCondition createPseudoClassCondition(String namespaceURI, String value, Locator locator, boolean doubleColon) throws CSSException
createPseudoClassCondition in interface ConditionFactoryExtCSSExceptionpublic Condition createOnlyChildCondition() throws CSSException
ConditionFactorycreateOnlyChildCondition in interface ConditionFactoryCSSException - if this exception is not supported.public Condition createOnlyTypeCondition() throws CSSException
ConditionFactorycreateOnlyTypeCondition in interface ConditionFactoryCSSException - if this exception is not supported.public ContentCondition createContentCondition(String data) throws CSSException
ConditionFactorycreateContentCondition in interface ConditionFactorydata - the data in the contentCSSException - if this exception is not supported.Copyright © 2026. All rights reserved.