public final class XMLUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
appendAttributes(StringBuffer result,
Properties attributes)
Appends the attributes to result.
|
static String |
escape(String input) |
static String |
extractComment(String tag,
Properties properties) |
static String |
xml(String indent,
String elementName,
String content,
Properties attributes) |
static void |
xmlClose(StringBuffer result,
String indent,
String tag,
String comment) |
static void |
xmlOpen(StringBuffer result,
String indent,
String tag,
Properties attributes) |
static void |
xmlOpen(StringBuffer result,
String indent,
String tag,
Properties attributes,
boolean noNewLine) |
static void |
xmlOptional(StringBuffer result,
String sp,
String elementName,
Boolean value,
Properties attributes) |
static void |
xmlOptional(StringBuffer result,
String sp,
String elementName,
String value,
Properties attributes) |
static void |
xmlRequired(StringBuffer result,
String sp,
String elementName,
String value,
Properties attributes) |
public static String xml(String indent, String elementName, String content, Properties attributes)
public static String extractComment(String tag, Properties properties)
public static void xmlOptional(StringBuffer result, String sp, String elementName, Boolean value, Properties attributes)
public static void xmlOptional(StringBuffer result, String sp, String elementName, String value, Properties attributes)
public static void xmlRequired(StringBuffer result, String sp, String elementName, String value, Properties attributes)
public static void xmlOpen(StringBuffer result, String indent, String tag, Properties attributes)
public static void appendAttributes(StringBuffer result, Properties attributes)
result
- the buffer to append attributes to.attributes
- the attributes to append (may be null).public static void xmlOpen(StringBuffer result, String indent, String tag, Properties attributes, boolean noNewLine)
public static void xmlClose(StringBuffer result, String indent, String tag, String comment)
Copyright © 2013. All Rights Reserved.