Enum DecoderTypeType
- java.lang.Object
-
- java.lang.Enum<DecoderTypeType>
-
- org.bidib.jbidibc.decoder.schema.commontypes.DecoderTypeType
-
- All Implemented Interfaces:
Serializable,Comparable<DecoderTypeType>
public enum DecoderTypeType extends Enum<DecoderTypeType>
<p>Java class for DecoderTypeType. <p>The following schema fragment specifies the expected content contained within this class. <pre> <simpleType name="DecoderTypeType"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="loco"/> <enumeration value="loco-sound"/> <enumeration value="function"/> <enumeration value="car"/> <enumeration value="susi"/> <enumeration value="susi-sound"/> <enumeration value="standardAccessory"/> <enumeration value="extendedAccessory"/> </restriction> </simpleType> </pre>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CAREXTENDED_ACCESSORYFUNCTIONLOCOLOCO_SOUNDSTANDARD_ACCESSORYSUSISUSI_SOUND
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DecoderTypeTypefromValue(String v)Stringvalue()static DecoderTypeTypevalueOf(String name)Returns the enum constant of this type with the specified name.static DecoderTypeType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOCO
public static final DecoderTypeType LOCO
-
LOCO_SOUND
public static final DecoderTypeType LOCO_SOUND
-
FUNCTION
public static final DecoderTypeType FUNCTION
-
CAR
public static final DecoderTypeType CAR
-
SUSI
public static final DecoderTypeType SUSI
-
SUSI_SOUND
public static final DecoderTypeType SUSI_SOUND
-
STANDARD_ACCESSORY
public static final DecoderTypeType STANDARD_ACCESSORY
-
EXTENDED_ACCESSORY
public static final DecoderTypeType EXTENDED_ACCESSORY
-
-
Method Detail
-
values
public static DecoderTypeType[] 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 (DecoderTypeType c : DecoderTypeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DecoderTypeType 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()
-
fromValue
public static DecoderTypeType fromValue(String v)
-
-