public class CSSConditionFactory
extends java.lang.Object
implements org.w3c.css.sac.ConditionFactory
| Constructor and Description |
|---|
CSSConditionFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.w3c.css.sac.CombinatorCondition |
createAndCondition(org.w3c.css.sac.Condition first,
org.w3c.css.sac.Condition second)
Creates an and condition
|
org.w3c.css.sac.AttributeCondition |
createAttributeCondition(java.lang.String localName,
java.lang.String namespaceURI,
boolean specified,
java.lang.String value)
Creates an attribute condition
|
org.w3c.css.sac.AttributeCondition |
createBeginHyphenAttributeCondition(java.lang.String localName,
java.lang.String namespaceURI,
boolean specified,
java.lang.String value)
Creates a "begin hyphen" attribute condition
|
org.w3c.css.sac.AttributeCondition |
createClassCondition(java.lang.String namespaceURI,
java.lang.String value)
Creates a class condition
|
org.w3c.css.sac.ContentCondition |
createContentCondition(java.lang.String data)
Creates a content condition
|
org.w3c.css.sac.AttributeCondition |
createIdCondition(java.lang.String value)
Creates an id condition
|
org.w3c.css.sac.LangCondition |
createLangCondition(java.lang.String lang)
Creates a lang condition
|
org.w3c.css.sac.NegativeCondition |
createNegativeCondition(org.w3c.css.sac.Condition condition)
Creates a negative condition
|
org.w3c.css.sac.AttributeCondition |
createOneOfAttributeCondition(java.lang.String localName,
java.lang.String namespaceURI,
boolean specified,
java.lang.String value)
Creates a "one of" attribute condition
|
org.w3c.css.sac.Condition |
createOnlyChildCondition()
Creates a "only one" child condition
|
org.w3c.css.sac.Condition |
createOnlyTypeCondition()
Creates a "only one" type condition
|
org.w3c.css.sac.CombinatorCondition |
createOrCondition(org.w3c.css.sac.Condition first,
org.w3c.css.sac.Condition second)
Creates an or condition
|
org.w3c.css.sac.PositionalCondition |
createPositionalCondition(int position,
boolean typeNode,
boolean type)
Creates a positional condition
|
org.w3c.css.sac.AttributeCondition |
createPseudoClassCondition(java.lang.String namespaceURI,
java.lang.String value)
Creates a pseudo class condition
|
public org.w3c.css.sac.CombinatorCondition createAndCondition(org.w3c.css.sac.Condition first,
org.w3c.css.sac.Condition second)
throws org.w3c.css.sac.CSSException
createAndCondition in interface org.w3c.css.sac.ConditionFactoryfirst - the first conditionsecond - the second conditionorg.w3c.css.sac.CSSException - if this exception is not supported.public org.w3c.css.sac.CombinatorCondition createOrCondition(org.w3c.css.sac.Condition first,
org.w3c.css.sac.Condition second)
throws org.w3c.css.sac.CSSException
createOrCondition in interface org.w3c.css.sac.ConditionFactoryfirst - the first conditionsecond - the second conditionorg.w3c.css.sac.CSSException - if this exception is not supported.public org.w3c.css.sac.NegativeCondition createNegativeCondition(org.w3c.css.sac.Condition condition)
throws org.w3c.css.sac.CSSException
createNegativeCondition in interface org.w3c.css.sac.ConditionFactorycondition - the conditionorg.w3c.css.sac.CSSException - if this exception is not supported.public org.w3c.css.sac.PositionalCondition createPositionalCondition(int position,
boolean typeNode,
boolean type)
throws org.w3c.css.sac.CSSException
createPositionalCondition in interface org.w3c.css.sac.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).org.w3c.css.sac.CSSException - if this exception is not supported.public org.w3c.css.sac.AttributeCondition createAttributeCondition(java.lang.String localName,
java.lang.String namespaceURI,
boolean specified,
java.lang.String value)
throws org.w3c.css.sac.CSSException
createAttributeCondition in interface org.w3c.css.sac.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.org.w3c.css.sac.CSSException - if this exception is not supported.public org.w3c.css.sac.AttributeCondition createIdCondition(java.lang.String value)
throws org.w3c.css.sac.CSSException
createIdCondition in interface org.w3c.css.sac.ConditionFactoryvalue - the value of the id.org.w3c.css.sac.CSSException - if this exception is not supported.public org.w3c.css.sac.LangCondition createLangCondition(java.lang.String lang)
throws org.w3c.css.sac.CSSException
createLangCondition in interface org.w3c.css.sac.ConditionFactoryvalue - the value of the language.org.w3c.css.sac.CSSException - if this exception is not supported.public org.w3c.css.sac.AttributeCondition createOneOfAttributeCondition(java.lang.String localName,
java.lang.String namespaceURI,
boolean specified,
java.lang.String value)
throws org.w3c.css.sac.CSSException
createOneOfAttributeCondition in interface org.w3c.css.sac.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.org.w3c.css.sac.CSSException - if this exception is not supported.public org.w3c.css.sac.AttributeCondition createClassCondition(java.lang.String namespaceURI,
java.lang.String value)
throws org.w3c.css.sac.CSSException
createClassCondition in interface org.w3c.css.sac.ConditionFactorylocalName - the localName of the attributenamespaceURI - the namespace URI of the attributespecified - true if the attribute must be specified in
the document.value - the name of the class.org.w3c.css.sac.CSSException - if this exception is not supported.public org.w3c.css.sac.AttributeCondition createPseudoClassCondition(java.lang.String namespaceURI,
java.lang.String value)
throws org.w3c.css.sac.CSSException
createPseudoClassCondition in interface org.w3c.css.sac.ConditionFactorynamespaceURI - the namespace URI of the attributevalue - the name of the pseudo classorg.w3c.css.sac.CSSException - if this exception is not supported.public org.w3c.css.sac.AttributeCondition createBeginHyphenAttributeCondition(java.lang.String localName,
java.lang.String namespaceURI,
boolean specified,
java.lang.String value)
throws org.w3c.css.sac.CSSException
createBeginHyphenAttributeCondition in interface org.w3c.css.sac.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.org.w3c.css.sac.CSSException - if this exception is not supported.public org.w3c.css.sac.Condition createOnlyChildCondition()
throws org.w3c.css.sac.CSSException
createOnlyChildCondition in interface org.w3c.css.sac.ConditionFactoryorg.w3c.css.sac.CSSException - if this exception is not supported.public org.w3c.css.sac.Condition createOnlyTypeCondition()
throws org.w3c.css.sac.CSSException
createOnlyTypeCondition in interface org.w3c.css.sac.ConditionFactoryorg.w3c.css.sac.CSSException - if this exception is not supported.public org.w3c.css.sac.ContentCondition createContentCondition(java.lang.String data)
throws org.w3c.css.sac.CSSException
createContentCondition in interface org.w3c.css.sac.ConditionFactorydata - the data in the contentorg.w3c.css.sac.CSSException - if this exception is not supported.