public enum ConstraintField extends Enum<ConstraintField> implements FieldType
Modifier and Type | Field and Description |
---|---|
static int |
MAX_VALUE |
Modifier and Type | Method and Description |
---|---|
DataType |
getDataType()
Retrieve the data type of this field.
|
FieldTypeClass |
getFieldTypeClass()
Retrieve an enum representing the type of entity to which this field belongs.
|
static ConstraintField |
getInstance(int type)
This method takes the integer enumeration of a constraint field
and returns an appropriate class instance.
|
String |
getName()
Retrieve the name of this field using the default locale.
|
String |
getName(Locale locale)
Retrieve the name of this field using the supplied locale.
|
FieldType |
getUnitsType()
Retrieve the associated units field, if any.
|
int |
getValue()
This method is used to retrieve the int value (not the ordinal)
associated with an enum instance.
|
String |
toString()
Retrieves the string representation of this instance.
|
static ConstraintField |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConstraintField[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConstraintField UNIQUE_ID
public static final ConstraintField TASK1
public static final ConstraintField TASK2
public static ConstraintField[] values()
for (ConstraintField c : ConstraintField.values()) System.out.println(c);
public static ConstraintField valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic FieldTypeClass getFieldTypeClass()
FieldType
getFieldTypeClass
in interface FieldType
public String getName()
FieldType
public String getName(Locale locale)
FieldType
public int getValue()
MpxjEnum
public DataType getDataType()
FieldType
getDataType
in interface FieldType
public FieldType getUnitsType()
FieldType
getUnitsType
in interface FieldType
public String toString()
toString
in class Enum<ConstraintField>
public static ConstraintField getInstance(int type)
type
- integer constraint field enumerationCopyright © 2000–2024 Packwood Software. All rights reserved.