Package com.github.underscore
Enum U.JsonToXmlMode
- java.lang.Object
-
- java.lang.Enum<U.JsonToXmlMode>
-
- com.github.underscore.U.JsonToXmlMode
-
- All Implemented Interfaces:
Serializable
,Comparable<U.JsonToXmlMode>
public static enum U.JsonToXmlMode extends Enum<U.JsonToXmlMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADD_ROOT
DEFINE_ROOT_NAME
FORCE_ATTRIBUTE_USAGE
REMOVE_ARRAY_ATTRIBUTE
REMOVE_ATTRIBUTES
REPLACE_EMPTY_STRING_WITH_EMPTY_VALUE
REPLACE_NULL_WITH_EMPTY_VALUE
-
Constructor Summary
Constructors Modifier Constructor Description private
JsonToXmlMode()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static U.JsonToXmlMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static U.JsonToXmlMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FORCE_ATTRIBUTE_USAGE
public static final U.JsonToXmlMode FORCE_ATTRIBUTE_USAGE
-
DEFINE_ROOT_NAME
public static final U.JsonToXmlMode DEFINE_ROOT_NAME
-
REPLACE_NULL_WITH_EMPTY_VALUE
public static final U.JsonToXmlMode REPLACE_NULL_WITH_EMPTY_VALUE
-
REPLACE_EMPTY_STRING_WITH_EMPTY_VALUE
public static final U.JsonToXmlMode REPLACE_EMPTY_STRING_WITH_EMPTY_VALUE
-
ADD_ROOT
public static final U.JsonToXmlMode ADD_ROOT
-
REMOVE_ARRAY_ATTRIBUTE
public static final U.JsonToXmlMode REMOVE_ARRAY_ATTRIBUTE
-
REMOVE_ATTRIBUTES
public static final U.JsonToXmlMode REMOVE_ATTRIBUTES
-
-
Method Detail
-
values
public static U.JsonToXmlMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (U.JsonToXmlMode c : U.JsonToXmlMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static U.JsonToXmlMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-