java.lang.Object
org.apache.batik.css.parser.ExtendedParserWrapper
- All Implemented Interfaces:
- ExtendedParser, org.w3c.css.sac.Parser
- public class ExtendedParserWrapper
- extends java.lang.Object
- implements ExtendedParser
This class implements the ExtendedParser
interface by wrapping a standard org.w3c.css.sac.Parser.
- Version:
- $Id: ExtendedParserWrapper.java,v 1.7 2005/03/27 08:58:31 cam Exp $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parser
public org.w3c.css.sac.Parser parser
ExtendedParserWrapper
public ExtendedParserWrapper(org.w3c.css.sac.Parser parser)
wrap
public static ExtendedParser wrap(org.w3c.css.sac.Parser p)
- This converts a standard @link org.w3c.css.sac.Parser into
an Extended Parser. If it is already an ExtendedParser
it will simply cast it and return, otherwise it will wrap it
and return the result.
getParserVersion
public java.lang.String getParserVersion()
- SAC: Implements Parser.getParserVersion()>
Parser.getParserVersion() 55 .
- Specified by:
getParserVersion in interface org.w3c.css.sac.Parser
setLocale
public void setLocale(java.util.Locale locale)
throws org.w3c.css.sac.CSSException
- SAC: Implements Parser.setLocale(Locale)>
Parser.setLocale(Locale) 55 .
- Specified by:
setLocale in interface org.w3c.css.sac.Parser
setDocumentHandler
public void setDocumentHandler(org.w3c.css.sac.DocumentHandler handler)
- SAC: Implements Parser.setDocumentHandler(DocumentHandler)>
Parser.setDocumentHandler(DocumentHandler) 55 .
- Specified by:
setDocumentHandler in interface org.w3c.css.sac.Parser
setSelectorFactory
public void setSelectorFactory(org.w3c.css.sac.SelectorFactory selectorFactory)
- SAC: Implements Parser.setSelectorFactory(SelectorFactory)>
Parser.setSelectorFactory(SelectorFactory) 55 .
- Specified by:
setSelectorFactory in interface org.w3c.css.sac.Parser
setConditionFactory
public void setConditionFactory(org.w3c.css.sac.ConditionFactory conditionFactory)
- SAC: Implements Parser.setConditionFactory(ConditionFactory)>
Parser.setConditionFactory(ConditionFactory) 55 .
- Specified by:
setConditionFactory in interface org.w3c.css.sac.Parser
setErrorHandler
public void setErrorHandler(org.w3c.css.sac.ErrorHandler handler)
- SAC: Implements Parser.setErrorHandler(ErrorHandler)>
Parser.setErrorHandler(ErrorHandler) 55 .
- Specified by:
setErrorHandler in interface org.w3c.css.sac.Parser
parseStyleSheet
public void parseStyleSheet(org.w3c.css.sac.InputSource source)
throws org.w3c.css.sac.CSSException,
java.io.IOException
- SAC: Implements Parser.parseStyleSheet(InputSource)>
Parser.parseStyleSheet(InputSource) 55 .
- Specified by:
parseStyleSheet in interface org.w3c.css.sac.Parser
parseStyleSheet
public void parseStyleSheet(java.lang.String uri)
throws org.w3c.css.sac.CSSException,
java.io.IOException
- Parse a CSS document from a URI.
This method is a shortcut for the common case of reading a document
from a URI. It is the exact equivalent of the following:
parse(new InputSource(uri));
The URI must be fully resolved by the application before it is passed
to the parser.
- Specified by:
parseStyleSheet in interface org.w3c.css.sac.Parser
parseStyleDeclaration
public void parseStyleDeclaration(org.w3c.css.sac.InputSource source)
throws org.w3c.css.sac.CSSException,
java.io.IOException
- SAC: Implements Parser.parseStyleDeclaration(InputSource)>
Parser.parseStyleDeclaration(InputSource) 55 .
- Specified by:
parseStyleDeclaration in interface org.w3c.css.sac.Parser
parseStyleDeclaration
public void parseStyleDeclaration(java.lang.String source)
throws org.w3c.css.sac.CSSException,
java.io.IOException
- Parse a CSS style declaration (without '{' and '}').
- Specified by:
parseStyleDeclaration in interface ExtendedParser
parseRule
public void parseRule(org.w3c.css.sac.InputSource source)
throws org.w3c.css.sac.CSSException,
java.io.IOException
- SAC: Implements Parser.parseRule(InputSource)>
Parser.parseRule(InputSource) 55 .
- Specified by:
parseRule in interface org.w3c.css.sac.Parser
parseRule
public void parseRule(java.lang.String source)
throws org.w3c.css.sac.CSSException,
java.io.IOException
- Parse a CSS rule.
- Specified by:
parseRule in interface ExtendedParser
parseSelectors
public org.w3c.css.sac.SelectorList parseSelectors(org.w3c.css.sac.InputSource source)
throws org.w3c.css.sac.CSSException,
java.io.IOException
- SAC: Implements Parser.parseSelectors(InputSource)>
Parser.parseSelectors(InputSource) 55 .
- Specified by:
parseSelectors in interface org.w3c.css.sac.Parser
parseSelectors
public org.w3c.css.sac.SelectorList parseSelectors(java.lang.String source)
throws org.w3c.css.sac.CSSException,
java.io.IOException
- Parse a comma separated list of selectors.
- Specified by:
parseSelectors in interface ExtendedParser
parsePropertyValue
public org.w3c.css.sac.LexicalUnit parsePropertyValue(org.w3c.css.sac.InputSource source)
throws org.w3c.css.sac.CSSException,
java.io.IOException
- SAC: Implements
Parser.parsePropertyValue(InputSource)>
Parser.parsePropertyValue(InputSource) 55 .
- Specified by:
parsePropertyValue in interface org.w3c.css.sac.Parser
parsePropertyValue
public org.w3c.css.sac.LexicalUnit parsePropertyValue(java.lang.String source)
throws org.w3c.css.sac.CSSException,
java.io.IOException
- Parse a CSS property value.
- Specified by:
parsePropertyValue in interface ExtendedParser
parsePriority
public boolean parsePriority(org.w3c.css.sac.InputSource source)
throws org.w3c.css.sac.CSSException,
java.io.IOException
- SAC: Implements
Parser.parsePriority(InputSource)>
Parser.parsePriority(InputSource) 55 .
- Specified by:
parsePriority in interface org.w3c.css.sac.Parser
parseMedia
public org.w3c.css.sac.SACMediaList parseMedia(java.lang.String mediaText)
throws org.w3c.css.sac.CSSException,
java.io.IOException
- Implements
ExtendedParser.parseMedia(String) 55 .
- Specified by:
parseMedia in interface ExtendedParser
parsePriority
public boolean parsePriority(java.lang.String source)
throws org.w3c.css.sac.CSSException,
java.io.IOException
- Parse a CSS priority value (e.g. "!important").
- Specified by:
parsePriority in interface ExtendedParser