com.vaadin.sass.internal.selector
Class AttributeSelector

java.lang.Object
  extended by com.vaadin.sass.internal.selector.SimpleSelector
      extended by com.vaadin.sass.internal.selector.AttributeSelector
All Implemented Interfaces:
Serializable

public class AttributeSelector
extends SimpleSelector

Single CSS3 attribute selector such as "[attribute]" or "[attribute~=value]". See also SimpleSelectorSequence and Selector.

See Also:
Serialized Form

Nested Class Summary
static class AttributeSelector.MatchRelation
           
 
Constructor Summary
AttributeSelector(String attribute, AttributeSelector.MatchRelation matchRelation, String value)
          Constructs an attribute selector with an attribute name and optional match relation and value.
 
Method Summary
 String getAttribute()
           
 AttributeSelector.MatchRelation getMatchRelation()
           
 AttributeSelector replaceVariable(VariableNode var)
           
 String toString()
           
 
Methods inherited from class com.vaadin.sass.internal.selector.SimpleSelector
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeSelector

public AttributeSelector(String attribute,
                         AttributeSelector.MatchRelation matchRelation,
                         String value)
Constructs an attribute selector with an attribute name and optional match relation and value. Match relation and value should both be set or both be null.

Parameters:
attribute - attribute name
matchRelation - CSS3 match relation enum value
value - string value to compare against
Method Detail

getAttribute

public String getAttribute()

getMatchRelation

public AttributeSelector.MatchRelation getMatchRelation()

toString

public String toString()
Overrides:
toString in class Object

replaceVariable

public AttributeSelector replaceVariable(VariableNode var)
Overrides:
replaceVariable in class SimpleSelector


Copyright © 2013–2014 Vaadin. All rights reserved.