| java.lang.Object org.apache.ojb.broker.util.XmlHelper
XmlHelper | public class XmlHelper (Code) | | Simple helper class with static methods for common XML-handling tasks.
version: CVS $Id: XmlHelper.java,v 1.1.2.2 2005/12/21 22:27:47 tomdz Exp $ since: OJB 1.0.4 |
Field Summary | |
final public static String | XML_EOL End-of-line string used in serialized XML. |
XML_EOL | final public static String XML_EOL(Code) | | End-of-line string used in serialized XML.
|
appendSerializedAttributes | public static void appendSerializedAttributes(StringBuffer buf, String prefix, Properties attributeProperties)(Code) | | Appends an XML-string with serialized configuration attributes to the specified buffer.
Used when serializing
org.apache.ojb.broker.metadata.AttributeContainer attributes.
Parameters: buf - the string buffer to append to Parameters: prefix - the line prefix (ie indent) or null for no prefix Parameters: attributeProperties - the properties object holding attributes to be serialized(null-safe) |
getSerializedAttributes | public static String getSerializedAttributes(String prefix, Properties attributeProperties)(Code) | | Returns an XML-string with serialized configuration attributes.
Used when serializing
org.apache.ojb.broker.metadata.AttributeContainer attributes.
Parameters: prefix - the line prefix (ie indent) or null for no prefix Parameters: attributeProperties - the properties object holding attributes to be serialized(null-safe) XML-string with serialized configuration attributes (never null) |
|
|