Package jmri
Enum LocoAddress.Protocol
- java.lang.Object
-
- java.lang.Enum<LocoAddress.Protocol>
-
- jmri.LocoAddress.Protocol
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<LocoAddress.Protocol>
- Enclosing interface:
- LocoAddress
public static enum LocoAddress.Protocol extends java.lang.Enum<LocoAddress.Protocol>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.String
peopleName
(package private) java.lang.String
shortName
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LocoAddress.Protocol
getByPeopleName(java.lang.String pName)
static LocoAddress.Protocol
getByShortName(java.lang.String shName)
java.lang.String
getPeopleName()
java.lang.String
getShortName()
static LocoAddress.Protocol
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static LocoAddress.Protocol[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DCC_SHORT
public static final LocoAddress.Protocol DCC_SHORT
-
DCC_LONG
public static final LocoAddress.Protocol DCC_LONG
-
DCC
public static final LocoAddress.Protocol DCC
-
SELECTRIX
public static final LocoAddress.Protocol SELECTRIX
-
MOTOROLA
public static final LocoAddress.Protocol MOTOROLA
-
MFX
public static final LocoAddress.Protocol MFX
-
M4
public static final LocoAddress.Protocol M4
-
OPENLCB
public static final LocoAddress.Protocol OPENLCB
-
LGB
public static final LocoAddress.Protocol LGB
-
-
Field Detail
-
shortName
java.lang.String shortName
-
peopleName
java.lang.String peopleName
-
-
Method Detail
-
values
public static LocoAddress.Protocol[] 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 (LocoAddress.Protocol c : LocoAddress.Protocol.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LocoAddress.Protocol 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
-
getShortName
public java.lang.String getShortName()
-
getPeopleName
public java.lang.String getPeopleName()
-
getByShortName
public static LocoAddress.Protocol getByShortName(java.lang.String shName)
-
getByPeopleName
public static LocoAddress.Protocol getByPeopleName(java.lang.String pName)
-
-