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:
- DocumentHandler, ShorthandManager.PropertyHandler
- Enclosing class:
- CSSEngine
- protected class CSSEngine.StyleSheetDocumentHandler
- extends CSSEngine.DocumentAdapter
- implements ShorthandManager.PropertyHandler
To parse a style sheet.
Method Summary |
void |
endDocument(InputSource source)
SAC: Implements DocumentHandler.endDocument(InputSource) . |
void |
endFontFace()
SAC: Implements DocumentHandler.endFontFace() . |
void |
endMedia(SACMediaList media)
SAC: Implements DocumentHandler.endMedia(SACMediaList) . |
void |
endPage(java.lang.String name,
java.lang.String pseudo_page)
SAC: Implements DocumentHandler.endPage(String,String) . |
void |
endSelector(SelectorList selectors)
SAC: Implements DocumentHandler.endSelector(SelectorList) . |
void |
ignorableAtRule(java.lang.String atRule)
SAC: Implements DocumentHandler.ignorableAtRule(String) . |
void |
importStyle(java.lang.String uri,
SACMediaList media,
java.lang.String defaultNamespaceURI)
SAC: Implements DocumentHandler.importStyle(String,SACMediaList,String) . |
void |
property(java.lang.String name,
LexicalUnit value,
boolean important)
SAC: Implements DocumentHandler.property(String,LexicalUnit,boolean) . |
void |
startDocument(InputSource source)
SAC: Implements DocumentHandler.startDocument(InputSource) . |
void |
startFontFace()
SAC: Implements DocumentHandler.startFontFace() . |
void |
startMedia(SACMediaList media)
SAC: Implements DocumentHandler.startMedia(SACMediaList) . |
void |
startPage(java.lang.String name,
java.lang.String pseudo_page)
SAC: Implements DocumentHandler.startPage(String,String) . |
void |
startSelector(SelectorList selectors)
SAC: Implements DocumentHandler.startSelector(SelectorList) . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
styleSheet
public StyleSheet styleSheet
styleRule
protected StyleRule styleRule
styleDeclaration
protected StyleDeclaration styleDeclaration
CSSEngine.StyleSheetDocumentHandler
protected CSSEngine.StyleSheetDocumentHandler()
startDocument
public void startDocument(InputSource source)
throws CSSException
- SAC: Implements
DocumentHandler.startDocument(InputSource)
.
- Overrides:
startDocument
in class CSSEngine.DocumentAdapter
- Following copied from interface:
org.w3c.css.sac.DocumentHandler
- Parameters:
uri
- The URI of the style sheet. @@TODO can be NULL ! (inline style sheet)- Throws:
CSSException
- Any CSS exception, possibly wrapping another
exception.
endDocument
public void endDocument(InputSource source)
throws CSSException
- SAC: Implements
DocumentHandler.endDocument(InputSource)
.
- Overrides:
endDocument
in class CSSEngine.DocumentAdapter
- Following copied from interface:
org.w3c.css.sac.DocumentHandler
- Parameters:
uri
- The URI of the style sheet.- Throws:
CSSException
- Any CSS exception, possibly wrapping another
exception.
ignorableAtRule
public void ignorableAtRule(java.lang.String atRule)
throws CSSException
- SAC: Implements
DocumentHandler.ignorableAtRule(String)
.
- Overrides:
ignorableAtRule
in class CSSEngine.DocumentAdapter
- Following copied from interface:
org.w3c.css.sac.DocumentHandler
- Parameters:
at-rule
- The complete ignored at-rule.- Throws:
CSSException
- Any CSS exception, possibly wrapping another
exception.
importStyle
public void importStyle(java.lang.String uri,
SACMediaList media,
java.lang.String defaultNamespaceURI)
throws CSSException
- SAC: Implements
DocumentHandler.importStyle(String,SACMediaList,String)
.
- Overrides:
importStyle
in class CSSEngine.DocumentAdapter
- Following copied from interface:
org.w3c.css.sac.DocumentHandler
- Parameters:
uri
- The URI of the imported style sheet.media
- The intended destination media for style information.defaultNamepaceURI
- The default namespace URI for the imported
style sheet.- Throws:
CSSException
- Any CSS exception, possibly wrapping another
exception.
startMedia
public void startMedia(SACMediaList media)
throws CSSException
- SAC: Implements
DocumentHandler.startMedia(SACMediaList)
.
- Overrides:
startMedia
in class CSSEngine.DocumentAdapter
- Following copied from interface:
org.w3c.css.sac.DocumentHandler
- Parameters:
media
- The intended destination media for style information.- Throws:
CSSException
- Any CSS exception, possibly wrapping another
exception.
endMedia
public void endMedia(SACMediaList media)
throws CSSException
- SAC: Implements
DocumentHandler.endMedia(SACMediaList)
.
- Overrides:
endMedia
in class CSSEngine.DocumentAdapter
- Following copied from interface:
org.w3c.css.sac.DocumentHandler
- Parameters:
media
- The intended destination media for style information.- Throws:
CSSException
- Any CSS exception, possibly wrapping another
exception.
startPage
public void startPage(java.lang.String name,
java.lang.String pseudo_page)
throws CSSException
- SAC: Implements
DocumentHandler.startPage(String,String)
.
- Overrides:
startPage
in class CSSEngine.DocumentAdapter
- Following copied from interface:
org.w3c.css.sac.DocumentHandler
- Parameters:
name
- the name of the page (if any, null otherwise)pseudo_page
- the pseudo page (if any, null otherwise)- Throws:
CSSException
- Any CSS exception, possibly wrapping another
exception.
endPage
public void endPage(java.lang.String name,
java.lang.String pseudo_page)
throws CSSException
- SAC: Implements
DocumentHandler.endPage(String,String)
.
- Overrides:
endPage
in class CSSEngine.DocumentAdapter
- Following copied from interface:
org.w3c.css.sac.DocumentHandler
- Parameters:
media
- The intended destination medium for style information.pseudo_page
- the pseudo page (if any, null otherwise)- Throws:
CSSException
- Any CSS exception, possibly wrapping another
exception.
startFontFace
public void startFontFace()
throws CSSException
- SAC: Implements
DocumentHandler.startFontFace()
.
- Overrides:
startFontFace
in class CSSEngine.DocumentAdapter
- Following copied from interface:
org.w3c.css.sac.DocumentHandler
- Throws:
CSSException
- Any CSS exception, possibly wrapping another
exception.
endFontFace
public void endFontFace()
throws CSSException
- SAC: Implements
DocumentHandler.endFontFace()
.
- Overrides:
endFontFace
in class CSSEngine.DocumentAdapter
- Following copied from interface:
org.w3c.css.sac.DocumentHandler
- Throws:
CSSException
- Any CSS exception, possibly wrapping another
exception.
startSelector
public void startSelector(SelectorList selectors)
throws CSSException
- SAC: Implements
DocumentHandler.startSelector(SelectorList)
.
- Overrides:
startSelector
in class CSSEngine.DocumentAdapter
- Following copied from interface:
org.w3c.css.sac.DocumentHandler
- Parameters:
selectors
- All intended selectors for all declarations.- Throws:
CSSException
- Any CSS exception, possibly wrapping another
exception.
endSelector
public void endSelector(SelectorList selectors)
throws CSSException
- SAC: Implements
DocumentHandler.endSelector(SelectorList)
.
- Overrides:
endSelector
in class CSSEngine.DocumentAdapter
- Following copied from interface:
org.w3c.css.sac.DocumentHandler
- Parameters:
selectors
- All intended selectors for all declarations.- Throws:
CSSException
- Any CSS exception, possibly wrapping another
exception.
property
public void property(java.lang.String name,
LexicalUnit value,
boolean important)
throws CSSException
- SAC: Implements
DocumentHandler.property(String,LexicalUnit,boolean)
.
- Specified by:
property
in interface ShorthandManager.PropertyHandler
- Overrides:
property
in class CSSEngine.DocumentAdapter
- Following copied from interface:
org.w3c.css.sac.DocumentHandler
- Parameters:
name
- the name of the property.value
- the value of the property. All whitespace are stripped.important
- is this property important ?- Throws:
CSSException
- Any CSS exception, possibly wrapping another
exception.
Copyright © 2002 Apache Software Foundation. All Rights Reserved.