public final class XMLUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
appendAttributes(IBuffer result,
java.util.Properties attributes)
Appends the attributes to result.
|
static java.lang.String |
escape(java.lang.String input) |
static java.lang.String |
extractComment(java.lang.String tag,
java.util.Properties properties) |
static java.lang.String |
xml(java.lang.String indent,
java.lang.String name,
java.lang.String content,
java.util.Properties attributes)
Generate tag.
|
static void |
xmlClose(IBuffer result,
java.lang.String indent,
java.lang.String tag,
java.lang.String comment) |
static void |
xmlOpen(IBuffer result,
java.lang.String indent,
java.lang.String tag,
java.util.Properties attributes) |
static void |
xmlOpen(IBuffer result,
java.lang.String indent,
java.lang.String tag,
java.util.Properties attributes,
boolean noNewLine) |
static void |
xmlOptional(IBuffer result,
java.lang.String sp,
java.lang.String elementName,
java.lang.Boolean value,
java.util.Properties attributes) |
static void |
xmlOptional(IBuffer result,
java.lang.String sp,
java.lang.String elementName,
java.lang.String value,
java.util.Properties attributes) |
static void |
xmlRequired(IBuffer result,
java.lang.String sp,
java.lang.String elementName,
java.lang.String value,
java.util.Properties attributes) |
public static java.lang.String xml(java.lang.String indent, java.lang.String name, java.lang.String content, java.util.Properties attributes)
name
- name of the tagcontent
- content for this tag (or null)attributes
- tag attributes (or null)public static java.lang.String extractComment(java.lang.String tag, java.util.Properties properties)
public static void xmlOptional(IBuffer result, java.lang.String sp, java.lang.String elementName, java.lang.Boolean value, java.util.Properties attributes)
public static void xmlOptional(IBuffer result, java.lang.String sp, java.lang.String elementName, java.lang.String value, java.util.Properties attributes)
public static void xmlRequired(IBuffer result, java.lang.String sp, java.lang.String elementName, java.lang.String value, java.util.Properties attributes)
public static void xmlOpen(IBuffer result, java.lang.String indent, java.lang.String tag, java.util.Properties attributes)
public static void appendAttributes(IBuffer result, java.util.Properties attributes)
result
- the buffer to append attributes to.attributes
- the attributes to append (may be null).public static void xmlOpen(IBuffer result, java.lang.String indent, java.lang.String tag, java.util.Properties attributes, boolean noNewLine)
public static void xmlClose(IBuffer result, java.lang.String indent, java.lang.String tag, java.lang.String comment)
public static java.lang.String escape(java.lang.String input)