createAttributeCondition
public AttributeCondition createAttributeCondition(String localName,
String namespaceURI,
boolean specified,
String value)
throws CSSException
Creates an attribute condition
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.
createBeginHyphenAttributeCondition
public AttributeCondition createBeginHyphenAttributeCondition(String localName,
String namespaceURI,
boolean specified,
String value)
throws CSSException
Creates a "begin hyphen" attribute condition
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.
- A "begin hyphen" attribute condition
createClassCondition
public AttributeCondition createClassCondition(String namespaceURI,
String value)
throws CSSException
Creates a class condition
namespaceURI
- the namespace URI of the attributevalue
- the name of the class.
createContentCondition
public ContentCondition createContentCondition(String data)
throws CSSException
Creates a content condition
data
- the data in the content
createOneOfAttributeCondition
public AttributeCondition createOneOfAttributeCondition(String localName,
String namespaceURI,
boolean specified,
String value)
throws CSSException
Creates a "one of" attribute condition
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.
- A "one of" attribute condition
createOnlyChildCondition
public Condition createOnlyChildCondition()
throws CSSException
Creates a "only one" child condition
- A "only one" child condition
createOnlyTypeCondition
public Condition createOnlyTypeCondition()
throws CSSException
Creates a "only one" type condition
- A "only one" type condition
createPositionalCondition
public PositionalCondition createPositionalCondition(int position,
boolean typeNode,
boolean type)
throws CSSException
Creates a positional condition
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).
createPseudoClassCondition
public AttributeCondition createPseudoClassCondition(String namespaceURI,
String value)
throws CSSException
Creates a pseudo class condition
namespaceURI
- the namespace URI of the attributevalue
- the name of the pseudo class