public enum UnitCodeType extends java.lang.Enum<UnitCodeType>
Java class for UnitCodeType.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="UnitCodeType"> <restriction base="{http://www.w3.org/2001/XMLSchema}token"> <enumeration value="kg"/> <enumeration value="lbs"/> <enumeration value="oz"/> <enumeration value="cm"/> <enumeration value="inches"/> <enumeration value="ft"/> <enumeration value="CustomCode"/> </restriction> </simpleType>
Enum Constant and Description |
---|
CM
Centimeter.
|
CUSTOM_CODE
Reserved for internal or future use.
|
FT
Feet.
|
INCHES
Inches.
|
KG
Kilogram.
|
LBS
Pounds.
|
OZ
Ounces
|
Modifier and Type | Method and Description |
---|---|
static UnitCodeType |
fromValue(java.lang.String v) |
java.lang.String |
value() |
static UnitCodeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UnitCodeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnitCodeType KG
public static final UnitCodeType LBS
public static final UnitCodeType OZ
public static final UnitCodeType CM
public static final UnitCodeType INCHES
public static final UnitCodeType FT
public static final UnitCodeType CUSTOM_CODE
public static UnitCodeType[] values()
for (UnitCodeType c : UnitCodeType.values()) System.out.println(c);
public static UnitCodeType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String value()
public static UnitCodeType fromValue(java.lang.String v)
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.