@Retention(value=RUNTIME)
@Target(value=METHOD)
public static @interface Vocabulary.LinkTo
resource()
.
The value resourceType()
can be used to differentiate between
links to single resources (Vocabulary.LinkTo.ResourceType.SINGLE
) and links to
collections (Vocabulary.LinkTo.ResourceType.CHILD_COLLECTION
).
Modifier and Type | Required Element and Description |
---|---|
java.lang.Class<? extends Identifier<?>> |
resource
The class of the resource being linked to.
|
Modifier and Type | Optional Element and Description |
---|---|
Vocabulary.LinkTo.ResourceType |
resourceType
The type of the resource being linked to.
|
public abstract java.lang.Class<? extends Identifier<?>> resource
Vocabulary.Type
.public abstract Vocabulary.LinkTo.ResourceType resourceType