Package org.forgerock.api.models
Class Patch
java.lang.Object
org.forgerock.api.models.Operation
org.forgerock.api.models.Patch
Class that represents the Patch operation type in API descriptor.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builder to help construct the Patch. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
allocateToResource
(Resource.Builder resourceBuilder) Allocates the Patch operation type to the given Resource Builder.boolean
static Patch
fromAnnotation
(Patch patch, ApiDescription descriptor, Class<?> relativeType) Builds a Patch object from the data stored in the annotation.Getter for supported Patch operations.int
hashCode()
static Patch.Builder
patch()
Creates a new builder for Patch.Methods inherited from class org.forgerock.api.models.Operation
getApiErrors, getDescription, getParameters, getStability, getSupportedLocales
-
Method Details
-
getOperations
Getter for supported Patch operations.- Returns:
- Supported Patch operations
-
equals
-
hashCode
public int hashCode() -
patch
Creates a new builder for Patch.- Returns:
- New builder instance
-
allocateToResource
Allocates the Patch operation type to the given Resource Builder.- Specified by:
allocateToResource
in classOperation
- Parameters:
resourceBuilder
- - Resource Builder to add the operation
-
fromAnnotation
Builds a Patch object from the data stored in the annotation.- Parameters:
patch
- Patch annotation that holds the datadescriptor
- The root descriptor to add definitions to.relativeType
- The type relative to which schema resources should be resolved.- Returns:
- Patch instance
-