More information


de.spieleck.pcs.xml
Class XmlProducerBase

java.lang.Object
  |
  +--de.spieleck.pcs.xml.XmlProducerBase
All Implemented Interfaces:
XmlProducer

public abstract class XmlProducerBase
extends java.lang.Object
implements XmlProducer

Abstract base class for XmlProducer


Constructor Summary
XmlProducerBase()
          Creates a new instance of XmlProducerBase using the following version <?
 
Method Summary
 java.lang.String getVersion()
          returns the version of the created Xml as a String
 void setVersion(java.lang.String version)
          sets the version of the created Xml
abstract  java.lang.String toXmlString(java.lang.Object o)
          converts the given Object to an Xml String.
abstract  java.lang.String toXmlString(java.lang.Object[] o)
          converts the given Objects to an Xml String.
abstract  java.lang.String toXmlString(java.lang.Object[] o, boolean versionInfo)
          converts the given Objects to an Xml String.
abstract  java.lang.String toXmlString(java.lang.Object o, boolean versionInfo)
          converts the given Object to an Xml String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlProducerBase

public XmlProducerBase()
Creates a new instance of XmlProducerBase using the following version <?xml version="1.0" encoding="ISO-8859-1" ?>"
Method Detail

getVersion

public java.lang.String getVersion()
returns the version of the created Xml as a String
Specified by:
getVersion in interface XmlProducer

setVersion

public void setVersion(java.lang.String version)
sets the version of the created Xml
Specified by:
setVersion in interface XmlProducer

toXmlString

public abstract java.lang.String toXmlString(java.lang.Object[] o)
                                      throws XmlProducingException
converts the given Objects to an Xml String. The returned Xml contains a version header
Specified by:
toXmlString in interface XmlProducer
Parameters:
o - Objects to convert

toXmlString

public abstract java.lang.String toXmlString(java.lang.Object o)
                                      throws XmlProducingException
converts the given Object to an Xml String. The returned Xml contains a version header
Specified by:
toXmlString in interface XmlProducer
Parameters:
o - Object to convert

toXmlString

public abstract java.lang.String toXmlString(java.lang.Object[] o,
                                             boolean versionInfo)
                                      throws XmlProducingException
converts the given Objects to an Xml String. The returned Xml contains a version header if versionInfo is true
Specified by:
toXmlString in interface XmlProducer
Parameters:
o - Objects to convert
versionInfo - indicates whether the returned Xml should contain a version header or not

toXmlString

public abstract java.lang.String toXmlString(java.lang.Object o,
                                             boolean versionInfo)
                                      throws XmlProducingException
converts the given Object to an Xml String. The returned Xml contains a version header if versionInfo is true
Specified by:
toXmlString in interface XmlProducer
Parameters:
o - Object to convert
versionInfo - indicates whether the returned Xml should contain a version header or not

More information