org.daisy.zedval.zedsuite.v2002
Class OpfIntegrity

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

public class OpfIntegrity
extends ZedCustomTest

Performs package file integrity checks:

opf_exists
Package file exists
opf_isReadable
Package file is readable
opf_fileExtn
Package file has .opf extension

Note: In default ZedVal application (and probably in others), package file existence test will probably never be executed here. Instead, it will throw an application error earlier on in the process. This test is included here for completeness of the test processor suite.

Author:
James Pritchett

Constructor Summary
OpfIntegrity()
           
 
Method Summary
 void performTest(ZedFile f)
          Performs the 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

OpfIntegrity

public OpfIntegrity()
Method Detail

performTest

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

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