public class XmlHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
XML_EOL
End-of-line string used in serialized XML.
|
Constructor and Description |
---|
XmlHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
appendSerializedAttributes(java.lang.StringBuffer buf,
java.lang.String prefix,
java.util.Properties attributeProperties)
Appends an XML-string with serialized configuration attributes to the specified buffer.
|
static java.lang.String |
getSerializedAttributes(java.lang.String prefix,
java.util.Properties attributeProperties)
Returns an XML-string with serialized configuration attributes.
|
public static final java.lang.String XML_EOL
public static java.lang.String getSerializedAttributes(java.lang.String prefix, java.util.Properties attributeProperties)
AttributeContainer
attributes.prefix
- the line prefix (ie indent) or null for no prefixattributeProperties
- the properties object holding attributes to be serialized
(null-safe)public static void appendSerializedAttributes(java.lang.StringBuffer buf, java.lang.String prefix, java.util.Properties attributeProperties)
AttributeContainer
attributes.buf
- the string buffer to append toprefix
- the line prefix (ie indent) or null for no prefixattributeProperties
- the properties object holding attributes to be serialized
(null-safe)(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30