com.steadystate.css.parser.selectors
Class OneOfAttributeConditionImpl

java.lang.Object
  extended by com.steadystate.css.parser.selectors.OneOfAttributeConditionImpl
All Implemented Interfaces:
java.io.Serializable, AttributeCondition, Condition

public class OneOfAttributeConditionImpl
extends java.lang.Object
implements AttributeCondition, java.io.Serializable

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.w3c.css.sac.Condition
SAC_AND_CONDITION, SAC_ATTRIBUTE_CONDITION, SAC_BEGIN_HYPHEN_ATTRIBUTE_CONDITION, SAC_CLASS_CONDITION, SAC_CONTENT_CONDITION, SAC_ID_CONDITION, SAC_LANG_CONDITION, SAC_NEGATIVE_CONDITION, SAC_ONE_OF_ATTRIBUTE_CONDITION, SAC_ONLY_CHILD_CONDITION, SAC_ONLY_TYPE_CONDITION, SAC_OR_CONDITION, SAC_POSITIONAL_CONDITION, SAC_PSEUDO_CLASS_CONDITION
 
Constructor Summary
OneOfAttributeConditionImpl(java.lang.String localName, java.lang.String value)
           
 
Method Summary
 short getConditionType()
          An integer indicating the type of Condition.
 java.lang.String getLocalName()
          Returns the local part of the qualified name of this attribute.
 java.lang.String getNamespaceURI()
          Returns the namespace URI of this attribute condition.
 boolean getSpecified()
          Returns true if the attribute must have an explicit value in the original document, false otherwise.
 java.lang.String getValue()
          Returns the value of the attribute.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OneOfAttributeConditionImpl

public OneOfAttributeConditionImpl(java.lang.String localName,
                                   java.lang.String value)
Method Detail

getConditionType

public short getConditionType()
Description copied from interface: Condition
An integer indicating the type of Condition.

Specified by:
getConditionType in interface Condition

getNamespaceURI

public java.lang.String getNamespaceURI()
Description copied from interface: AttributeCondition
Returns the namespace URI of this attribute condition.

NULL if :

Specified by:
getNamespaceURI in interface AttributeCondition

getLocalName

public java.lang.String getLocalName()
Description copied from interface: AttributeCondition
Returns the local part of the qualified name of this attribute.

NULL if :

Specified by:
getLocalName in interface AttributeCondition

getSpecified

public boolean getSpecified()
Description copied from interface: AttributeCondition
Returns true if the attribute must have an explicit value in the original document, false otherwise. If this is a pseudo class, the return value is unspecified.

false if:

Specified by:
getSpecified in interface AttributeCondition

getValue

public java.lang.String getValue()
Description copied from interface: AttributeCondition
Returns the value of the attribute. If this attribute is a class or a pseudo class attribute, you'll get the class name (or psedo class name) without the '.' or ':'.

Specified by:
getValue in interface AttributeCondition

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object