Enum FileType
- java.lang.Object
-
- java.lang.Enum<FileType>
-
- org.apache.plc4x.java.abeth.types.FileType
-
- All Implemented Interfaces:
Serializable,Comparable<FileType>
public enum FileType extends Enum<FileType>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PlcValueTypegetPlcValueType()shortgetTypeCode()static FileTypevalueOf(short code)Returns the enum constant of this type with the specified name.static FileTypevalueOf(String name)Returns the enum constant of this type with the specified name.static FileType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STATUS
public static final FileType STATUS
-
BIT
public static final FileType BIT
-
TIMER
public static final FileType TIMER
-
COUNTER
public static final FileType COUNTER
-
CONTROL
public static final FileType CONTROL
-
INTEGER
public static final FileType INTEGER
-
FLOAT
public static final FileType FLOAT
-
OUTPUT
public static final FileType OUTPUT
-
INPUT
public static final FileType INPUT
-
STRING
public static final FileType STRING
-
ASCII
public static final FileType ASCII
-
BCD
public static final FileType BCD
-
WORD
public static final FileType WORD
-
DWORD
public static final FileType DWORD
-
SINGLEBIT
public static final FileType SINGLEBIT
-
-
Method Detail
-
values
public static FileType[] 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 (FileType c : FileType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileType 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
-
getTypeCode
public short getTypeCode()
-
getPlcValueType
public PlcValueType getPlcValueType()
-
valueOf
public static FileType valueOf(short code)
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:
code- 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
-
-