Package com.ethlo.jsons2xsd
Enum JsonSimpleType
- java.lang.Object
-
- java.lang.Enum<JsonSimpleType>
-
- com.ethlo.jsons2xsd.JsonSimpleType
-
- All Implemented Interfaces:
Serializable,Comparable<JsonSimpleType>
public enum JsonSimpleType extends Enum<JsonSimpleType>
-
-
Field Summary
Fields Modifier and Type Field Description static StringBOOLEAN_VALUEstatic StringINTEGER_VALUEstatic StringNUMBER_VALUEstatic StringSTRING_VALUE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringvalue()static JsonSimpleTypevalueOf(String name)Returns the enum constant of this type with the specified name.static JsonSimpleType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRING
public static final JsonSimpleType STRING
-
NUMBER
public static final JsonSimpleType NUMBER
-
BOOLEAN
public static final JsonSimpleType BOOLEAN
-
INTEGER
public static final JsonSimpleType INTEGER
-
-
Field Detail
-
STRING_VALUE
public static final String STRING_VALUE
- See Also:
- Constant Field Values
-
NUMBER_VALUE
public static final String NUMBER_VALUE
- See Also:
- Constant Field Values
-
BOOLEAN_VALUE
public static final String BOOLEAN_VALUE
- See Also:
- Constant Field Values
-
INTEGER_VALUE
public static final String INTEGER_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static JsonSimpleType[] 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 (JsonSimpleType c : JsonSimpleType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JsonSimpleType 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
-
value
public String value()
-
-