More information


de.spieleck.pcs.xml
Interface XmlProducer

All Known Implementing Classes:
XmlProducerBase

public interface XmlProducer

This interface provides methods for creating XML out of Objects


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
 java.lang.String toXmlString(java.lang.Object o)
          converts the given Object to an Xml String.
 java.lang.String toXmlString(java.lang.Object[] o)
          converts the given Objects to an Xml String.
 java.lang.String toXmlString(java.lang.Object[] o, boolean versionInfo)
          converts the given Objects to an Xml String.
 java.lang.String toXmlString(java.lang.Object o, boolean versionInfo)
          converts the given Object to an Xml String.
 

Method Detail

toXmlString

public 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
Parameters:
o - Object to convert

toXmlString

public 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
Parameters:
o - Object to convert
versionInfo - indicates whether the returned Xml should contain a version header or not

toXmlString

public 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
Parameters:
o - Objects to convert

toXmlString

public 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
Parameters:
o - Objects to convert
versionInfo - indicates whether the returned Xml should contain a version header or not

getVersion

public java.lang.String getVersion()
returns the version of the created Xml as a String

setVersion

public void setVersion(java.lang.String version)
sets the version of the created Xml

More information