org.ephman.abra.tools
Class XmlProcessor

java.lang.Object
  |
  +--org.ephman.abra.tools.XmlProcessor
Direct Known Subclasses:
MapToJava, Marshaller

public abstract class XmlProcessor
extends java.lang.Object


Field Summary
protected  boolean useAbraParser
           
 
Constructor Summary
(package private) XmlProcessor(boolean useAbraParser)
           
 
Method Summary
protected abstract  void applyRules(org.ephman.xml.XmlNode thisNode, java.lang.String mapFile)
           
 org.ephman.xml.XmlNode mapXMLFile(java.io.Reader reader)
           
 org.ephman.xml.XmlNode mapXMLFile(java.io.Reader reader, boolean validate)
           
 org.ephman.xml.XmlNode mapXMLFile(java.lang.String schemaFname)
          maps XML schema to a map file for unmarshalling
 org.ephman.xml.XmlNode mapXMLFile(java.lang.String schemaFname, boolean validate)
           
protected  void recurseOnChildList(java.util.Vector children, java.lang.String mapFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

useAbraParser

protected boolean useAbraParser
Constructor Detail

XmlProcessor

XmlProcessor(boolean useAbraParser)
Method Detail

mapXMLFile

public org.ephman.xml.XmlNode mapXMLFile(java.lang.String schemaFname)
                                  throws org.ephman.xml.XmlException,
                                         java.io.FileNotFoundException
maps XML schema to a map file for unmarshalling

Throws:
XmlEXecption - - some parsing problem
org.ephman.xml.XmlException
java.io.FileNotFoundException

mapXMLFile

public org.ephman.xml.XmlNode mapXMLFile(java.lang.String schemaFname,
                                         boolean validate)
                                  throws org.ephman.xml.XmlException,
                                         java.io.FileNotFoundException
org.ephman.xml.XmlException
java.io.FileNotFoundException

mapXMLFile

public org.ephman.xml.XmlNode mapXMLFile(java.io.Reader reader)
                                  throws org.ephman.xml.XmlException,
                                         java.io.FileNotFoundException
org.ephman.xml.XmlException
java.io.FileNotFoundException

mapXMLFile

public org.ephman.xml.XmlNode mapXMLFile(java.io.Reader reader,
                                         boolean validate)
                                  throws org.ephman.xml.XmlException,
                                         java.io.FileNotFoundException
Parameters:
reader - input XML is read from here
validate - whether or not to validate..
Throws:
XmlExecption - - some parsing problem
org.ephman.xml.XmlException
java.io.FileNotFoundException

applyRules

protected abstract void applyRules(org.ephman.xml.XmlNode thisNode,
                                   java.lang.String mapFile)
                            throws org.ephman.xml.XmlException,
                                   java.io.IOException,
                                   SchemaException
org.ephman.xml.XmlException
java.io.IOException
SchemaException

recurseOnChildList

protected void recurseOnChildList(java.util.Vector children,
                                  java.lang.String mapFile)
                           throws org.ephman.xml.XmlException,
                                  java.io.IOException,
                                  SchemaException
org.ephman.xml.XmlException
java.io.IOException
SchemaException