Package org.apache.fulcrum.intake.model
Enum Class FieldType
- All Implemented Interfaces:
Serializable
,Comparable<FieldType>
,Constable
Enum for valid field types.
- Author:
- Thomas Vandahl
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionabstract Field
<?> getInstance
(XmlField f, Group g) Create a specific field instance from its XML representationvalue()
Return the string valuestatic FieldType
Returns the enum constant of this class with the specified name.static FieldType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FIELD_BOOLEAN
-
FIELD_BIGDECIMAL
-
FIELD_INT
-
FIELD_FLOAT
-
FIELD_FILEITEM
Deprecated. -
FIELD_UPLOADPART
-
FIELD_STRING
-
FIELD_DATESTRING
-
FIELD_COMBOKEY
-
FIELD_DOUBLE
-
FIELD_SHORT
-
FIELD_LONG
-
FIELD_CUSTOM
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
value
Return the string value- Returns:
- a
String
value
-
getInstance
Create a specific field instance from its XML representation- Parameters:
f
- the XML objectg
- the group this field belongs to- Returns:
- a Field<?> instance
- Throws:
IntakeException
- if the field could not be created
-