public class HandlerBase extends Object implements DocumentHandlerExt, org.w3c.css.sac.ErrorHandler
| Constructor and Description |
|---|
HandlerBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
charset(String characterEncoding,
org.w3c.css.sac.Locator locator)
Receive notification of a charset at-rule.
|
void |
comment(String text) |
void |
endDocument(org.w3c.css.sac.InputSource source) |
void |
endFontFace() |
void |
endMedia(org.w3c.css.sac.SACMediaList media) |
void |
endPage(String name,
String pseudoPage) |
void |
endSelector(org.w3c.css.sac.SelectorList selectors) |
void |
error(org.w3c.css.sac.CSSParseException exception) |
void |
fatalError(org.w3c.css.sac.CSSParseException exception) |
void |
ignorableAtRule(String atRule) |
void |
ignorableAtRule(String atRule,
org.w3c.css.sac.Locator locator)
Receive notification of an unknown rule t-rule not supported by this
parser.
|
void |
importStyle(String uri,
org.w3c.css.sac.SACMediaList media,
String defaultNamespaceURI) |
void |
importStyle(String uri,
org.w3c.css.sac.SACMediaList media,
String defaultNamespaceURI,
org.w3c.css.sac.Locator locator)
Receive notification of a import statement in the style sheet.
|
void |
namespaceDeclaration(String prefix,
String uri) |
void |
property(String name,
org.w3c.css.sac.LexicalUnit value,
boolean important) |
void |
property(String name,
org.w3c.css.sac.LexicalUnit value,
boolean important,
org.w3c.css.sac.Locator locator)
Receive notification of a declaration.
|
void |
startDocument(org.w3c.css.sac.InputSource source) |
void |
startFontFace() |
void |
startFontFace(org.w3c.css.sac.Locator locator)
Receive notification of the beginning of a font face statement.
|
void |
startMedia(org.w3c.css.sac.SACMediaList media) |
void |
startMedia(org.w3c.css.sac.SACMediaList media,
org.w3c.css.sac.Locator locator)
Receive notification of the beginning of a media statement.
|
void |
startPage(String name,
String pseudoPage) |
void |
startPage(String name,
String pseudoPage,
org.w3c.css.sac.Locator locator)
Receive notification of the beginning of a page statement.
|
void |
startSelector(org.w3c.css.sac.SelectorList selectors) |
void |
startSelector(org.w3c.css.sac.SelectorList selectors,
org.w3c.css.sac.Locator locator)
Receive notification of the beginning of a rule statement.
|
void |
warning(org.w3c.css.sac.CSSParseException exception) |
public void startDocument(org.w3c.css.sac.InputSource source)
throws org.w3c.css.sac.CSSException
startDocument in interface org.w3c.css.sac.DocumentHandlerorg.w3c.css.sac.CSSExceptionpublic void endDocument(org.w3c.css.sac.InputSource source)
throws org.w3c.css.sac.CSSException
endDocument in interface org.w3c.css.sac.DocumentHandlerorg.w3c.css.sac.CSSExceptionpublic void comment(String text) throws org.w3c.css.sac.CSSException
comment in interface org.w3c.css.sac.DocumentHandlerorg.w3c.css.sac.CSSExceptionpublic void ignorableAtRule(String atRule) throws org.w3c.css.sac.CSSException
ignorableAtRule in interface org.w3c.css.sac.DocumentHandlerorg.w3c.css.sac.CSSExceptionpublic void ignorableAtRule(String atRule, org.w3c.css.sac.Locator locator) throws org.w3c.css.sac.CSSException
DocumentHandlerExtignorableAtRule in interface DocumentHandlerExtatRule - The complete ignored at-rule.locator - the SAC locatororg.w3c.css.sac.CSSException - Any CSS exception, possibly wrapping another
exception.public void namespaceDeclaration(String prefix, String uri) throws org.w3c.css.sac.CSSException
namespaceDeclaration in interface org.w3c.css.sac.DocumentHandlerorg.w3c.css.sac.CSSExceptionpublic void importStyle(String uri, org.w3c.css.sac.SACMediaList media, String defaultNamespaceURI) throws org.w3c.css.sac.CSSException
importStyle in interface org.w3c.css.sac.DocumentHandlerorg.w3c.css.sac.CSSExceptionpublic void importStyle(String uri, org.w3c.css.sac.SACMediaList media, String defaultNamespaceURI, org.w3c.css.sac.Locator locator) throws org.w3c.css.sac.CSSException
DocumentHandlerExtimportStyle in interface DocumentHandlerExturi - The URI of the imported style sheet.media - The intended destination media for style information.defaultNamespaceURI - The default namespace URI for the imported
style sheet.locator - the SAC locatororg.w3c.css.sac.CSSException - Any CSS exception, possibly wrapping another
exception.public void startMedia(org.w3c.css.sac.SACMediaList media)
throws org.w3c.css.sac.CSSException
startMedia in interface org.w3c.css.sac.DocumentHandlerorg.w3c.css.sac.CSSExceptionpublic void startMedia(org.w3c.css.sac.SACMediaList media,
org.w3c.css.sac.Locator locator)
throws org.w3c.css.sac.CSSException
DocumentHandlerExtstartMedia in interface DocumentHandlerExtmedia - The intended destination media for style information.locator - the SAC locatororg.w3c.css.sac.CSSException - Any CSS exception, possibly wrapping another
exception.public void endMedia(org.w3c.css.sac.SACMediaList media)
throws org.w3c.css.sac.CSSException
endMedia in interface org.w3c.css.sac.DocumentHandlerorg.w3c.css.sac.CSSExceptionpublic void startPage(String name, String pseudoPage) throws org.w3c.css.sac.CSSException
startPage in interface org.w3c.css.sac.DocumentHandlerorg.w3c.css.sac.CSSExceptionpublic void startPage(String name, String pseudoPage, org.w3c.css.sac.Locator locator) throws org.w3c.css.sac.CSSException
DocumentHandlerExtstartPage in interface DocumentHandlerExtname - the name of the page (if any, null otherwise)pseudoPage - the pseudo page (if any, null otherwise)locator - the SAC locatororg.w3c.css.sac.CSSException - Any CSS exception, possibly wrapping another
exception.public void endPage(String name, String pseudoPage) throws org.w3c.css.sac.CSSException
endPage in interface org.w3c.css.sac.DocumentHandlerorg.w3c.css.sac.CSSExceptionpublic void startFontFace()
throws org.w3c.css.sac.CSSException
startFontFace in interface org.w3c.css.sac.DocumentHandlerorg.w3c.css.sac.CSSExceptionpublic void startFontFace(org.w3c.css.sac.Locator locator)
throws org.w3c.css.sac.CSSException
DocumentHandlerExtstartFontFace in interface DocumentHandlerExtlocator - the SAC locatororg.w3c.css.sac.CSSException - Any CSS exception, possibly wrapping another
exception.public void endFontFace()
throws org.w3c.css.sac.CSSException
endFontFace in interface org.w3c.css.sac.DocumentHandlerorg.w3c.css.sac.CSSExceptionpublic void startSelector(org.w3c.css.sac.SelectorList selectors)
throws org.w3c.css.sac.CSSException
startSelector in interface org.w3c.css.sac.DocumentHandlerorg.w3c.css.sac.CSSExceptionpublic void startSelector(org.w3c.css.sac.SelectorList selectors,
org.w3c.css.sac.Locator locator)
throws org.w3c.css.sac.CSSException
DocumentHandlerExtstartSelector in interface DocumentHandlerExtselectors - All intended selectors for all declarations.locator - the SAC locatororg.w3c.css.sac.CSSException - Any CSS exception, possibly wrapping another
exception.public void endSelector(org.w3c.css.sac.SelectorList selectors)
throws org.w3c.css.sac.CSSException
endSelector in interface org.w3c.css.sac.DocumentHandlerorg.w3c.css.sac.CSSExceptionpublic void property(String name, org.w3c.css.sac.LexicalUnit value, boolean important) throws org.w3c.css.sac.CSSException
property in interface org.w3c.css.sac.DocumentHandlerorg.w3c.css.sac.CSSExceptionpublic void property(String name, org.w3c.css.sac.LexicalUnit value, boolean important, org.w3c.css.sac.Locator locator)
DocumentHandlerExtproperty in interface DocumentHandlerExtname - the name of the property.value - the value of the property. All whitespace are stripped.important - is this property important ?locator - the SAC locatorpublic void charset(String characterEncoding, org.w3c.css.sac.Locator locator) throws org.w3c.css.sac.CSSException
DocumentHandlerExtcharset in interface DocumentHandlerExtcharacterEncoding - the character encodinglocator - the SAC locatororg.w3c.css.sac.CSSException - Any CSS exception, possibly wrapping another
exception.public void warning(org.w3c.css.sac.CSSParseException exception)
throws org.w3c.css.sac.CSSException
warning in interface org.w3c.css.sac.ErrorHandlerorg.w3c.css.sac.CSSExceptionpublic void error(org.w3c.css.sac.CSSParseException exception)
throws org.w3c.css.sac.CSSException
error in interface org.w3c.css.sac.ErrorHandlerorg.w3c.css.sac.CSSExceptionpublic void fatalError(org.w3c.css.sac.CSSParseException exception)
throws org.w3c.css.sac.CSSException
fatalError in interface org.w3c.css.sac.ErrorHandlerorg.w3c.css.sac.CSSExceptionCopyright © 2021. All rights reserved.