org.daisy.zedval.zedsuite.v2002
Class NcxInternal
java.lang.Object
org.daisy.zedval.engine.ZedCustomTest
org.daisy.zedval.zedsuite.v2002.NcxInternal
- All Implemented Interfaces:
- org.xml.sax.ContentHandler
- public class NcxInternal
- extends ZedCustomTest
- implements org.xml.sax.ContentHandler
Performs NCX internal checks:
- NCX_PrologPubId
- NCX public identifier is "-//NISO//DTD ncx v1.1.0//EN"
- NCX_Version
- Version attribute on NCX element has value 1.1.0
- ncx_metaDtbDepthValueCorrelated
- dtb:depth content attribute value indicates depth of structure of the
DTB as exposed by the NCX
- Author:
- James Pritchett
Method Summary |
void |
characters(char[] ch,
int start,
int length)
|
void |
endDocument()
|
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
|
void |
endPrefixMapping(java.lang.String prefix)
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
|
void |
performTest(ZedFile f)
Performs the internal tests on the NCX |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
|
void |
setDocumentLocator(org.xml.sax.Locator locator)
|
void |
skippedEntity(java.lang.String name)
|
void |
startDocument()
|
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NcxInternal
public NcxInternal()
performTest
public void performTest(ZedFile f)
throws ZedCustomTestException
- Performs the internal tests on the NCX
- Specified by:
performTest
in class ZedCustomTest
- Parameters:
f
- An NcxFile instance
- Returns:
- A DOM tree of nodes describing the failures
- Throws:
ZedCustomTestException
startElement
public void startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
- Specified by:
startElement
in interface org.xml.sax.ContentHandler
characters
public void characters(char[] ch,
int start,
int length)
- Specified by:
characters
in interface org.xml.sax.ContentHandler
endDocument
public void endDocument()
- Specified by:
endDocument
in interface org.xml.sax.ContentHandler
endElement
public void endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
- Specified by:
endElement
in interface org.xml.sax.ContentHandler
endPrefixMapping
public void endPrefixMapping(java.lang.String prefix)
- Specified by:
endPrefixMapping
in interface org.xml.sax.ContentHandler
ignorableWhitespace
public void ignorableWhitespace(char[] ch,
int start,
int length)
- Specified by:
ignorableWhitespace
in interface org.xml.sax.ContentHandler
processingInstruction
public void processingInstruction(java.lang.String target,
java.lang.String data)
- Specified by:
processingInstruction
in interface org.xml.sax.ContentHandler
setDocumentLocator
public void setDocumentLocator(org.xml.sax.Locator locator)
- Specified by:
setDocumentLocator
in interface org.xml.sax.ContentHandler
skippedEntity
public void skippedEntity(java.lang.String name)
- Specified by:
skippedEntity
in interface org.xml.sax.ContentHandler
startDocument
public void startDocument()
- Specified by:
startDocument
in interface org.xml.sax.ContentHandler
startPrefixMapping
public void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
- Specified by:
startPrefixMapping
in interface org.xml.sax.ContentHandler