Package org.forgerock.api.models
Enum Resource.AnnotatedTypeVariant
- java.lang.Object
-
- java.lang.Enum<Resource.AnnotatedTypeVariant>
-
- org.forgerock.api.models.Resource.AnnotatedTypeVariant
-
- All Implemented Interfaces:
Serializable
,Comparable<Resource.AnnotatedTypeVariant>
- Enclosing class:
- Resource
public static enum Resource.AnnotatedTypeVariant extends Enum<Resource.AnnotatedTypeVariant>
The variant of the annotated type. Allows the annotation processing to make assumptions about what type of operations are expected from this context of the type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COLLECTION_RESOURCE_COLLECTION
A collection resource handler, collection endpoint (expect CAQ opererations).COLLECTION_RESOURCE_INSTANCE
A collection resource handler, instance endpoint (expect CRUDPA operations).REQUEST_HANDLER
A plain request handler (expects all operations).SINGLETON_RESOURCE
A singleton resource handler.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Resource.AnnotatedTypeVariant
valueOf(String name)
Returns the enum constant of this type with the specified name.static Resource.AnnotatedTypeVariant[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SINGLETON_RESOURCE
public static final Resource.AnnotatedTypeVariant SINGLETON_RESOURCE
A singleton resource handler. (expect RUDPA operations).
-
COLLECTION_RESOURCE_COLLECTION
public static final Resource.AnnotatedTypeVariant COLLECTION_RESOURCE_COLLECTION
A collection resource handler, collection endpoint (expect CAQ opererations).
-
COLLECTION_RESOURCE_INSTANCE
public static final Resource.AnnotatedTypeVariant COLLECTION_RESOURCE_INSTANCE
A collection resource handler, instance endpoint (expect CRUDPA operations).
-
REQUEST_HANDLER
public static final Resource.AnnotatedTypeVariant REQUEST_HANDLER
A plain request handler (expects all operations).
-
-
Method Detail
-
values
public static Resource.AnnotatedTypeVariant[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Resource.AnnotatedTypeVariant c : Resource.AnnotatedTypeVariant.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Resource.AnnotatedTypeVariant valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-