org.gridbus.broker.plan
Class XMLReader

java.lang.Object
  extended byorg.gridbus.broker.plan.XMLReader

public class XMLReader
extends java.lang.Object

This is the main class that will read any XML file. AbstractDemo is a class that was provided by the dom4j package. Saves a whole lot of trouble.

Author:
Ding Choon Hoong (chd@students.cs.mu.oz.au)

Constructor Summary
XMLReader()
           
 
Method Summary
 java.util.Vector parseXML()
          Loads a document from a file specified, and parses it to return a collection of jobs
 void setDestinationFile(java.lang.String xmlDestination)
          Sets the destination file location for the substitute command.
 void setSourceFile(java.lang.String xmlSource)
          Sets the source file location for this substitute command.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLReader

public XMLReader()
Method Detail

setSourceFile

public void setSourceFile(java.lang.String xmlSource)
Sets the source file location for this substitute command.

Parameters:
xmlSource -

setDestinationFile

public void setDestinationFile(java.lang.String xmlDestination)
Sets the destination file location for the substitute command.

Parameters:
xmlDestination -

parseXML

public java.util.Vector parseXML()
                          throws java.net.MalformedURLException,
                                 org.dom4j.DocumentException
Loads a document from a file specified, and parses it to return a collection of jobs

Returns:
collection of jobs
Throws:
java.net.MalformedURLException
org.dom4j.DocumentException