Package com.openinventor.inventor.fields
Enum SoField.FieldTypes
- java.lang.Object
-
- java.lang.Enum<SoField.FieldTypes>
-
- com.openinventor.inventor.fields.SoField.FieldTypes
-
- All Implemented Interfaces:
IntegerValuedEnum
,java.io.Serializable
,java.lang.Comparable<SoField.FieldTypes>
- Enclosing class:
- SoField
public static enum SoField.FieldTypes extends java.lang.Enum<SoField.FieldTypes> implements IntegerValuedEnum
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EVENT_IN
EVENT_OUT
EXPOSED_FIELD
FIELD__EVENTIN
INTERNAL_FIELD
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
Returns the integer value of the enum constant.static SoField.FieldTypes
valueOf(int val)
Returns the field type associated to the specified integer value of the enum constant.static SoField.FieldTypes
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SoField.FieldTypes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EVENT_IN
public static final SoField.FieldTypes EVENT_IN
-
EVENT_OUT
public static final SoField.FieldTypes EVENT_OUT
-
FIELD__EVENTIN
public static final SoField.FieldTypes FIELD__EVENTIN
-
INTERNAL_FIELD
public static final SoField.FieldTypes INTERNAL_FIELD
-
EXPOSED_FIELD
public static final SoField.FieldTypes EXPOSED_FIELD
-
-
Method Detail
-
values
public static SoField.FieldTypes[] 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 (SoField.FieldTypes c : SoField.FieldTypes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SoField.FieldTypes 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
-
getValue
public int getValue()
Description copied from interface:IntegerValuedEnum
Returns the integer value of the enum constant.- Specified by:
getValue
in interfaceIntegerValuedEnum
- Returns:
- the integer value of the enum constant.
-
valueOf
public static SoField.FieldTypes valueOf(int val)
Returns the field type associated to the specified integer value of the enum constant.- Parameters:
val
- integer value of the enum constant- Returns:
- the field type
-
-