Package org.forgerock.api.jackson
Class CrestAnySchema
java.lang.Object
com.fasterxml.jackson.module.jsonSchema.JsonSchema
com.fasterxml.jackson.module.jsonSchema.types.SimpleTypeSchema
com.fasterxml.jackson.module.jsonSchema.types.AnySchema
org.forgerock.api.jackson.CrestAnySchema
- All Implemented Interfaces:
WithExampleSchema<Object>
public class CrestAnySchema
extends com.fasterxml.jackson.module.jsonSchema.types.AnySchema
implements WithExampleSchema<Object>
An extension to the Jackson
AnySchema
that includes the custom CREST JSON Schema attributes.-
Field Summary
Fields inherited from class com.fasterxml.jackson.module.jsonSchema.types.SimpleTypeSchema
defaultdefault, links, pathStart, title
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGetsexample
JSON Schema field.void
setErrorOnWritePolicyFailure
(Boolean errorOnWritePolicyFailure) void
setExample
(String example) Setsexample
JSON Schema field.void
setPropertyOrder
(Integer order) void
setReadPolicy
(ReadPolicy readPolicy) void
setReturnOnDemand
(Boolean returnOnDemand) void
setWritePolicy
(WritePolicy policy) void
Methods inherited from class com.fasterxml.jackson.module.jsonSchema.types.AnySchema
asAnySchema, equals, getType, isAnySchema
Methods inherited from class com.fasterxml.jackson.module.jsonSchema.types.SimpleTypeSchema
_equals, asSimpleTypeSchema, getDefault, getLinks, getPathStart, getTitle, isSimpleTypeSchema, setDefault, setLinks, setPathStart, setTitle
Methods inherited from class com.fasterxml.jackson.module.jsonSchema.JsonSchema
_equals, arraysEqual, asArraySchema, asBooleanSchema, asContainerSchema, asContainerTypeSchema, asIntegerSchema, asNullSchema, asNumberSchema, asObjectSchema, asStringSchema, asUnionTypeSchema, asValueSchemaSchema, asValueTypeSchema, enrichWithBeanProperty, equals, get$ref, get$schema, getDescription, getDisallow, getExtends, getId, getReadonly, getRequired, isArraySchema, isBooleanSchema, isContainerTypeSchema, isIntegerSchema, isNullSchema, isNumberSchema, isObjectSchema, isStringSchema, isUnionTypeSchema, isValueTypeSchema, minimalForFormat, set$ref, set$schema, setDescription, setDisallow, setExtends, setId, setReadonly, setRequired
-
Constructor Details
-
CrestAnySchema
public CrestAnySchema()
-
-
Method Details
-
getWritePolicy
-
setWritePolicy
-
getReadPolicy
-
setReadPolicy
-
getErrorOnWritePolicyFailure
-
setErrorOnWritePolicyFailure
-
getReturnOnDemand
-
setReturnOnDemand
-
getPropertyOrder
-
setPropertyOrder
-
validate
- Throws:
javax.validation.ValidationException
-
getExample
Description copied from interface:WithExampleSchema
Getsexample
JSON Schema field.- Specified by:
getExample
in interfaceWithExampleSchema<Object>
- Returns:
- The example value, or null if not defined.
-
setExample
Description copied from interface:WithExampleSchema
Setsexample
JSON Schema field.- Specified by:
setExample
in interfaceWithExampleSchema<Object>
- Parameters:
example
- The example value.- Throws:
IOException
- When the type of schema cannot be parsed from the String value.
-