org.apache.batik.css.engine
Class CSSEngine.StyleSheetDocumentHandler

java.lang.Object
  extended by org.apache.batik.css.engine.CSSEngine.DocumentAdapter
      extended by 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
protected  StyleDeclaration styleDeclaration
           
protected  StyleRule styleRule
           
 StyleSheet styleSheet
           
 
Constructor Summary
protected CSSEngine.StyleSheetDocumentHandler()
           
 
Method Summary
 void endDocument(org.w3c.css.sac.InputSource source)
          SAC: Implements DocumentHandler.endDocument(InputSource).
 void endFontFace()
          SAC: Implements DocumentHandler.endFontFace().
 void endMedia(org.w3c.css.sac.SACMediaList media)
          SAC: Implements DocumentHandler.endMedia(SACMediaList).
 void endPage(String name, String pseudo_page)
          SAC: Implements DocumentHandler.endPage(String,String).
 void endSelector(org.w3c.css.sac.SelectorList selectors)
          SAC: Implements DocumentHandler.endSelector(SelectorList).
 void ignorableAtRule(String atRule)
          SAC: Implements DocumentHandler.ignorableAtRule(String).
 void importStyle(String uri, org.w3c.css.sac.SACMediaList media, String defaultNamespaceURI)
          SAC: Implements DocumentHandler.importStyle(String,SACMediaList,String).
 void property(String name, org.w3c.css.sac.LexicalUnit value, boolean important)
          SAC: Implements DocumentHandler.property(String,LexicalUnit,boolean).
 void startDocument(org.w3c.css.sac.InputSource source)
          SAC: Implements DocumentHandler.startDocument(InputSource).
 void startFontFace()
          SAC: Implements DocumentHandler.startFontFace().
 void startMedia(org.w3c.css.sac.SACMediaList media)
          SAC: Implements DocumentHandler.startMedia(SACMediaList).
 void startPage(String name, String pseudo_page)
          SAC: Implements DocumentHandler.startPage(String,String).
 void startSelector(org.w3c.css.sac.SelectorList selectors)
          SAC: Implements DocumentHandler.startSelector(SelectorList).
 
Methods inherited from class org.apache.batik.css.engine.CSSEngine.DocumentAdapter
comment, namespaceDeclaration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

styleSheet

public StyleSheet styleSheet

styleRule

protected StyleRule styleRule

styleDeclaration

protected StyleDeclaration styleDeclaration
Constructor Detail

CSSEngine.StyleSheetDocumentHandler

protected CSSEngine.StyleSheetDocumentHandler()
Method Detail

startDocument

public void startDocument(org.w3c.css.sac.InputSource source)
                   throws org.w3c.css.sac.CSSException
SAC: Implements DocumentHandler.startDocument(InputSource).

Specified by:
startDocument in interface org.w3c.css.sac.DocumentHandler
Overrides:
startDocument in class CSSEngine.DocumentAdapter
Throws:
org.w3c.css.sac.CSSException

endDocument

public void endDocument(org.w3c.css.sac.InputSource source)
                 throws org.w3c.css.sac.CSSException
SAC: Implements DocumentHandler.endDocument(InputSource).

Specified by:
endDocument in interface org.w3c.css.sac.DocumentHandler
Overrides:
endDocument in class CSSEngine.DocumentAdapter
Throws:
org.w3c.css.sac.CSSException

ignorableAtRule

public void ignorableAtRule(String atRule)
                     throws org.w3c.css.sac.CSSException
SAC: Implements DocumentHandler.ignorableAtRule(String).

Specified by:
ignorableAtRule in interface org.w3c.css.sac.DocumentHandler
Overrides:
ignorableAtRule in class CSSEngine.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: Implements DocumentHandler.importStyle(String,SACMediaList,String).

Specified by:
importStyle in interface org.w3c.css.sac.DocumentHandler
Overrides:
importStyle in class CSSEngine.DocumentAdapter
Throws:
org.w3c.css.sac.CSSException

startMedia

public void startMedia(org.w3c.css.sac.SACMediaList media)
                throws org.w3c.css.sac.CSSException
SAC: Implements DocumentHandler.startMedia(SACMediaList).

Specified by:
startMedia in interface org.w3c.css.sac.DocumentHandler
Overrides:
startMedia in class CSSEngine.DocumentAdapter
Throws:
org.w3c.css.sac.CSSException

endMedia

public void endMedia(org.w3c.css.sac.SACMediaList media)
              throws org.w3c.css.sac.CSSException
SAC: Implements DocumentHandler.endMedia(SACMediaList).

Specified by:
endMedia in interface org.w3c.css.sac.DocumentHandler
Overrides:
endMedia in class CSSEngine.DocumentAdapter
Throws:
org.w3c.css.sac.CSSException

startPage

public void startPage(String name,
                      String pseudo_page)
               throws org.w3c.css.sac.CSSException
SAC: Implements DocumentHandler.startPage(String,String).

Specified by:
startPage in interface org.w3c.css.sac.DocumentHandler
Overrides:
startPage in class CSSEngine.DocumentAdapter
Throws:
org.w3c.css.sac.CSSException

endPage

public void endPage(String name,
                    String pseudo_page)
             throws org.w3c.css.sac.CSSException
SAC: Implements DocumentHandler.endPage(String,String).

Specified by:
endPage in interface org.w3c.css.sac.DocumentHandler
Overrides:
endPage in class CSSEngine.DocumentAdapter
Throws:
org.w3c.css.sac.CSSException

startFontFace

public void startFontFace()
                   throws org.w3c.css.sac.CSSException
SAC: Implements DocumentHandler.startFontFace().

Specified by:
startFontFace in interface org.w3c.css.sac.DocumentHandler
Overrides:
startFontFace in class CSSEngine.DocumentAdapter
Throws:
org.w3c.css.sac.CSSException

endFontFace

public void endFontFace()
                 throws org.w3c.css.sac.CSSException
SAC: Implements DocumentHandler.endFontFace().

Specified by:
endFontFace in interface org.w3c.css.sac.DocumentHandler
Overrides:
endFontFace in class CSSEngine.DocumentAdapter
Throws:
org.w3c.css.sac.CSSException

startSelector

public void startSelector(org.w3c.css.sac.SelectorList selectors)
                   throws org.w3c.css.sac.CSSException
SAC: Implements DocumentHandler.startSelector(SelectorList).

Specified by:
startSelector in interface org.w3c.css.sac.DocumentHandler
Overrides:
startSelector in class CSSEngine.DocumentAdapter
Throws:
org.w3c.css.sac.CSSException

endSelector

public void endSelector(org.w3c.css.sac.SelectorList selectors)
                 throws org.w3c.css.sac.CSSException
SAC: Implements DocumentHandler.endSelector(SelectorList).

Specified by:
endSelector in interface org.w3c.css.sac.DocumentHandler
Overrides:
endSelector in class CSSEngine.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: Implements DocumentHandler.property(String,LexicalUnit,boolean).

Specified by:
property in interface ShorthandManager.PropertyHandler
Specified by:
property in interface org.w3c.css.sac.DocumentHandler
Overrides:
property in class CSSEngine.DocumentAdapter
Throws:
org.w3c.css.sac.CSSException


Copyright © 2008 Apache Software Foundation. All Rights Reserved.