xmlgp
Class XMLGP

java.lang.Object
  extended by xmlgp.XMLGP

public final class XMLGP
extends java.lang.Object

This class is the core for the XMLGP tool.
This class has the methods to serialize, deserialize and print XML.

Author:
dharani

Constructor Summary
XMLGP()
           
 
Method Summary
static Project deserializeFromFile(java.lang.String inputXmlFileName)
          Loads XML from an input file, converts XML into project object and returns the object.
static Project deserializeFromStream(java.io.DataInputStream dataInputStream)
          Loads XML from the input stream, converts that into project object and returns the object.
static void printGPResults(Project project)
          Prints project object which holds the XML content.
static void serializeToFile(Project project, java.lang.String outputXmlFileName)
          Serializes the XML content to the file.
static void serializeToStream(Project project)
          Serializes the XML content to the stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLGP

public XMLGP()
Method Detail

deserializeFromStream

public static Project deserializeFromStream(java.io.DataInputStream dataInputStream)
Loads XML from the input stream, converts that into project object and returns the object.

Parameters:
dataInputStream - input data stream which has XML content
Returns:
project - the object which is the holder for the content of XML

deserializeFromFile

public static Project deserializeFromFile(java.lang.String inputXmlFileName)
Loads XML from an input file, converts XML into project object and returns the object.

Parameters:
inputXmlFileName - the name of the input XML file
Returns:
project - the object which is the holder for the content of XML

serializeToStream

public static void serializeToStream(Project project)
Serializes the XML content to the stream.

Parameters:
project - the object which is the holder for the content of XML

serializeToFile

public static void serializeToFile(Project project,
                                   java.lang.String outputXmlFileName)
Serializes the XML content to the file.

Parameters:
project - the object which is the holder for the content of XML
outputXmlFileName - the name of the output XML file

printGPResults

public static void printGPResults(Project project)
Prints project object which holds the XML content. This is for debugging purpose.

Parameters:
project - the object which is the holder for the content of XML