dochelper
Class DocHelper

java.lang.Object
  extended by dochelper.DocHelper

public class DocHelper
extends java.lang.Object

The class DocHelper is the main entry point for running a DocHelper job. This class should server as the place where run settings or instance handling should be run.


Field Summary
(package private) static org.w3c.dom.Document doc
           
(package private) static java.lang.String docdefPath
           
(package private) static java.util.ArrayList<DocumentDefinition> documents
           
(package private) static java.util.Hashtable<java.lang.String,DocPattern> patterns
           
(package private) static java.lang.String PKG
           
(package private) static java.util.Hashtable<java.lang.String,Processor> processors
           
(package private) static java.util.Hashtable<java.lang.String,RecordSet> recordsets
           
(package private) static java.util.Hashtable<java.lang.String,Renderer> renderers
           
 
Constructor Summary
DocHelper()
           
 
Method Summary
(package private) static void checkParams(java.lang.String fileName)
           
static void execute(java.lang.String configFile)
           
private static Configurable parseConfigurable(org.w3c.dom.Element node)
           
(package private) static void parseDocumentDefintion(org.w3c.dom.Document doc)
           
private static DocPattern parsePattern(org.w3c.dom.Element node)
           
private static Processor parseProcessor(org.w3c.dom.Element node)
           
private static RecordSet parseRecordSet(org.w3c.dom.Element node, java.lang.String name)
           
private static Renderer parseRenderer(org.w3c.dom.Element node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

docdefPath

static java.lang.String docdefPath

PKG

static final java.lang.String PKG
See Also:
Constant Field Values

patterns

static java.util.Hashtable<java.lang.String,DocPattern> patterns

recordsets

static java.util.Hashtable<java.lang.String,RecordSet> recordsets

renderers

static java.util.Hashtable<java.lang.String,Renderer> renderers

processors

static java.util.Hashtable<java.lang.String,Processor> processors

documents

static java.util.ArrayList<DocumentDefinition> documents

doc

static org.w3c.dom.Document doc
Constructor Detail

DocHelper

public DocHelper()
Method Detail

execute

public static void execute(java.lang.String configFile)
                    throws DocumentParseException,
                           javax.xml.parsers.ParserConfigurationException,
                           InvalidValueException,
                           IllegalParamterTypeException,
                           MissingArgumentException,
                           org.xml.sax.SAXException,
                           java.io.IOException
Throws:
DocumentParseException
javax.xml.parsers.ParserConfigurationException
InvalidValueException
IllegalParamterTypeException
MissingArgumentException
org.xml.sax.SAXException
java.io.IOException

checkParams

static void checkParams(java.lang.String fileName)

parseDocumentDefintion

static void parseDocumentDefintion(org.w3c.dom.Document doc)
                            throws DocumentParseException,
                                   InvalidValueException,
                                   IllegalParamterTypeException,
                                   MissingArgumentException,
                                   ResourceUnavailableException
Throws:
DocumentParseException
InvalidValueException
IllegalParamterTypeException
MissingArgumentException
ResourceUnavailableException

parsePattern

private static DocPattern parsePattern(org.w3c.dom.Element node)
                                throws DocumentParseException
Throws:
DocumentParseException

parseProcessor

private static Processor parseProcessor(org.w3c.dom.Element node)
                                 throws DocumentParseException,
                                        InvalidValueException,
                                        IllegalParamterTypeException,
                                        MissingArgumentException,
                                        ResourceUnavailableException
Throws:
DocumentParseException
InvalidValueException
IllegalParamterTypeException
MissingArgumentException
ResourceUnavailableException

parseRecordSet

private static RecordSet parseRecordSet(org.w3c.dom.Element node,
                                        java.lang.String name)
                                 throws DocumentParseException,
                                        InvalidValueException,
                                        IllegalParamterTypeException,
                                        MissingArgumentException,
                                        ResourceUnavailableException
Throws:
DocumentParseException
InvalidValueException
IllegalParamterTypeException
MissingArgumentException
ResourceUnavailableException

parseRenderer

private static Renderer parseRenderer(org.w3c.dom.Element node)
                               throws DocumentParseException,
                                      InvalidValueException,
                                      IllegalParamterTypeException,
                                      MissingArgumentException,
                                      ResourceUnavailableException
Throws:
DocumentParseException
InvalidValueException
IllegalParamterTypeException
MissingArgumentException
ResourceUnavailableException

parseConfigurable

private static Configurable parseConfigurable(org.w3c.dom.Element node)
                                       throws DocumentParseException,
                                              InvalidValueException,
                                              IllegalParamterTypeException,
                                              MissingArgumentException,
                                              ResourceUnavailableException
Throws:
DocumentParseException
InvalidValueException
IllegalParamterTypeException
MissingArgumentException
ResourceUnavailableException