Package com.ethlo.jsons2xsd
Enum XsdSimpleType
- java.lang.Object
-
- java.lang.Enum<XsdSimpleType>
-
- com.ethlo.jsons2xsd.XsdSimpleType
-
- All Implemented Interfaces:
Serializable,Comparable<XsdSimpleType>
public enum XsdSimpleType extends Enum<XsdSimpleType>
-
-
Field Summary
Fields Modifier and Type Field Description static StringBOOLEAN_VALUEstatic StringDATE_VALUEstatic StringDATETIME_VALUEstatic StringDECIMAL_VALUEstatic StringINT_VALUEstatic StringLONG_VALUEstatic StringSTRING_VALUEstatic StringTIME_VALUE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringvalue()static XsdSimpleTypevalueOf(String name)Returns the enum constant of this type with the specified name.static XsdSimpleType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRING
public static final XsdSimpleType STRING
-
INT
public static final XsdSimpleType INT
-
LONG
public static final XsdSimpleType LONG
-
BOOLEAN
public static final XsdSimpleType BOOLEAN
-
DATE
public static final XsdSimpleType DATE
-
TIME
public static final XsdSimpleType TIME
-
DATE_TIME
public static final XsdSimpleType DATE_TIME
-
DECIMAL
public static final XsdSimpleType DECIMAL
-
-
Field Detail
-
STRING_VALUE
public static final String STRING_VALUE
- See Also:
- Constant Field Values
-
INT_VALUE
public static final String INT_VALUE
- See Also:
- Constant Field Values
-
LONG_VALUE
public static final String LONG_VALUE
- See Also:
- Constant Field Values
-
BOOLEAN_VALUE
public static final String BOOLEAN_VALUE
- See Also:
- Constant Field Values
-
DATE_VALUE
public static final String DATE_VALUE
- See Also:
- Constant Field Values
-
DATETIME_VALUE
public static final String DATETIME_VALUE
- See Also:
- Constant Field Values
-
DECIMAL_VALUE
public static final String DECIMAL_VALUE
- See Also:
- Constant Field Values
-
TIME_VALUE
public static final String TIME_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static XsdSimpleType[] 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 (XsdSimpleType c : XsdSimpleType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static XsdSimpleType 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()
-
-