public class CSSOMParser extends Object
Constructor and Description |
---|
CSSOMParser()
Creates new CSSOMParser
|
CSSOMParser(org.w3c.css.sac.Parser parser)
Creates new CSSOMParser.
|
Modifier and Type | Method and Description |
---|---|
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) |
public CSSOMParser()
public CSSOMParser(org.w3c.css.sac.Parser parser)
parser
- the SAC Parserpublic void setErrorHandler(org.w3c.css.sac.ErrorHandler eh)
public org.w3c.dom.css.CSSStyleSheet parseStyleSheet(org.w3c.css.sac.InputSource source, Node ownerNode, String href) throws IOException
source
- the SAC input sourceownerNode
- 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)IOException
- if the underlying SAC parser throws an IOExceptionpublic org.w3c.dom.css.CSSStyleDeclaration parseStyleDeclaration(org.w3c.css.sac.InputSource source) throws IOException
source
- the SAC input sourceIOException
- if the underlying SAC parser throws an IOExceptionpublic void parseStyleDeclaration(org.w3c.dom.css.CSSStyleDeclaration sd, org.w3c.css.sac.InputSource source) throws IOException
IOException
public org.w3c.dom.css.CSSValue parsePropertyValue(org.w3c.css.sac.InputSource source) throws IOException
IOException
public org.w3c.dom.css.CSSRule parseRule(org.w3c.css.sac.InputSource source) throws IOException
IOException
public org.w3c.css.sac.SelectorList parseSelectors(org.w3c.css.sac.InputSource source) throws IOException
IOException
public org.w3c.css.sac.SACMediaList parseMedia(org.w3c.css.sac.InputSource source) throws IOException
IOException
public void setParentStyleSheet(CSSStyleSheetImpl parentStyleSheet)
protected CSSStyleSheetImpl getParentStyleSheet()
Copyright © 1999–2017. All rights reserved.