org.apache.batik.css.parser
Interface ExtendedParser

All Known Implementing Classes:
ExtendedParserWrapper, Parser

public interface ExtendedParser

This class implements the org.w3c.css.sac.Parser interface plus a set of custom methods.


Method Summary
 SACMediaList parseMedia(String mediaText)
          Parse a CSS media value.
 boolean parsePriority(String source)
          Parse a CSS priority value (e.g. "!important").
 LexicalUnit parsePropertyValue(String source)
          Parse a CSS property value.
 void parseRule(String source)
          Parse a CSS rule.
 SelectorList parseSelectors(String source)
          Parse a comma separated list of selectors.
 void parseStyleDeclaration(String source)
          Parse a CSS style declaration (without '{' and '}').
 

Method Detail

parseStyleDeclaration

void parseStyleDeclaration(String source)
                           throws CSSException,
                                  IOException
Parse a CSS style declaration (without '{' and '}').

Parameters:
source - The declaration.
Throws:
CSSException - Any CSS exception, possibly wrapping another exception.
IOException - An IO exception from the parser, possibly from a byte stream or character stream supplied by the application.

parseRule

void parseRule(String source)
               throws CSSException,
                      IOException
Parse a CSS rule.

Throws:
CSSException - Any CSS exception, possibly wrapping another exception.
IOException - An IO exception from the parser, possibly from a byte stream or character stream supplied by the application.

parseSelectors

SelectorList parseSelectors(String source)
                            throws CSSException,
                                   IOException
Parse a comma separated list of selectors.

Throws:
CSSException - Any CSS exception, possibly wrapping another exception.
IOException - An IO exception from the parser, possibly from a byte stream or character stream supplied by the application.

parsePropertyValue

LexicalUnit parsePropertyValue(String source)
                               throws CSSException,
                                      IOException
Parse a CSS property value.

Throws:
CSSException - Any CSS exception, possibly wrapping another exception.
IOException - An IO exception from the parser, possibly from a byte stream or character stream supplied by the application.

parseMedia

SACMediaList parseMedia(String mediaText)
                        throws CSSException,
                               IOException
Parse a CSS media value.

Throws:
CSSException - Any CSS exception, possibly wrapping another exception.
IOException - An IO exception from the parser, possibly from a byte stream or character stream supplied by the application.

parsePriority

boolean parsePriority(String source)
                      throws CSSException,
                             IOException
Parse a CSS priority value (e.g. "!important").

Throws:
CSSException - Any CSS exception, possibly wrapping another exception.
IOException - An IO exception from the parser, possibly from a byte stream or character stream supplied by the application.


Copyright ? 2008 Apache Software Foundation. All Rights Reserved.