|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.css.engine.sac.CSSConditionFactory
This class provides an implementation of the
ConditionFactory
interface.
Field Summary | |
protected java.lang.String |
classLocalName
The class attribute local name. |
protected java.lang.String |
classNamespaceURI
The class attribute namespace URI. |
protected java.lang.String |
idLocalName
The id attribute local name. |
protected java.lang.String |
idNamespaceURI
The id attribute namespace URI. |
Constructor Summary | |
CSSConditionFactory(java.lang.String cns,
java.lang.String cln,
java.lang.String idns,
java.lang.String idln)
Creates a new condition factory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String classNamespaceURI
protected java.lang.String classLocalName
protected java.lang.String idNamespaceURI
protected java.lang.String idLocalName
Constructor Detail |
public CSSConditionFactory(java.lang.String cns, java.lang.String cln, java.lang.String idns, java.lang.String idln)
Method Detail |
public CombinatorCondition createAndCondition(Condition first, Condition second) throws CSSException
ConditionFactory.createAndCondition(Condition,Condition)
.
createAndCondition
in interface ConditionFactory
first
- the first conditionsecond
- the second condition
CSSException
- if this exception is not supported.public CombinatorCondition createOrCondition(Condition first, Condition second) throws CSSException
ConditionFactory.createOrCondition(Condition,Condition)
.
createOrCondition
in interface ConditionFactory
first
- the first conditionsecond
- the second condition
CSSException
- if this exception is not supported.public NegativeCondition createNegativeCondition(Condition condition) throws CSSException
ConditionFactory.createNegativeCondition(Condition)
.
createNegativeCondition
in interface ConditionFactory
condition
- the condition
CSSException
- if this exception is not supported.public PositionalCondition createPositionalCondition(int position, boolean typeNode, boolean type) throws CSSException
ConditionFactory.createPositionalCondition(int,boolean,boolean)
.
createPositionalCondition
in interface 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).
CSSException
- if this exception is not supported.public AttributeCondition createAttributeCondition(java.lang.String localName, java.lang.String namespaceURI, boolean specified, java.lang.String value) throws CSSException
ConditionFactory.createAttributeCondition(String,String,boolean,String)
.
createAttributeCondition
in interface 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.
CSSException
- if this exception is not supported.public AttributeCondition createIdCondition(java.lang.String value) throws CSSException
ConditionFactory.createIdCondition(String)
.
createIdCondition
in interface ConditionFactory
value
- the value of the id.
CSSException
- if this exception is not supported.public LangCondition createLangCondition(java.lang.String lang) throws CSSException
ConditionFactory.createLangCondition(String)
.
createLangCondition
in interface ConditionFactory
CSSException
- if this exception is not supported.public AttributeCondition createOneOfAttributeCondition(java.lang.String localName, java.lang.String nsURI, boolean specified, java.lang.String value) throws CSSException
ConditionFactory.createOneOfAttributeCondition(String,String,boolean,String)
.
createOneOfAttributeCondition
in interface ConditionFactory
localName
- the localName of the attributensURI
- 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(java.lang.String localName, java.lang.String namespaceURI, boolean specified, java.lang.String value) throws CSSException
ConditionFactory.createBeginHyphenAttributeCondition(String,String,boolean,String)
.
createBeginHyphenAttributeCondition
in interface 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.
CSSException
- if this exception is not supported.public AttributeCondition createClassCondition(java.lang.String namespaceURI, java.lang.String value) throws CSSException
ConditionFactory.createClassCondition(String,String)
.
createClassCondition
in interface ConditionFactory
namespaceURI
- the namespace URI of the attributevalue
- the name of the class.
CSSException
- if this exception is not supported.public AttributeCondition createPseudoClassCondition(java.lang.String namespaceURI, java.lang.String value) throws CSSException
ConditionFactory.createPseudoClassCondition(String,String)
.
createPseudoClassCondition
in interface ConditionFactory
namespaceURI
- the namespace URI of the attributevalue
- the name of the pseudo class
CSSException
- if this exception is not supported.public Condition createOnlyChildCondition() throws CSSException
ConditionFactory.createOnlyChildCondition()
.
createOnlyChildCondition
in interface ConditionFactory
CSSException
- if this exception is not supported.public Condition createOnlyTypeCondition() throws CSSException
ConditionFactory.createOnlyTypeCondition()
.
createOnlyTypeCondition
in interface ConditionFactory
CSSException
- if this exception is not supported.public ContentCondition createContentCondition(java.lang.String data) throws CSSException
ConditionFactory.createContentCondition(String)
.
createContentCondition
in interface ConditionFactory
data
- the data in the content
CSSException
- if this exception is not supported.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |