public class CSSConditionFactory extends 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(String localName,
String namespaceURI,
boolean specified,
String value)
Creates an attribute condition
|
org.w3c.css.sac.AttributeCondition |
createBeginHyphenAttributeCondition(String localName,
String namespaceURI,
boolean specified,
String value)
Creates a "begin hyphen" attribute condition
|
org.w3c.css.sac.AttributeCondition |
createClassCondition(String namespaceURI,
String value)
Creates a class condition
|
org.w3c.css.sac.ContentCondition |
createContentCondition(String data)
Creates a content condition
|
org.w3c.css.sac.AttributeCondition |
createIdCondition(String value)
Creates an id condition
|
org.w3c.css.sac.LangCondition |
createLangCondition(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(String localName,
String namespaceURI,
boolean specified,
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(String namespaceURI,
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.ConditionFactory
first
- 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.ConditionFactory
first
- 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.ConditionFactory
condition
- 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.ConditionFactory
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).org.w3c.css.sac.CSSException
- if this exception is not supported.public org.w3c.css.sac.AttributeCondition createAttributeCondition(String localName, String namespaceURI, boolean specified, String value) throws org.w3c.css.sac.CSSException
createAttributeCondition
in interface org.w3c.css.sac.ConditionFactory
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.org.w3c.css.sac.CSSException
- if this exception is not supported.public org.w3c.css.sac.AttributeCondition createIdCondition(String value) throws org.w3c.css.sac.CSSException
createIdCondition
in interface org.w3c.css.sac.ConditionFactory
value
- the value of the id.org.w3c.css.sac.CSSException
- if this exception is not supported.public org.w3c.css.sac.LangCondition createLangCondition(String lang) throws org.w3c.css.sac.CSSException
createLangCondition
in interface org.w3c.css.sac.ConditionFactory
lang
- the value of the language.org.w3c.css.sac.CSSException
- if this exception is not supported.public org.w3c.css.sac.AttributeCondition createOneOfAttributeCondition(String localName, String namespaceURI, boolean specified, String value) throws org.w3c.css.sac.CSSException
createOneOfAttributeCondition
in interface org.w3c.css.sac.ConditionFactory
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.org.w3c.css.sac.CSSException
- if this exception is not supported.public org.w3c.css.sac.AttributeCondition createClassCondition(String namespaceURI, String value) throws org.w3c.css.sac.CSSException
createClassCondition
in interface org.w3c.css.sac.ConditionFactory
namespaceURI
- the namespace URI of the attributevalue
- the name of the class.org.w3c.css.sac.CSSException
- if this exception is not supported.public org.w3c.css.sac.AttributeCondition createPseudoClassCondition(String namespaceURI, String value) throws org.w3c.css.sac.CSSException
createPseudoClassCondition
in interface org.w3c.css.sac.ConditionFactory
namespaceURI
- 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(String localName, String namespaceURI, boolean specified, String value) throws org.w3c.css.sac.CSSException
createBeginHyphenAttributeCondition
in interface org.w3c.css.sac.ConditionFactory
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.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.ConditionFactory
org.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.ConditionFactory
org.w3c.css.sac.CSSException
- if this exception is not supported.public org.w3c.css.sac.ContentCondition createContentCondition(String data) throws org.w3c.css.sac.CSSException
createContentCondition
in interface org.w3c.css.sac.ConditionFactory
data
- the data in the contentorg.w3c.css.sac.CSSException
- if this exception is not supported.Copyright © 2017 Hitachi Vantara. All rights reserved.