com.steadystate.css.parser
Class HandlerBase

java.lang.Object
  extended by com.steadystate.css.parser.HandlerBase
All Implemented Interfaces:
DocumentHandlerExt, org.w3c.css.sac.DocumentHandler, org.w3c.css.sac.ErrorHandler

public class HandlerBase
extends Object
implements DocumentHandlerExt, org.w3c.css.sac.ErrorHandler

Empty implementation of the DocumentHandlerExt interface.


Constructor Summary
HandlerBase()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandlerBase

public HandlerBase()
Method Detail

startDocument

public void startDocument(org.w3c.css.sac.InputSource source)
                   throws org.w3c.css.sac.CSSException
Specified by:
startDocument in interface org.w3c.css.sac.DocumentHandler
Throws:
org.w3c.css.sac.CSSException

endDocument

public void endDocument(org.w3c.css.sac.InputSource source)
                 throws org.w3c.css.sac.CSSException
Specified by:
endDocument in interface org.w3c.css.sac.DocumentHandler
Throws:
org.w3c.css.sac.CSSException

comment

public void comment(String text)
             throws org.w3c.css.sac.CSSException
Specified by:
comment in interface org.w3c.css.sac.DocumentHandler
Throws:
org.w3c.css.sac.CSSException

ignorableAtRule

public void ignorableAtRule(String atRule)
                     throws org.w3c.css.sac.CSSException
Specified by:
ignorableAtRule in interface org.w3c.css.sac.DocumentHandler
Throws:
org.w3c.css.sac.CSSException

ignorableAtRule

public void ignorableAtRule(String atRule,
                            org.w3c.css.sac.Locator locator)
                     throws org.w3c.css.sac.CSSException
Description copied from interface: DocumentHandlerExt
Receive notification of an unknown rule t-rule not supported by this parser.

Specified by:
ignorableAtRule in interface DocumentHandlerExt
Parameters:
atRule - The complete ignored at-rule.
locator - the SAC locator
Throws:
org.w3c.css.sac.CSSException - Any CSS exception, possibly wrapping another exception.

namespaceDeclaration

public void namespaceDeclaration(String prefix,
                                 String uri)
                          throws org.w3c.css.sac.CSSException
Specified by:
namespaceDeclaration in interface org.w3c.css.sac.DocumentHandler
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
Specified by:
importStyle in interface org.w3c.css.sac.DocumentHandler
Throws:
org.w3c.css.sac.CSSException

importStyle

public void importStyle(String uri,
                        org.w3c.css.sac.SACMediaList media,
                        String defaultNamespaceURI,
                        org.w3c.css.sac.Locator locator)
                 throws org.w3c.css.sac.CSSException
Description copied from interface: DocumentHandlerExt
Receive notification of a import statement in the style sheet.

Specified by:
importStyle in interface DocumentHandlerExt
Parameters:
uri - 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 locator
Throws:
org.w3c.css.sac.CSSException - Any CSS exception, possibly wrapping another exception.

startMedia

public void startMedia(org.w3c.css.sac.SACMediaList media)
                throws org.w3c.css.sac.CSSException
Specified by:
startMedia in interface org.w3c.css.sac.DocumentHandler
Throws:
org.w3c.css.sac.CSSException

startMedia

public void startMedia(org.w3c.css.sac.SACMediaList media,
                       org.w3c.css.sac.Locator locator)
                throws org.w3c.css.sac.CSSException
Description copied from interface: DocumentHandlerExt
Receive notification of the beginning of a media statement. The Parser will invoke this method at the beginning of every media statement in the style sheet. there will be a corresponding endMedia() event for every startElement() event.

Specified by:
startMedia in interface DocumentHandlerExt
Parameters:
media - The intended destination media for style information.
locator - the SAC locator
Throws:
org.w3c.css.sac.CSSException - Any CSS exception, possibly wrapping another exception.

endMedia

public void endMedia(org.w3c.css.sac.SACMediaList media)
              throws org.w3c.css.sac.CSSException
Specified by:
endMedia in interface org.w3c.css.sac.DocumentHandler
Throws:
org.w3c.css.sac.CSSException

startPage

public void startPage(String name,
                      String pseudoPage)
               throws org.w3c.css.sac.CSSException
Specified by:
startPage in interface org.w3c.css.sac.DocumentHandler
Throws:
org.w3c.css.sac.CSSException

startPage

public void startPage(String name,
                      String pseudoPage,
                      org.w3c.css.sac.Locator locator)
               throws org.w3c.css.sac.CSSException
Description copied from interface: DocumentHandlerExt
Receive notification of the beginning of a page statement. The Parser will invoke this method at the beginning of every page statement in the style sheet. there will be a corresponding endPage() event for every startPage() event.

Specified by:
startPage in interface DocumentHandlerExt
Parameters:
name - the name of the page (if any, null otherwise)
pseudoPage - the pseudo page (if any, null otherwise)
locator - the SAC locator
Throws:
org.w3c.css.sac.CSSException - Any CSS exception, possibly wrapping another exception.

endPage

public void endPage(String name,
                    String pseudoPage)
             throws org.w3c.css.sac.CSSException
Specified by:
endPage in interface org.w3c.css.sac.DocumentHandler
Throws:
org.w3c.css.sac.CSSException

startFontFace

public void startFontFace()
                   throws org.w3c.css.sac.CSSException
Specified by:
startFontFace in interface org.w3c.css.sac.DocumentHandler
Throws:
org.w3c.css.sac.CSSException

startFontFace

public void startFontFace(org.w3c.css.sac.Locator locator)
                   throws org.w3c.css.sac.CSSException
Description copied from interface: DocumentHandlerExt
Receive notification of the beginning of a font face statement. The Parser will invoke this method at the beginning of every font face statement in the style sheet. there will be a corresponding endFontFace() event for every startFontFace() event.

Specified by:
startFontFace in interface DocumentHandlerExt
Parameters:
locator - the SAC locator
Throws:
org.w3c.css.sac.CSSException - Any CSS exception, possibly wrapping another exception.

endFontFace

public void endFontFace()
                 throws org.w3c.css.sac.CSSException
Specified by:
endFontFace in interface org.w3c.css.sac.DocumentHandler
Throws:
org.w3c.css.sac.CSSException

startSelector

public void startSelector(org.w3c.css.sac.SelectorList selectors)
                   throws org.w3c.css.sac.CSSException
Specified by:
startSelector in interface org.w3c.css.sac.DocumentHandler
Throws:
org.w3c.css.sac.CSSException

startSelector

public void startSelector(org.w3c.css.sac.SelectorList selectors,
                          org.w3c.css.sac.Locator locator)
                   throws org.w3c.css.sac.CSSException
Description copied from interface: DocumentHandlerExt
Receive notification of the beginning of a rule statement.

Specified by:
startSelector in interface DocumentHandlerExt
Parameters:
selectors - All intended selectors for all declarations.
locator - the SAC locator
Throws:
org.w3c.css.sac.CSSException - Any CSS exception, possibly wrapping another exception.

endSelector

public void endSelector(org.w3c.css.sac.SelectorList selectors)
                 throws org.w3c.css.sac.CSSException
Specified by:
endSelector in interface org.w3c.css.sac.DocumentHandler
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
Specified by:
property in interface org.w3c.css.sac.DocumentHandler
Throws:
org.w3c.css.sac.CSSException

property

public void property(String name,
                     org.w3c.css.sac.LexicalUnit value,
                     boolean important,
                     org.w3c.css.sac.Locator locator)
Description copied from interface: DocumentHandlerExt
Receive notification of a declaration.

Specified by:
property in interface DocumentHandlerExt
Parameters:
name - the name of the property.
value - the value of the property. All whitespace are stripped.
important - is this property important ?
locator - the SAC locator

charset

public void charset(String characterEncoding,
                    org.w3c.css.sac.Locator locator)
             throws org.w3c.css.sac.CSSException
Description copied from interface: DocumentHandlerExt
Receive notification of a charset at-rule.

Specified by:
charset in interface DocumentHandlerExt
Parameters:
characterEncoding - the character encoding
locator - the SAC locator
Throws:
org.w3c.css.sac.CSSException - Any CSS exception, possibly wrapping another exception.

warning

public void warning(org.w3c.css.sac.CSSParseException exception)
             throws org.w3c.css.sac.CSSException
Specified by:
warning in interface org.w3c.css.sac.ErrorHandler
Throws:
org.w3c.css.sac.CSSException

error

public void error(org.w3c.css.sac.CSSParseException exception)
           throws org.w3c.css.sac.CSSException
Specified by:
error in interface org.w3c.css.sac.ErrorHandler
Throws:
org.w3c.css.sac.CSSException

fatalError

public void fatalError(org.w3c.css.sac.CSSParseException exception)
                throws org.w3c.css.sac.CSSException
Specified by:
fatalError in interface org.w3c.css.sac.ErrorHandler
Throws:
org.w3c.css.sac.CSSException


Copyright © 2014. All rights reserved.