Package jmri
Enum Conditional.ItemType
- java.lang.Object
-
- java.lang.Enum<Conditional.ItemType>
-
- jmri.Conditional.ItemType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Conditional.ItemType>
- Enclosing interface:
- Conditional
public static enum Conditional.ItemType extends java.lang.Enum<Conditional.ItemType>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIntValue()
static Conditional.ItemType
getOperatorFromIntValue(int itemTypeInt)
static java.util.List<Conditional.ItemType>
getStateVarList()
java.lang.String
toString()
static Conditional.ItemType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Conditional.ItemType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final Conditional.ItemType NONE
-
SENSOR
public static final Conditional.ItemType SENSOR
-
TURNOUT
public static final Conditional.ItemType TURNOUT
-
LIGHT
public static final Conditional.ItemType LIGHT
-
SIGNALHEAD
public static final Conditional.ItemType SIGNALHEAD
-
SIGNALMAST
public static final Conditional.ItemType SIGNALMAST
-
MEMORY
public static final Conditional.ItemType MEMORY
-
CONDITIONAL
public static final Conditional.ItemType CONDITIONAL
-
LOGIX
public static final Conditional.ItemType LOGIX
-
WARRANT
public static final Conditional.ItemType WARRANT
-
CLOCK
public static final Conditional.ItemType CLOCK
-
OBLOCK
public static final Conditional.ItemType OBLOCK
-
ENTRYEXIT
public static final Conditional.ItemType ENTRYEXIT
-
AUDIO
public static final Conditional.ItemType AUDIO
-
SCRIPT
public static final Conditional.ItemType SCRIPT
-
OTHER
public static final Conditional.ItemType OTHER
-
-
Method Detail
-
values
public static Conditional.ItemType[] 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 (Conditional.ItemType c : Conditional.ItemType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Conditional.ItemType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getStateVarList
public static java.util.List<Conditional.ItemType> getStateVarList()
-
getIntValue
public int getIntValue()
-
getOperatorFromIntValue
public static Conditional.ItemType getOperatorFromIntValue(int itemTypeInt)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<Conditional.ItemType>
-
-