com.steadystate.css.parser
Class CSSOMParser

java.lang.Object
  extended by com.steadystate.css.parser.CSSOMParser

public class CSSOMParser
extends Object

Author:
David Schweinsberg

Constructor Summary
CSSOMParser()
          Creates new CSSOMParser
CSSOMParser(org.w3c.css.sac.Parser parser)
          Creates new CSSOMParser.
 
Method Summary
protected  CSSStyleSheetImpl getParentStyleSheet()
           
 org.w3c.css.sac.SACMediaList parseMedia(org.w3c.css.sac.InputSource source)
           
 org.w3c.dom.css.CSSValue parsePropertyValue(org.w3c.css.sac.InputSource source)
           
 org.w3c.dom.css.CSSRule parseRule(org.w3c.css.sac.InputSource source)
           
 org.w3c.css.sac.SelectorList parseSelectors(org.w3c.css.sac.InputSource source)
           
 void parseStyleDeclaration(org.w3c.dom.css.CSSStyleDeclaration sd, org.w3c.css.sac.InputSource source)
           
 org.w3c.dom.css.CSSStyleDeclaration parseStyleDeclaration(org.w3c.css.sac.InputSource source)
          Parses a SAC input source into a CSSOM style declaration.
 org.w3c.dom.css.CSSStyleSheet parseStyleSheet(org.w3c.css.sac.InputSource source, Node ownerNode, String href)
          Parses a SAC input source into a CSSOM style sheet.
 void setErrorHandler(org.w3c.css.sac.ErrorHandler eh)
           
 void setParentStyleSheet(CSSStyleSheetImpl parentStyleSheet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSSOMParser

public CSSOMParser()
Creates new CSSOMParser


CSSOMParser

public CSSOMParser(org.w3c.css.sac.Parser parser)
Creates new CSSOMParser.

Parameters:
parser - the SAC Parser
Method Detail

setErrorHandler

public void setErrorHandler(org.w3c.css.sac.ErrorHandler eh)

parseStyleSheet

public org.w3c.dom.css.CSSStyleSheet parseStyleSheet(org.w3c.css.sac.InputSource source,
                                                     Node ownerNode,
                                                     String href)
                                              throws IOException
Parses a SAC input source into a CSSOM style sheet.

Parameters:
source - the SAC input source
ownerNode - the owner node (see the definition of ownerNode in org.w3c.dom.css.StyleSheet)
href - the href (see the definition of href in org.w3c.dom.css.StyleSheet)
Returns:
the CSSOM style sheet
Throws:
IOException - if the underlying SAC parser throws an IOException

parseStyleDeclaration

public org.w3c.dom.css.CSSStyleDeclaration parseStyleDeclaration(org.w3c.css.sac.InputSource source)
                                                          throws IOException
Parses a SAC input source into a CSSOM style declaration.

Parameters:
source - the SAC input source
Returns:
the CSSOM style declaration
Throws:
IOException - if the underlying SAC parser throws an IOException

parseStyleDeclaration

public void parseStyleDeclaration(org.w3c.dom.css.CSSStyleDeclaration sd,
                                  org.w3c.css.sac.InputSource source)
                           throws IOException
Throws:
IOException

parsePropertyValue

public org.w3c.dom.css.CSSValue parsePropertyValue(org.w3c.css.sac.InputSource source)
                                            throws IOException
Throws:
IOException

parseRule

public org.w3c.dom.css.CSSRule parseRule(org.w3c.css.sac.InputSource source)
                                  throws IOException
Throws:
IOException

parseSelectors

public org.w3c.css.sac.SelectorList parseSelectors(org.w3c.css.sac.InputSource source)
                                            throws IOException
Throws:
IOException

parseMedia

public org.w3c.css.sac.SACMediaList parseMedia(org.w3c.css.sac.InputSource source)
                                        throws IOException
Throws:
IOException

setParentStyleSheet

public void setParentStyleSheet(CSSStyleSheetImpl parentStyleSheet)

getParentStyleSheet

protected CSSStyleSheetImpl getParentStyleSheet()


Copyright © 2013. All rights reserved.