shocks.framework.util
Class XMLLoader

java.lang.Object
  extended byshocks.framework.util.XMLLoader

public final class XMLLoader
extends java.lang.Object

This loader class uses an XML file or path to a file to build and return a fully populated XML Document object.


Constructor Summary
XMLLoader()
           
 
Method Summary
static org.dom4j.Document getDocument(java.io.File descriptor)
          Accepts an XML file and returns a Document
static org.dom4j.Document getDocument(java.lang.String path)
          Accepts a path to an xml file and returns a document
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLLoader

public XMLLoader()
Method Detail

getDocument

public static org.dom4j.Document getDocument(java.io.File descriptor)
Accepts an XML file and returns a Document

Parameters:
descriptor - representing the shocks workflow descriptor
Returns:
Document shocks-workflow.xml document

getDocument

public static org.dom4j.Document getDocument(java.lang.String path)
Accepts a path to an xml file and returns a document

Parameters:
path - to the xml document.