|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.batik.css.engine.sac.CSSConditionFactory
This class provides an implementation of the
ConditionFactory interface.
| Field Summary | |
protected String |
classLocalName
The class attribute local name. |
protected String |
classNamespaceURI
The class attribute namespace URI. |
protected String |
idLocalName
The id attribute local name. |
protected String |
idNamespaceURI
The id attribute namespace URI. |
| Constructor Summary | |
CSSConditionFactory(String cns,
String cln,
String idns,
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 String classNamespaceURI
protected String classLocalName
protected String idNamespaceURI
protected String idLocalName
| Constructor Detail |
public CSSConditionFactory(String cns,
String cln,
String idns,
String idln)
| Method Detail |
public CombinatorCondition createAndCondition(Condition first,
Condition second)
throws CSSException
ConditionFactory.createAndCondition(Condition,Condition).
createAndCondition in interface ConditionFactoryfirst - 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 ConditionFactoryfirst - 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 ConditionFactorycondition - 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 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
ConditionFactory.createAttributeCondition(String,String,boolean,String).
createAttributeCondition 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
ConditionFactory.createIdCondition(String).
createIdCondition in interface ConditionFactoryvalue - the value of the id.
CSSException - if this exception is not supported.
public LangCondition createLangCondition(String lang)
throws CSSException
ConditionFactory.createLangCondition(String).
createLangCondition in interface ConditionFactorylang - the value of the language.
CSSException - if this exception is not supported.
public AttributeCondition createOneOfAttributeCondition(String localName,
String nsURI,
boolean specified,
String value)
throws CSSException
ConditionFactory.createOneOfAttributeCondition(String,String,boolean,String).
createOneOfAttributeCondition in interface ConditionFactorylocalName - 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(String localName,
String namespaceURI,
boolean specified,
String value)
throws CSSException
ConditionFactory.createBeginHyphenAttributeCondition(String,String,boolean,String).
createBeginHyphenAttributeCondition 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 createClassCondition(String namespaceURI,
String value)
throws CSSException
ConditionFactory.createClassCondition(String,String).
createClassCondition in interface ConditionFactorynamespaceURI - the namespace URI of the attributevalue - the name of the class.
CSSException - if this exception is not supported.
public AttributeCondition createPseudoClassCondition(String namespaceURI,
String value)
throws CSSException
ConditionFactory.createPseudoClassCondition(String,String).
createPseudoClassCondition in interface ConditionFactorynamespaceURI - 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 ConditionFactoryCSSException - if this exception is not supported.
public Condition createOnlyTypeCondition()
throws CSSException
ConditionFactory.createOnlyTypeCondition().
createOnlyTypeCondition in interface ConditionFactoryCSSException - if this exception is not supported.
public ContentCondition createContentCondition(String data)
throws CSSException
ConditionFactory.createContentCondition(String).
createContentCondition in interface ConditionFactorydata - 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 | ||||||||||