- All Implemented Interfaces:
Serializable,Comparable<XML>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddAttribute(StringBuilder builder, String name, String value) static Stringstatic Stringstatic XMLReturns the enum constant of this class with the specified name.static XML[]values()Returns an array containing the constants of this enum class, in the order they are declared.static voidwriteClosingTag(Writer writer, String name) static voidwriteOpeningAndClosingTag(Writer writer, String name, String text) static voidwriteOpeningTag(Writer writer, String name) static voidwriteOpeningTag(Writer writer, String name, String attributes) static voidwriteSelfClosingTag(Writer writer, String name) static voidwriteSelfClosingTag(Writer writer, String name, String attributes) static voidstatic void
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
attributesToXml
public static String attributesToXml(List<Field> fields, Object o, Function<String, String> escaper) throws IllegalArgumentException, IllegalAccessException -
attributesToXml
-
addAttribute
-
writeTag
- Throws:
IOException
-
writeTag
public static void writeTag(Writer writer, String name, String attributes, String text) throws IOException - Throws:
IOException
-
writeOpeningAndClosingTag
public static void writeOpeningAndClosingTag(Writer writer, String name, String text) throws IOException - Throws:
IOException
-
writeOpeningTag
- Throws:
IOException
-
writeOpeningTag
public static void writeOpeningTag(Writer writer, String name, String attributes) throws IOException - Throws:
IOException
-
writeClosingTag
- Throws:
IOException
-
writeSelfClosingTag
- Throws:
IOException
-
writeSelfClosingTag
public static void writeSelfClosingTag(Writer writer, String name, String attributes) throws IOException - Throws:
IOException
-