Package org.apache.batik.css.engine
Class CSSEngine.StyleSheetDocumentHandler
java.lang.Object
org.apache.batik.css.engine.CSSEngine.DocumentAdapter
org.apache.batik.css.engine.CSSEngine.StyleSheetDocumentHandler
- All Implemented Interfaces:
ShorthandManager.PropertyHandler
,org.w3c.css.sac.DocumentHandler
- Enclosing class:
CSSEngine
protected class CSSEngine.StyleSheetDocumentHandler
extends CSSEngine.DocumentAdapter
implements ShorthandManager.PropertyHandler
To parse a style sheet.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
endDocument
(org.w3c.css.sac.InputSource source) SAC: ImplementsDocumentHandler.endDocument(InputSource)
.void
SAC: ImplementsDocumentHandler.endFontFace()
.void
endMedia
(org.w3c.css.sac.SACMediaList media) SAC: ImplementsDocumentHandler.endMedia(SACMediaList)
.void
SAC: ImplementsDocumentHandler.endPage(String,String)
.void
endSelector
(org.w3c.css.sac.SelectorList selectors) SAC: ImplementsDocumentHandler.endSelector(SelectorList)
.void
ignorableAtRule
(String atRule) SAC: ImplementsDocumentHandler.ignorableAtRule(String)
.void
importStyle
(String uri, org.w3c.css.sac.SACMediaList media, String defaultNamespaceURI) SAC: ImplementsDocumentHandler.importStyle(String,SACMediaList,String)
.void
SAC: ImplementsDocumentHandler.property(String,LexicalUnit,boolean)
.void
startDocument
(org.w3c.css.sac.InputSource source) SAC: ImplementsDocumentHandler.startDocument(InputSource)
.void
SAC: ImplementsDocumentHandler.startFontFace()
.void
startMedia
(org.w3c.css.sac.SACMediaList media) SAC: ImplementsDocumentHandler.startMedia(SACMediaList)
.void
SAC: ImplementsDocumentHandler.startPage(String,String)
.void
startSelector
(org.w3c.css.sac.SelectorList selectors) SAC: ImplementsDocumentHandler.startSelector(SelectorList)
.Methods inherited from class org.apache.batik.css.engine.CSSEngine.DocumentAdapter
comment, namespaceDeclaration
-
Field Details
-
styleSheet
-
styleRule
-
styleDeclaration
-
-
Constructor Details
-
StyleSheetDocumentHandler
protected StyleSheetDocumentHandler()
-
-
Method Details
-
startDocument
public void startDocument(org.w3c.css.sac.InputSource source) throws org.w3c.css.sac.CSSException SAC: ImplementsDocumentHandler.startDocument(InputSource)
.- Specified by:
startDocument
in interfaceorg.w3c.css.sac.DocumentHandler
- Overrides:
startDocument
in classCSSEngine.DocumentAdapter
- Throws:
org.w3c.css.sac.CSSException
-
endDocument
public void endDocument(org.w3c.css.sac.InputSource source) throws org.w3c.css.sac.CSSException SAC: ImplementsDocumentHandler.endDocument(InputSource)
.- Specified by:
endDocument
in interfaceorg.w3c.css.sac.DocumentHandler
- Overrides:
endDocument
in classCSSEngine.DocumentAdapter
- Throws:
org.w3c.css.sac.CSSException
-
ignorableAtRule
SAC: ImplementsDocumentHandler.ignorableAtRule(String)
.- Specified by:
ignorableAtRule
in interfaceorg.w3c.css.sac.DocumentHandler
- Overrides:
ignorableAtRule
in classCSSEngine.DocumentAdapter
- Throws:
org.w3c.css.sac.CSSException
-
importStyle
public void importStyle(String uri, org.w3c.css.sac.SACMediaList media, String defaultNamespaceURI) throws org.w3c.css.sac.CSSException SAC: ImplementsDocumentHandler.importStyle(String,SACMediaList,String)
.- Specified by:
importStyle
in interfaceorg.w3c.css.sac.DocumentHandler
- Overrides:
importStyle
in classCSSEngine.DocumentAdapter
- Throws:
org.w3c.css.sac.CSSException
-
startMedia
public void startMedia(org.w3c.css.sac.SACMediaList media) throws org.w3c.css.sac.CSSException SAC: ImplementsDocumentHandler.startMedia(SACMediaList)
.- Specified by:
startMedia
in interfaceorg.w3c.css.sac.DocumentHandler
- Overrides:
startMedia
in classCSSEngine.DocumentAdapter
- Throws:
org.w3c.css.sac.CSSException
-
endMedia
public void endMedia(org.w3c.css.sac.SACMediaList media) throws org.w3c.css.sac.CSSException SAC: ImplementsDocumentHandler.endMedia(SACMediaList)
.- Specified by:
endMedia
in interfaceorg.w3c.css.sac.DocumentHandler
- Overrides:
endMedia
in classCSSEngine.DocumentAdapter
- Throws:
org.w3c.css.sac.CSSException
-
startPage
SAC: ImplementsDocumentHandler.startPage(String,String)
.- Specified by:
startPage
in interfaceorg.w3c.css.sac.DocumentHandler
- Overrides:
startPage
in classCSSEngine.DocumentAdapter
- Throws:
org.w3c.css.sac.CSSException
-
endPage
SAC: ImplementsDocumentHandler.endPage(String,String)
.- Specified by:
endPage
in interfaceorg.w3c.css.sac.DocumentHandler
- Overrides:
endPage
in classCSSEngine.DocumentAdapter
- Throws:
org.w3c.css.sac.CSSException
-
startFontFace
public void startFontFace() throws org.w3c.css.sac.CSSExceptionSAC: ImplementsDocumentHandler.startFontFace()
.- Specified by:
startFontFace
in interfaceorg.w3c.css.sac.DocumentHandler
- Overrides:
startFontFace
in classCSSEngine.DocumentAdapter
- Throws:
org.w3c.css.sac.CSSException
-
endFontFace
public void endFontFace() throws org.w3c.css.sac.CSSExceptionSAC: ImplementsDocumentHandler.endFontFace()
.- Specified by:
endFontFace
in interfaceorg.w3c.css.sac.DocumentHandler
- Overrides:
endFontFace
in classCSSEngine.DocumentAdapter
- Throws:
org.w3c.css.sac.CSSException
-
startSelector
public void startSelector(org.w3c.css.sac.SelectorList selectors) throws org.w3c.css.sac.CSSException SAC: ImplementsDocumentHandler.startSelector(SelectorList)
.- Specified by:
startSelector
in interfaceorg.w3c.css.sac.DocumentHandler
- Overrides:
startSelector
in classCSSEngine.DocumentAdapter
- Throws:
org.w3c.css.sac.CSSException
-
endSelector
public void endSelector(org.w3c.css.sac.SelectorList selectors) throws org.w3c.css.sac.CSSException SAC: ImplementsDocumentHandler.endSelector(SelectorList)
.- Specified by:
endSelector
in interfaceorg.w3c.css.sac.DocumentHandler
- Overrides:
endSelector
in classCSSEngine.DocumentAdapter
- Throws:
org.w3c.css.sac.CSSException
-
property
public void property(String name, org.w3c.css.sac.LexicalUnit value, boolean important) throws org.w3c.css.sac.CSSException SAC: ImplementsDocumentHandler.property(String,LexicalUnit,boolean)
.- Specified by:
property
in interfaceorg.w3c.css.sac.DocumentHandler
- Specified by:
property
in interfaceShorthandManager.PropertyHandler
- Overrides:
property
in classCSSEngine.DocumentAdapter
- Throws:
org.w3c.css.sac.CSSException
-