com.vaadin.sass.internal.selector
Class AttributeSelector
java.lang.Object
com.vaadin.sass.internal.selector.SimpleSelector
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
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 namematchRelation - CSS3 match relation enum valuevalue - string value to compare against
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.