Package jmri.jmrit.logixng
Enum NamedBeanType
- java.lang.Object
-
- java.lang.Enum<NamedBeanType>
-
- jmri.jmrit.logixng.NamedBeanType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<NamedBeanType>
public enum NamedBeanType extends java.lang.Enum<NamedBeanType>
Defines types of NamedBeans, for example Turnout and Light.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
NamedBeanType.CreateBean
static interface
NamedBeanType.DeleteBean
-
Enum Constant Summary
Enum Constants Enum Constant Description Block
EntryExit
GlobalVariable
Light
Memory
OBlock
Reporter
Sensor
SignalHead
SignalMast
Turnout
Warrant
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<? extends NamedBean>
getClazz()
NamedBeanType.CreateBean
getCreateBean()
NamedBeanType.DeleteBean
getDeleteBean()
Manager<? extends NamedBean>
getManager()
java.lang.String
getName(boolean plural)
java.lang.String
getPropertyName()
static void
reset()
java.lang.String
toString()
static NamedBeanType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static NamedBeanType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Block
public static final NamedBeanType Block
-
GlobalVariable
public static final NamedBeanType GlobalVariable
-
EntryExit
public static final NamedBeanType EntryExit
-
Light
public static final NamedBeanType Light
-
Memory
public static final NamedBeanType Memory
-
OBlock
public static final NamedBeanType OBlock
-
Reporter
public static final NamedBeanType Reporter
-
Sensor
public static final NamedBeanType Sensor
-
SignalHead
public static final NamedBeanType SignalHead
-
SignalMast
public static final NamedBeanType SignalMast
-
Turnout
public static final NamedBeanType Turnout
-
Warrant
public static final NamedBeanType Warrant
-
-
Method Detail
-
values
public static NamedBeanType[] 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 (NamedBeanType c : NamedBeanType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NamedBeanType 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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<NamedBeanType>
-
getName
public java.lang.String getName(boolean plural)
-
getPropertyName
public java.lang.String getPropertyName()
-
getManager
public Manager<? extends NamedBean> getManager()
-
getCreateBean
public NamedBeanType.CreateBean getCreateBean()
-
getDeleteBean
public NamedBeanType.DeleteBean getDeleteBean()
-
reset
public static void reset()
-
-