org.daisy.zedval.engine
Class CssFile

java.lang.Object
  extended byjava.io.File
      extended byorg.daisy.zedval.engine.ZedFile
          extended byorg.daisy.zedval.engine.ManifestFile
              extended byorg.daisy.zedval.engine.CssFile
All Implemented Interfaces:
java.lang.Comparable, org.w3c.css.sac.DocumentHandler, org.w3c.css.sac.ErrorHandler, Referring, java.io.Serializable

public class CssFile
extends ManifestFile
implements Referring, org.w3c.css.sac.DocumentHandler, org.w3c.css.sac.ErrorHandler

A CssFile object represents a single DTB css file

Author:
Markus Gylling
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.daisy.zedval.engine.ManifestFile
MIME_JPEG, MIME_MP3, MIME_NCX, MIME_PACKAGE, MIME_PNG, MIME_RESOURCE, MIME_SMIL, MIME_SVG, MIME_TEXT, MIME_WAV, MIME_AAC
 
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
 
Constructor Summary
CssFile(java.lang.String fullPath, java.lang.String id, java.lang.String mimeType)
           
 
Method Summary
 void comment(java.lang.String text)
           
 void endDocument(org.w3c.css.sac.InputSource source)
           
 void endFontFace()
           
 void endMedia(org.w3c.css.sac.SACMediaList media)
           
 void endPage(java.lang.String name, java.lang.String pseudo_page)
           
 void endSelector(org.w3c.css.sac.SelectorList selectors)
           
 void error(org.w3c.css.sac.CSSParseException e)
           
 void fatalError(org.w3c.css.sac.CSSParseException e)
           
 java.util.HashMap getFileRefs()
           
 void ignorableAtRule(java.lang.String atRule)
           
 void importStyle(java.lang.String inuri, org.w3c.css.sac.SACMediaList media, java.lang.String defaultNamespaceURI)
           
 void namespaceDeclaration(java.lang.String prefix, java.lang.String uri)
           
 void property(java.lang.String name, org.w3c.css.sac.LexicalUnit value, boolean important)
           
 void startDocument(org.w3c.css.sac.InputSource source)
           
 void startFontFace()
           
 void startMedia(org.w3c.css.sac.SACMediaList media)
           
 void startPage(java.lang.String name, java.lang.String pseudo_page)
           
 void startSelector(org.w3c.css.sac.SelectorList selectors)
           
 void warning(org.w3c.css.sac.CSSParseException e)
           
 
Methods inherited from class org.daisy.zedval.engine.ManifestFile
getId, getMimeType, getPackage, setID, setMimeType, setPackage, toString
 
Methods inherited from class org.daisy.zedval.engine.ZedFile
getName
 
Methods inherited from class java.io.File
canRead, canWrite, compareTo, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getParent, getParentFile, getPath, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setLastModified, setReadOnly, toURI, toURL
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CssFile

public CssFile(java.lang.String fullPath,
               java.lang.String id,
               java.lang.String mimeType)
Method Detail

getFileRefs

public java.util.HashMap getFileRefs()
Specified by:
getFileRefs in interface Referring

property

public void property(java.lang.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

importStyle

public void importStyle(java.lang.String inuri,
                        org.w3c.css.sac.SACMediaList media,
                        java.lang.String defaultNamespaceURI)
Specified by:
importStyle in interface org.w3c.css.sac.DocumentHandler

error

public void error(org.w3c.css.sac.CSSParseException e)
           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 e)
                throws org.w3c.css.sac.CSSException
Specified by:
fatalError in interface org.w3c.css.sac.ErrorHandler
Throws:
org.w3c.css.sac.CSSException

warning

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

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

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

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

comment

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

startPage

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

endPage

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

ignorableAtRule

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

namespaceDeclaration

public void namespaceDeclaration(java.lang.String prefix,
                                 java.lang.String uri)
                          throws org.w3c.css.sac.CSSException
Specified by:
namespaceDeclaration 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

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

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

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