de.infinityloop.util.style
Class CSSSelector

java.lang.Object
  extended by de.infinityloop.util.style.CSSSelector

public class CSSSelector
extends java.lang.Object


Constructor Summary
CSSSelector()
          default creator
CSSSelector(org.w3c.css.sac.Selector origSelector)
          creator.
CSSSelector(java.lang.String pageRuleName)
          creator.
 
Method Summary
 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
 int 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CSSSelector

public CSSSelector(org.w3c.css.sac.Selector origSelector)
creator. Expects value to be a valid CSS length description string.


CSSSelector

public CSSSelector(java.lang.String pageRuleName)
creator. Expects an @page rule "class name".


CSSSelector

public CSSSelector()
default creator

Method Detail

isPageRule

public boolean isPageRule()
returns true if this is a page rule pseudo selector.


getWeight

public int getWeight()
retrieves this seletor's specificity.


getElementName

public java.lang.String getElementName()
retrieves this selectors element name it operates on, or null if all elements.


getAttributeName

public java.lang.String getAttributeName()
retrieves this selectors attribute name it operates on, or null if all attributes.


getAttributeValue

public java.lang.String getAttributeValue()
retrieves this selectors attribute value it operates on, or null if all values (i.e. "if exists attribute").


getIDValue

public java.lang.String getIDValue()
retrieves this selectors ID attribute value


getPageRuleName

public java.lang.String getPageRuleName()
retrieves the page rule name


setSimpleClassSelector

public void setSimpleClassSelector(java.lang.String name)
sets this selector to represent a simple class of name "name".


toString

public java.lang.String toString()
text representation for debugging purposes.

Overrides:
toString in class java.lang.Object