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
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder to help construct the Patch. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidallocateToResource(Resource.Builder resourceBuilder) Allocates the Patch operation type to the given Resource Builder.booleanstatic PatchfromAnnotation(Patch patch, ApiDescription descriptor, Class<?> relativeType) Builds a Patch object from the data stored in the annotation.Getter for supported Patch operations.inthashCode()static Patch.Builderpatch()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:
allocateToResourcein 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
-