org.daisy.zedval.zedsuite.v2002
Class ManifestIntegrity

java.lang.Object
  extended byorg.daisy.zedval.engine.ZedCustomTest
      extended byorg.daisy.zedval.zedsuite.v2002.ManifestIntegrity

public class ManifestIntegrity
extends ZedCustomTest

Performs package file manifest integrity checks:

opf_mnfIntegrityExists
All items referenced in manifest exist
opf_mnfIntegrityReadable
All items referenced in manifest are readable
opf_mnfOneSmil
manifest references at least one SMIL file
opf_mnfNcxMediaType
item element for ncx in the manifest must have a media-type attribute of "text/xml"
opf_mnfOpfMediaType
item element for package file in the manifest must have a media-type attribute of "text/xml"
opf_mnfResMediaType
item element for resource file must, if listed in manifest, have a media-type attribute of "text/xml"

Author:
James Pritchett

Constructor Summary
ManifestIntegrity()
           
 
Method Summary
 void performTest(ZedFile f)
          Performs the manifest integrity tests on the package file
 
Methods inherited from class org.daisy.zedval.engine.ZedCustomTest
addTestFailure, getResultDoc
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManifestIntegrity

public ManifestIntegrity()
Method Detail

performTest

public void performTest(ZedFile f)
                 throws ZedCustomTestException
Performs the manifest integrity tests on the package file

Specified by:
performTest in class ZedCustomTest
Parameters:
f - A PackageFile instance
Throws:
ZedCustomTestException