Joram 5.3.0

org.objectweb.joram.client.jms.admin
Class XmlSerializer

java.lang.Object
  extended by org.objectweb.joram.client.jms.admin.XmlSerializer

public class XmlSerializer
extends java.lang.Object

This class defines the methods for serializing an object to XML


Constructor Summary
XmlSerializer()
           
 
Method Summary
static java.lang.String indent(int indent)
          Return indent spaces.
static java.lang.String xmlAttribute(java.lang.String value, java.lang.String xmlTag)
          Return the xml representation of the specified attribute value
static java.lang.String xmlElement(java.lang.String value, java.lang.String xmlTag, int indent)
          Return the xml representation of the specified value with the root-element xmlTag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlSerializer

public XmlSerializer()
Method Detail

indent

public static java.lang.String indent(int indent)
Return indent spaces.

Parameters:
indent - number of indentation.
Returns:
the indent space string.

xmlElement

public static java.lang.String xmlElement(java.lang.String value,
                                          java.lang.String xmlTag,
                                          int indent)
Return the xml representation of the specified value with the root-element xmlTag

Parameters:
value - String value to represent in XML
xmlTag - tag of the root-element
indent - indent to use
Returns:
xml representation of the specified value

xmlAttribute

public static java.lang.String xmlAttribute(java.lang.String value,
                                            java.lang.String xmlTag)
Return the xml representation of the specified attribute value

Parameters:
value - String value to represent in XML
xmlTag - tag of the attribute
Returns:
xml representation of the specified value

Joram 5.3.0

Copyright © 2000 - 2009 Scalagent D.T. - All rights reserved