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

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.css.CSSParser

public class CSSParser
extends java.lang.Object

Parses CSS files into CSSStyleSheet objects

Author:
Mikko Honkala, Alessandro Cogliati

Field Summary
static int STYLESHEET_AUTHOR
           
static int STYLESHEET_USERAGENT
           
 
Constructor Summary
CSSParser(XSmilesStyleSheet styleSheetHandler, MediaQueryEvaluator evaluator, ResourceFetcher f)
           
 
Method Summary
 void checkRules(java.net.URL cssLocationUrl, org.w3c.dom.css.CSSStyleSheet st, java.util.Vector styleSheetListDefault, java.util.Vector styleSheetListUser, int flag)
           
 org.w3c.dom.css.CSSStyleSheet parse(org.w3c.css.sac.InputSource input, java.net.URL baseURL, int flag, java.util.Vector styleSheetListDefault, java.util.Vector styleSheetListUser)
           
 org.w3c.dom.css.CSSStyleSheet parse(java.net.URL cssLocationUrl, int flag, int position, java.util.Vector styleSheetListDefault, java.util.Vector styleSheetListUser)
          This method parses the stylesheet, reading also imported stylesheets
 org.w3c.dom.css.CSSStyleSheet parse(java.net.URL baseURL, java.lang.String cssString, int flag, int position, java.util.Vector styleSheetListDefault, java.util.Vector styleSheetListUser)
          This method parses the stylesheet, reading also imported stylesheets
 XSmilesCSSStyleDeclarationImpl parseStyleAttrValue(java.lang.String styleText)
          parses a single declaration string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STYLESHEET_USERAGENT

public static int STYLESHEET_USERAGENT

STYLESHEET_AUTHOR

public static int STYLESHEET_AUTHOR
Constructor Detail

CSSParser

public CSSParser(XSmilesStyleSheet styleSheetHandler,
                 MediaQueryEvaluator evaluator,
                 ResourceFetcher f)
Method Detail

parse

public org.w3c.dom.css.CSSStyleSheet parse(org.w3c.css.sac.InputSource input,
                                           java.net.URL baseURL,
                                           int flag,
                                           java.util.Vector styleSheetListDefault,
                                           java.util.Vector styleSheetListUser)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

parse

public org.w3c.dom.css.CSSStyleSheet parse(java.net.URL cssLocationUrl,
                                           int flag,
                                           int position,
                                           java.util.Vector styleSheetListDefault,
                                           java.util.Vector styleSheetListUser)
                                    throws java.lang.Exception
This method parses the stylesheet, reading also imported stylesheets

Throws:
java.lang.Exception

parse

public org.w3c.dom.css.CSSStyleSheet parse(java.net.URL baseURL,
                                           java.lang.String cssString,
                                           int flag,
                                           int position,
                                           java.util.Vector styleSheetListDefault,
                                           java.util.Vector styleSheetListUser)
                                    throws java.lang.Exception
This method parses the stylesheet, reading also imported stylesheets

Throws:
java.lang.Exception

checkRules

public void checkRules(java.net.URL cssLocationUrl,
                       org.w3c.dom.css.CSSStyleSheet st,
                       java.util.Vector styleSheetListDefault,
                       java.util.Vector styleSheetListUser,
                       int flag)
                throws java.lang.Exception
Throws:
java.lang.Exception

parseStyleAttrValue

public XSmilesCSSStyleDeclarationImpl parseStyleAttrValue(java.lang.String styleText)
parses a single declaration string. Used with the style attribute



X-Smiles 1.2