public static enum Vocabulary.LinkTo.ResourceType extends java.lang.Enum<Vocabulary.LinkTo.ResourceType>
Vocabulary.LinkTo
.Enum Constant and Description |
---|
CHILD_COLLECTION
This resource type denotes that the linked resource is a
collection whose parent is the resource being linked.
|
GENERIC_PARENT_COLLECTION
This resource type denotes that the linked resource is a
collection whose "generic" parent is the ID being returned.
|
SINGLE
This resource type denotes that the linked resource is a single
one and the field is returning its ID.
|
Modifier and Type | Method and Description |
---|---|
static Vocabulary.LinkTo.ResourceType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Vocabulary.LinkTo.ResourceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Vocabulary.LinkTo.ResourceType CHILD_COLLECTION
This type should only be used on fields returning the resource's ID.
public static final Vocabulary.LinkTo.ResourceType GENERIC_PARENT_COLLECTION
GenericParentId
public static final Vocabulary.LinkTo.ResourceType SINGLE
public static Vocabulary.LinkTo.ResourceType[] values()
for (Vocabulary.LinkTo.ResourceType c : Vocabulary.LinkTo.ResourceType.values()) System.out.println(c);
public static Vocabulary.LinkTo.ResourceType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null