fi.hut.tml.xsmiles.mlfc.css
Class CSSSelectors

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.css.CSSSelectors
All Implemented Interfaces:
Selectors
Direct Known Subclasses:
CSSSelectorsHTML

public class CSSSelectors
extends java.lang.Object
implements Selectors


Constructor Summary
CSSSelectors()
           
 
Method Summary
 java.lang.String getStyleAttrValue(StylableElement element)
          in HTML converts border=0 to border-width:0px, etc.
protected  boolean matchAttributeName(java.lang.String attrName, java.lang.String selName)
          in HTMLSelectors, this is overridden to match case insensitively
protected  boolean matchElementName(java.lang.String elementName, java.lang.String selName)
          match element name to selector name in HTMLSelectors, this is overridden to match case insensitively
protected  java.lang.String normalizeAttributeName(java.lang.String attrName)
          in HTMLSelectors, this is overridden to match case insensitively
 boolean selectorMatchesElem(org.w3c.css.sac.Selector selector, org.w3c.dom.Element element)
          Does this selector match
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSSSelectors

public CSSSelectors()
Method Detail

selectorMatchesElem

public boolean selectorMatchesElem(org.w3c.css.sac.Selector selector,
                                   org.w3c.dom.Element element)
Description copied from interface: Selectors
Does this selector match

Specified by:
selectorMatchesElem in interface Selectors

matchElementName

protected boolean matchElementName(java.lang.String elementName,
                                   java.lang.String selName)
match element name to selector name in HTMLSelectors, this is overridden to match case insensitively


normalizeAttributeName

protected java.lang.String normalizeAttributeName(java.lang.String attrName)
in HTMLSelectors, this is overridden to match case insensitively


matchAttributeName

protected boolean matchAttributeName(java.lang.String attrName,
                                     java.lang.String selName)
in HTMLSelectors, this is overridden to match case insensitively


getStyleAttrValue

public java.lang.String getStyleAttrValue(StylableElement element)
in HTML converts border=0 to border-width:0px, etc.

Specified by:
getStyleAttrValue in interface Selectors


X-Smiles 1.2