public class CSSSelector
extends java.lang.Object
Constructor and Description |
---|
CSSSelector()
default creator
|
CSSSelector(org.w3c.css.sac.Selector origSelector)
creator.
|
CSSSelector(java.lang.String pageRuleName)
creator.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttributeName()
retrieves this selectors attribute name it operates on, or null if all attributes.
|
java.lang.String |
getAttributeValue()
retrieves this selectors attribute value it operates on, or null if all values (i.e.
|
java.lang.String |
getElementName()
retrieves this selectors element name it operates on, or null if all elements.
|
java.lang.String |
getIDValue()
retrieves this selectors ID attribute value
|
java.lang.String |
getPageRuleName()
retrieves the page rule name
|
long |
getWeight()
retrieves this seletor's specificity.
|
boolean |
isPageRule()
returns true if this is a page rule pseudo selector.
|
void |
setSimpleClassSelector(java.lang.String name)
sets this selector to represent a simple class of name "name".
|
java.lang.String |
toString()
text representation for debugging purposes.
|
public CSSSelector(org.w3c.css.sac.Selector origSelector)
public CSSSelector(java.lang.String pageRuleName)
public CSSSelector()
public boolean isPageRule()
public long getWeight()
public java.lang.String getElementName()
public java.lang.String getAttributeName()
public java.lang.String getAttributeValue()
public java.lang.String getIDValue()
public java.lang.String getPageRuleName()
public void setSimpleClassSelector(java.lang.String name)
public java.lang.String toString()
toString
in class java.lang.Object