org.daisy.zedval.engine
Class ZedMap

java.lang.Object
  extended byorg.daisy.zedval.engine.ZedMap
All Implemented Interfaces:
org.xml.sax.ErrorHandler

public class ZedMap
extends java.lang.Object
implements org.xml.sax.ErrorHandler

Represents a Test Map or Processor Map. This class replaces the MapFile object used in ZedVal2002 ZedMap does not inherit from the ZedFile hierarchy since maps because of jarness need to be instantiated from InputStream, and since jarness and java.io.File compatibility problems.

Author:
Markus Gylling

Constructor Summary
ZedMap(java.lang.String path)
           
ZedMap(java.net.URL url)
           
 
Method Summary
 void error(org.xml.sax.SAXParseException e)
           
 boolean exists()
           
 void fatalError(org.xml.sax.SAXParseException e)
           
 org.w3c.dom.Document getMapDocument()
           
 java.lang.String getName()
           
 java.lang.String getSpecVersion()
           
 boolean isValid()
           
 void warning(org.xml.sax.SAXParseException e)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZedMap

public ZedMap(java.lang.String path)
       throws ZedFileInitializationException

ZedMap

public ZedMap(java.net.URL url)
       throws ZedFileInitializationException
Method Detail

isValid

public boolean isValid()
Returns:
true if document is valid

getName

public java.lang.String getName()
Returns:
the name of the map file

exists

public boolean exists()
Returns:
the name of the map file

getMapDocument

public org.w3c.dom.Document getMapDocument()
Returns:
DOM Document representing contents of map

getSpecVersion

public java.lang.String getSpecVersion()
Returns:
String of spec version, as should be declared in dc:Format

warning

public void warning(org.xml.sax.SAXParseException e)
             throws org.xml.sax.SAXException
Specified by:
warning in interface org.xml.sax.ErrorHandler
Throws:
org.xml.sax.SAXException

error

public void error(org.xml.sax.SAXParseException e)
           throws org.xml.sax.SAXException
Specified by:
error in interface org.xml.sax.ErrorHandler
Throws:
org.xml.sax.SAXException

fatalError

public void fatalError(org.xml.sax.SAXParseException e)
                throws org.xml.sax.SAXException
Specified by:
fatalError in interface org.xml.sax.ErrorHandler
Throws:
org.xml.sax.SAXException