Package com.steadystate.css.parser
Class CSSOMParser
- java.lang.Object
-
- com.steadystate.css.parser.CSSOMParser
-
public class CSSOMParser extends java.lang.Object
- Version:
- $Id: CSSOMParser.java,v 1.2 2008/03/26 02:08:55 sdanig Exp $
- Author:
- David Schweinsberg
-
-
Constructor Summary
Constructors Constructor Description CSSOMParser()
Creates new CSSOMParserCSSOMParser(org.w3c.css.sac.Parser parser)
Creates new CSSOMParser
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CSSStyleSheetImpl
getParentStyleSheet()
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)
org.w3c.dom.css.CSSStyleDeclaration
parseStyleDeclaration(org.w3c.css.sac.InputSource source)
Parses a SAC input source into a CSSOM style declaration.void
parseStyleDeclaration(org.w3c.dom.css.CSSStyleDeclaration sd, org.w3c.css.sac.InputSource source)
org.w3c.dom.css.CSSStyleSheet
parseStyleSheet(org.w3c.css.sac.InputSource source, org.w3c.dom.Node ownerNode, java.lang.String href)
Parses a SAC input source into a CSSOM style sheet.void
setErrorHandler(org.w3c.css.sac.ErrorHandler eh)
void
setParentStyleSheet(CSSStyleSheetImpl parentStyleSheet)
static void
setProperty(java.lang.String key, java.lang.String val)
-
-
-
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, org.w3c.dom.Node ownerNode, java.lang.String href) throws java.io.IOException
Parses a SAC input source into a CSSOM style sheet.- Parameters:
source
- the SAC input sourceownerNode
- the owner node (see the definition ofownerNode
in org.w3c.dom.css.StyleSheet)href
- the href (see the definition ofhref
in org.w3c.dom.css.StyleSheet)- Returns:
- the CSSOM style sheet
- Throws:
java.io.IOException
- if the underlying SAC parser throws an IOException
-
parseStyleDeclaration
public org.w3c.dom.css.CSSStyleDeclaration parseStyleDeclaration(org.w3c.css.sac.InputSource source) throws java.io.IOException
Parses a SAC input source into a CSSOM style declaration.- Parameters:
source
- the SAC input source- Returns:
- the CSSOM style declaration
- Throws:
java.io.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 java.io.IOException
- Throws:
java.io.IOException
-
parsePropertyValue
public org.w3c.dom.css.CSSValue parsePropertyValue(org.w3c.css.sac.InputSource source) throws java.io.IOException
- Throws:
java.io.IOException
-
parseRule
public org.w3c.dom.css.CSSRule parseRule(org.w3c.css.sac.InputSource source) throws java.io.IOException
- Throws:
java.io.IOException
-
parseSelectors
public org.w3c.css.sac.SelectorList parseSelectors(org.w3c.css.sac.InputSource source) throws java.io.IOException
- Throws:
java.io.IOException
-
setParentStyleSheet
public void setParentStyleSheet(CSSStyleSheetImpl parentStyleSheet)
-
getParentStyleSheet
protected CSSStyleSheetImpl getParentStyleSheet()
-
setProperty
public static void setProperty(java.lang.String key, java.lang.String val)
-
-