public enum XML extends Enum<XML>
| Modifier and Type | Method and Description |
|---|---|
static void |
addAttribute(StringBuilder builder,
String name,
String value) |
static String |
attributesToXml(List<Field> fields,
Object o,
boolean shouldEncodeUTF8) |
static String |
attributesToXml(Map<String,String> map,
boolean shouldEncodeUTF8) |
static String |
escapeXml(String str,
boolean encodeUTF8) |
static String |
unescapeXml(String text) |
static XML |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static XML[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static void |
writeClosingTag(Writer writer,
String name) |
static void |
writeOpeningAndClosingTag(Writer writer,
String name,
String text) |
static void |
writeOpeningTag(Writer writer,
String name) |
static void |
writeOpeningTag(Writer writer,
String name,
String attributes) |
static void |
writeSelfClosingTag(Writer writer,
String name) |
static void |
writeSelfClosingTag(Writer writer,
String name,
String attributes) |
static void |
writeTag(Writer writer,
String name,
String text) |
static void |
writeTag(Writer writer,
String name,
String attributes,
String text) |
public static XML[] values()
for (XML c : XML.values()) System.out.println(c);
public static XML valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static String attributesToXml(List<Field> fields, Object o, boolean shouldEncodeUTF8) throws IllegalArgumentException, IllegalAccessException
public static String attributesToXml(Map<String,String> map, boolean shouldEncodeUTF8)
public static void addAttribute(StringBuilder builder, String name, String value)
public static void writeTag(Writer writer, String name, String text) throws IOException
IOExceptionpublic static void writeTag(Writer writer, String name, String attributes, String text) throws IOException
IOExceptionpublic static void writeOpeningAndClosingTag(Writer writer, String name, String text) throws IOException
IOExceptionpublic static void writeOpeningTag(Writer writer, String name) throws IOException
IOExceptionpublic static void writeOpeningTag(Writer writer, String name, String attributes) throws IOException
IOExceptionpublic static void writeClosingTag(Writer writer, String name) throws IOException
IOExceptionpublic static void writeSelfClosingTag(Writer writer, String name) throws IOException
IOExceptionpublic static void writeSelfClosingTag(Writer writer, String name, String attributes) throws IOException
IOExceptionCopyright © 2018. All rights reserved.