org.apache.batik.css.parser

Interface ExtendedParser

public interface ExtendedParser extends Parser

This class implements the {@link org.w3c.css.sac.Parser} interface plus a set of custom methods.
Method Summary
SACMediaListparseMedia(String mediaText)
Parse a CSS media value.
booleanparsePriority(String source)
Parse a CSS priority value (e.g. "!important").
LexicalUnitparsePropertyValue(String source)
Parse a CSS property value.
voidparseRule(String source)
Parse a CSS rule.
SelectorListparseSelectors(String source)
Parse a comma separated list of selectors.
voidparseStyleDeclaration(String source)
Parse a CSS style declaration (without '{' and '}').

Method Detail

parseMedia

public SACMediaList parseMedia(String mediaText)
Parse a CSS media value.

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

parsePriority

public boolean parsePriority(String source)
Parse a CSS priority value (e.g. "!important").

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

parsePropertyValue

public LexicalUnit parsePropertyValue(String source)
Parse a CSS property value.

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

parseRule

public void parseRule(String source)
Parse a CSS rule.

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

parseSelectors

public SelectorList parseSelectors(String source)
Parse a comma separated list of selectors.

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

parseStyleDeclaration

public void parseStyleDeclaration(String source)
Parse a CSS style declaration (without '{' and '}').

Parameters: source The declaration.

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

Copyright B) 2007 Apache Software Foundation. All Rights Reserved.