public enum FieldRole extends Enum<FieldRole>
Enum Constant and Description |
---|
ROLE_ARRAY_ELEMENT
Field is to be treated as the element of an array.
|
ROLE_COLLECTION_ELEMENT
Field is to be treated as the element of a collection.
|
ROLE_FIELD
Field is a reference to another (persistable) object.
|
ROLE_INDEX
Field is to be treated as an ordering or index in a List.
|
ROLE_MAP_KEY
Field is to be treated as the key of a map.
|
ROLE_MAP_VALUE
Field is to be treated as the value of a map.
|
ROLE_NONE
No role defined for this field.
|
ROLE_OWNER
Field is the owner of a relation.
|
ROLE_PERSISTABLE_RELATION
Field is to be treated as the relation to a persistable (via join table).
|
Modifier and Type | Method and Description |
---|---|
static FieldRole |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FieldRole[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FieldRole ROLE_NONE
public static final FieldRole ROLE_OWNER
public static final FieldRole ROLE_FIELD
public static final FieldRole ROLE_COLLECTION_ELEMENT
public static final FieldRole ROLE_ARRAY_ELEMENT
public static final FieldRole ROLE_MAP_KEY
public static final FieldRole ROLE_MAP_VALUE
public static final FieldRole ROLE_INDEX
public static final FieldRole ROLE_PERSISTABLE_RELATION
public static FieldRole[] values()
for (FieldRole c : FieldRole.values()) System.out.println(c);
public static FieldRole 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 nullCopyright © 2019. All rights reserved.