planetj.helpers
Class XMLHelper

java.lang.Object
  |
  +--planetj.helpers.FileHelper
        |
        +--planetj.helpers.XMLHelper

public class XMLHelper
extends FileHelper

Extensible Markup Language This class will assist in creating XML files.

Creation date: (1/21/2002 6:05:48 PM)


Method Summary
 StringBuffer generateXMLFile(IXMLObject pXMLObject, XMLFileDescriptor pXMLFileDescriptor)
          This method will return a StringBuffer in XML format according to pXMLObject.getXMLData().
 String getXMLHeader()
          Returns the XML header information needed at the top of every XML file.
static XMLFileDescriptor newXMLFileDescriptor()
          This is the only way to get an instance of a new XMLFileDescriptor Creation date: (1/21/2002 7:37:17 PM)
static XMLFileDescriptor newXMLFileDescriptor(FilePropertyGroup pProperties)
          This is the only way to get an instance of a new XMLFileDescriptor Creation date: (12/5/2001 3:15:14 PM)
static XMLHelper singleton()
          XMLHelper implements the singleton model so this method is the only way to get an instance of this class Creation date: (1/21/2002 6:07:47 PM)
 
Methods inherited from class planetj.helpers.FileHelper
getAS400, getFileSeparator, newFileDescriptor, newFileDescriptor, validateFileName, writeData
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

generateXMLFile

public StringBuffer generateXMLFile(IXMLObject pXMLObject,
                                    XMLFileDescriptor pXMLFileDescriptor)
                             throws CMException
This method will return a StringBuffer in XML format according to pXMLObject.getXMLData(). Creation date: (1/21/2002 6:45:00 PM)

CMException

getXMLHeader

public String getXMLHeader()
Returns the XML header information needed at the top of every XML file. The version number may need to change as time goes by Creation date: (2/7/2002 12:14:55 PM)


newXMLFileDescriptor

public static XMLFileDescriptor newXMLFileDescriptor()
This is the only way to get an instance of a new XMLFileDescriptor Creation date: (1/21/2002 7:37:17 PM)

Returns:
new XMLFileDescriptor()

newXMLFileDescriptor

public static XMLFileDescriptor newXMLFileDescriptor(FilePropertyGroup pProperties)
This is the only way to get an instance of a new XMLFileDescriptor Creation date: (12/5/2001 3:15:14 PM)

Returns:
new CSVFileDescriptor()

singleton

public static XMLHelper singleton()
XMLHelper implements the singleton model so this method is the only way to get an instance of this class Creation date: (1/21/2002 6:07:47 PM)

Returns:
planetj.helpers.XMLHelper mSingleton, an instance of this Class