org.gridbus.broker.xpml
Class XPMLReader

java.lang.Object
  |
  +--org.gridbus.broker.xpml.XPMLReader

public class XPMLReader
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
XPMLReader()
           
 
Method Summary
static java.util.Vector getJobs()
           
static NodeRequirement getNodeRequirements()
           
static void parseXML(java.lang.String appDescFileName)
          Loads a document from a file specified, and parses it to a collection of jobs and requirement objects.
static void setDestinationFile(java.lang.String xmlDestination)
          Sets the destination file location for the substitute command.
static void setSourceFile(java.lang.String xmlSource)
          Sets the source file location for this substitute command.
static boolean validateXML()
          Validates an XML document
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPMLReader

public XPMLReader()
Method Detail

setSourceFile

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

Parameters:
xmlSource -

setDestinationFile

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

Parameters:
xmlDestination -

parseXML

public static void parseXML(java.lang.String appDescFileName)
                     throws java.net.MalformedURLException,
                            org.dom4j.DocumentException
Loads a document from a file specified, and parses it to a collection of jobs and requirement objects.

Parameters:
appDescFileName -
Throws:
java.net.MalformedURLException
org.dom4j.DocumentException

getJobs

public static java.util.Vector getJobs()
Returns:

getNodeRequirements

public static NodeRequirement getNodeRequirements()
Returns:

validateXML

public static boolean validateXML()
Validates an XML document

Returns:
true if the document is valid