Class XmlSerializer
- java.lang.Object
-
- org.objectweb.joram.client.jms.admin.XmlSerializer
-
public class XmlSerializer extends Object
This class defines the methods for serializing an object to XML
-
-
Constructor Summary
Constructors Constructor Description XmlSerializer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringindent(int indent)Return indent spaces.static StringxmlAttribute(String value, String xmlTag)Return the xml representation of the specified attribute valuestatic StringxmlElement(String value, String xmlTag, int indent)Return the xml representation of the specified value with the root-element xmlTag
-
-
-
Method Detail
-
indent
public static String indent(int indent)
Return indent spaces.- Parameters:
indent- number of indentation.- Returns:
- the indent space string.
-
xmlElement
public static String xmlElement(String value, String xmlTag, int indent)
Return the xml representation of the specified value with the root-element xmlTag- Parameters:
value- String value to represent in XMLxmlTag- tag of the root-elementindent- indent to use- Returns:
- xml representation of the specified value
-
-