jp.cssj.sakae.sac.parser
クラス ExtendedParserWrapper

java.lang.Object
  拡張jp.cssj.sakae.sac.parser.ExtendedParserWrapper
すべての実装インタフェース:
ExtendedParser, Parser

public class ExtendedParserWrapper
extends Object
implements ExtendedParser

This class implements the ExtendedParser interface by wrapping a standard Parser.

バージョン:
$Id: ExtendedParserWrapper.java,v 1.1 2005/05/17 04:18:23 harumanx Exp $
作成者:
Thomas DeWeese

フィールドの概要
 Parser parser
           
 
コンストラクタの概要
ExtendedParserWrapper(Parser parser)
           
 
メソッドの概要
 String getParserVersion()
          SAC : Implements Parser.getParserVersion() .
 SACMediaList parseMedia(String mediaText)
          Implements ExtendedParser.parseMedia(String).
 boolean parsePriority(InputSource source)
          SAC : Implements Parser.parsePriority(InputSource).
 boolean parsePriority(String source)
          Parse a CSS priority value (e.g. "!
 LexicalUnit parsePropertyValue(InputSource source)
          SAC : Implements Parser.parsePropertyValue(InputSource).
 LexicalUnit parsePropertyValue(String source)
          Parse a CSS property value.
 void parseRule(InputSource source)
          SAC : Implements Parser.parseRule(InputSource).
 void parseRule(String source)
          Parse a CSS rule.
 SelectorList parseSelectors(InputSource source)
          SAC : Implements Parser.parseSelectors(InputSource).
 SelectorList parseSelectors(String source)
          Parse a comma separated list of selectors.
 void parseStyleDeclaration(InputSource source)
          SAC : Implements Parser.parseStyleDeclaration(InputSource).
 void parseStyleDeclaration(String source)
          Parse a CSS style declaration (without '{' and '}').
 void parseStyleSheet(InputSource source)
          SAC : Implements Parser.parseStyleSheet(InputSource).
 void parseStyleSheet(String uri)
          Parse a CSS document from a URI.
 void setConditionFactory(ConditionFactory conditionFactory)
          SAC : Implements Parser.setConditionFactory(ConditionFactory).
 void setDocumentHandler(DocumentHandler handler)
          SAC : Implements Parser.setDocumentHandler(DocumentHandler).
 void setErrorHandler(ErrorHandler handler)
          SAC : Implements Parser.setErrorHandler(ErrorHandler).
 void setLocale(Locale locale)
          SAC : Implements Parser.setLocale(Locale).
 void setSelectorFactory(SelectorFactory selectorFactory)
          SAC : Implements Parser.setSelectorFactory(SelectorFactory).
static ExtendedParser wrap(Parser p)
          This converts a standard
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

parser

public Parser parser
コンストラクタの詳細

ExtendedParserWrapper

public ExtendedParserWrapper(Parser parser)
メソッドの詳細

wrap

public static ExtendedParser wrap(Parser p)
This converts a standard

パラメータ:
p - Parser to wrap.
戻り値:
p as an ExtendedParser.

getParserVersion

public String getParserVersion()
SAC : Implements Parser.getParserVersion() .

定義:
インタフェース Parser 内の getParserVersion

setLocale

public void setLocale(Locale locale)
               throws CSSException
SAC : Implements Parser.setLocale(Locale).

定義:
インタフェース Parser 内の setLocale
例外:
CSSException

setDocumentHandler

public void setDocumentHandler(DocumentHandler handler)
SAC : Implements Parser.setDocumentHandler(DocumentHandler).

定義:
インタフェース Parser 内の setDocumentHandler

setSelectorFactory

public void setSelectorFactory(SelectorFactory selectorFactory)
SAC : Implements Parser.setSelectorFactory(SelectorFactory).

定義:
インタフェース Parser 内の setSelectorFactory

setConditionFactory

public void setConditionFactory(ConditionFactory conditionFactory)
SAC : Implements Parser.setConditionFactory(ConditionFactory).

定義:
インタフェース Parser 内の setConditionFactory

setErrorHandler

public void setErrorHandler(ErrorHandler handler)
SAC : Implements Parser.setErrorHandler(ErrorHandler).

定義:
インタフェース Parser 内の setErrorHandler

parseStyleSheet

public void parseStyleSheet(InputSource source)
                     throws CSSException,
                            IOException
SAC : Implements Parser.parseStyleSheet(InputSource).

定義:
インタフェース Parser 内の parseStyleSheet
例外:
CSSException
IOException

parseStyleSheet

public void parseStyleSheet(String uri)
                     throws CSSException,
                            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.

定義:
インタフェース Parser 内の parseStyleSheet
パラメータ:
uri - The URI.
例外:
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.
関連項目:
parseStyleSheet(InputSource)

parseStyleDeclaration

public void parseStyleDeclaration(InputSource source)
                           throws CSSException,
                                  IOException
SAC : Implements Parser.parseStyleDeclaration(InputSource).

定義:
インタフェース Parser 内の parseStyleDeclaration
例外:
CSSException
IOException

parseStyleDeclaration

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

定義:
インタフェース ExtendedParser 内の parseStyleDeclaration
例外:
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

public void parseRule(InputSource source)
               throws CSSException,
                      IOException
SAC : Implements Parser.parseRule(InputSource).

定義:
インタフェース Parser 内の parseRule
例外:
CSSException
IOException

parseRule

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

定義:
インタフェース ExtendedParser 内の parseRule
例外:
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

public SelectorList parseSelectors(InputSource source)
                            throws CSSException,
                                   IOException
SAC : Implements Parser.parseSelectors(InputSource).

定義:
インタフェース Parser 内の parseSelectors
例外:
CSSException
IOException

parseSelectors

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

定義:
インタフェース ExtendedParser 内の parseSelectors
例外:
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

public LexicalUnit parsePropertyValue(InputSource source)
                               throws CSSException,
                                      IOException
SAC : Implements Parser.parsePropertyValue(InputSource).

定義:
インタフェース Parser 内の parsePropertyValue
例外:
CSSException
IOException

parsePropertyValue

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

定義:
インタフェース ExtendedParser 内の parsePropertyValue
例外:
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

public boolean parsePriority(InputSource source)
                      throws CSSException,
                             IOException
SAC : Implements Parser.parsePriority(InputSource).

定義:
インタフェース Parser 内の parsePriority
例外:
CSSException
IOException

parseMedia

public SACMediaList parseMedia(String mediaText)
                        throws CSSException,
                               IOException
Implements ExtendedParser.parseMedia(String).

定義:
インタフェース ExtendedParser 内の parseMedia
例外:
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

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

定義:
インタフェース ExtendedParser 内の parsePriority
例外:
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.


(c)2009 GNN & Co.,Ltd.