|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.File
org.daisy.zedval.engine.ZedFile
org.daisy.zedval.engine.ManifestFile
org.daisy.zedval.engine.XmlFile
org.daisy.zedval.engine.NcxFile
An NcxFile
object represents a DTB navigation control file
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 | |
NcxFile(java.lang.String fullPath,
java.lang.String id,
java.lang.String mimeType)
|
Method Summary | |
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
Looks for end of all |
java.lang.Integer |
expectedDepth()
Returns the actual depth of heading nesting for this NCX |
int |
expectedMaxPageNormal()
Returns the actual maximum page-normal value |
int |
expectedMaxPageNumber()
Returns the actual maxPageNumber (see z2005 meta dtb:maxPageNumber) |
int |
expectedPageFront()
Returns the actual number of front pages |
int |
expectedPageNormal()
Returns the actual number of normal pages |
int |
expectedPageSpecial()
Returns the actual number of special pages |
java.util.HashMap |
getAudioFileRefs()
Returns a HashMap of all audio files referenced by this file |
java.util.HashMap |
getContentFileRefs()
Returns a HashMap of all content files referenced by this file |
java.lang.Integer |
getDepth()
Returns the declared depth of heading nesting for this NCX (value of dtb:depth metadata item) |
java.util.HashMap |
getFileRefs()
Returns a HashMap of all files referenced by this file |
java.util.HashMap |
getImageFileRefs()
Returns a HashMap of all image files referenced by this file |
int |
getMaxPageNormal()
Returns the declared maximum page-normal value (value of dtb:maxPageNormal metadata item) |
int |
getMaxPageNumber()
Returns the declared maxPageNumber (see z2005 meta dtb:maxPageNumber) |
int |
getPageFront()
Returns the declared number of front pages (value of dtb:pageFront metadata item) |
int |
getPageNormal()
Returns the declared number of normal pages (value of dtb:pageNormal metadata item) |
int |
getPageSpecial()
Returns the declared number of special pages (value of dtb:pageSpecial metadata item) |
java.util.Set |
getSmilCustomTestElements()
|
java.lang.String |
getUid()
Returns the declared unique identifier value for this NCX (value of "dtb:uid" metadata item) |
boolean |
isValidDepth()
Is the declared Depth value correct? |
boolean |
isValidPageFront()
Is the declared PageFront value correct? |
boolean |
isValidPageNormal()
Is the declared PageNormal value correct? |
boolean |
isValidPageSpecial()
Is the declared PageSpecial value correct? |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
Grabs all incoming elements and looks for properties to set |
java.lang.String |
toString()
|
Methods inherited from class org.daisy.zedval.engine.ManifestFile |
getId, getMimeType, getPackage, setID, setMimeType, setPackage |
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 |
public NcxFile(java.lang.String fullPath, java.lang.String id, java.lang.String mimeType)
id
- id from package file manifestfullPath
- File pathmimeType
- File MIME type as given in package manifestMethod Detail |
public int getMaxPageNormal()
public int expectedMaxPageNormal()
public int getPageFront()
public int expectedPageFront()
public boolean isValidPageFront()
true
if sopublic int getPageNormal()
public int expectedPageNormal()
public int getMaxPageNumber()
public int expectedMaxPageNumber()
public boolean isValidPageNormal()
true
if sopublic int getPageSpecial()
public int expectedPageSpecial()
public boolean isValidPageSpecial()
true
if sopublic java.lang.Integer getDepth()
public java.lang.Integer expectedDepth()
public boolean isValidDepth()
true
if sopublic java.lang.String getUid()
public java.util.HashMap getFileRefs()
public java.util.HashMap getContentFileRefs()
public java.util.HashMap getAudioFileRefs()
public java.util.HashMap getImageFileRefs()
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
startElement
in interface org.xml.sax.ContentHandler
startElement
in class XmlFile
namespaceURI
- The namespace URI of the elementlocalName
- The non-prefixed name of the elementqName
- The qualified name of the elementatts
- List of all element attributespublic void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName)
endElement
in interface org.xml.sax.ContentHandler
endElement
in class XmlFile
namespaceURI
- The namespace URI of the elementlocalName
- The non-prefixed name of the elementqName
- The qualified name of the elementpublic java.util.Set getSmilCustomTestElements()
public java.lang.String toString()
toString
in class XmlFile
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |