public static enum ModbusIpDataSourceVO.TransportType extends java.lang.Enum<ModbusIpDataSourceVO.TransportType>
Enum Constant and Description |
---|
TCP |
TCP_KEEP_ALIVE |
TCP_LISTENER |
UDP |
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
key |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getKey() |
static java.util.List<java.lang.String> |
getTypeList() |
static ModbusIpDataSourceVO.TransportType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ModbusIpDataSourceVO.TransportType |
valueOfIgnoreCase(java.lang.String text) |
static ModbusIpDataSourceVO.TransportType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModbusIpDataSourceVO.TransportType TCP
public static final ModbusIpDataSourceVO.TransportType TCP_KEEP_ALIVE
public static final ModbusIpDataSourceVO.TransportType UDP
public static final ModbusIpDataSourceVO.TransportType TCP_LISTENER
public static ModbusIpDataSourceVO.TransportType[] values()
for (ModbusIpDataSourceVO.TransportType c : ModbusIpDataSourceVO.TransportType.values()) System.out.println(c);
public static ModbusIpDataSourceVO.TransportType 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 static ModbusIpDataSourceVO.TransportType valueOfIgnoreCase(java.lang.String text)
public static java.util.List<java.lang.String> getTypeList()
public java.lang.String getKey()