org.gridbus.broker.xpml
Class XPMLReader

java.lang.Object
  extended by org.gridbus.broker.xpml.XPMLReader

public class XPMLReader
extends java.lang.Object

This is the main class that will read any XPML file.

Author:
Krishna Nadiminti (kna@cs.mu.oz.au), Ding Choon Hoong (chd@students.cs.mu.oz.au)

Constructor Summary
XPMLReader()
           
 
Method Summary
 java.util.Vector getDataFileList()
           
 java.util.Hashtable getDataHostTable()
           
 java.util.Vector getJobs()
           
 NodeRequirement getNodeRequirements()
           
 void parseXML(java.lang.String appDescFileName)
          Loads a document from a file specified, and parses it to a collection of jobs and requirement objects.
 void setDestinationFile(java.lang.String xmlDestination)
          Sets the destination file location for the substitute command.
 void setServices(java.util.Vector services)
          Information / other services needed during data discovery.
 void setSourceFile(java.lang.String xmlSource)
          Sets the source file location for this substitute command.
 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 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 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 java.util.Vector getJobs()
Returns:

getNodeRequirements

public NodeRequirement getNodeRequirements()
Returns:

validateXML

public boolean validateXML()
Validates an XML document

Returns:
true if the document is valid

getDataFileList

public java.util.Vector getDataFileList()
Returns:
Returns the dataFileList.

setServices

public void setServices(java.util.Vector services)
Information / other services needed during data discovery.

Parameters:
services -

getDataHostTable

public java.util.Hashtable getDataHostTable()
Returns:
Returns the dataHostTable.