Package org.forgerock.api.jackson
Class CrestObjectSchema
java.lang.Object
com.fasterxml.jackson.module.jsonSchema.JsonSchema
com.fasterxml.jackson.module.jsonSchema.types.SimpleTypeSchema
com.fasterxml.jackson.module.jsonSchema.types.ContainerTypeSchema
com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema
org.forgerock.api.jackson.CrestObjectSchema
- All Implemented Interfaces:
 WithExampleSchema<Map<String,Object>> 
public class CrestObjectSchema
extends com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema
implements WithExampleSchema<Map<String,Object>> 
An extension to the Jackson 
ObjectSchema that includes the custom CREST JSON Schema attributes.- 
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema
com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema.AdditionalProperties, com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema.Dependency, com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema.NoAdditionalProperties, com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema.SchemaAdditionalProperties, com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema.SchemaDependency, com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema.SimpleDependency - 
Field Summary
Fields inherited from class com.fasterxml.jackson.module.jsonSchema.types.ContainerTypeSchema
enums, oneOfFields inherited from class com.fasterxml.jackson.module.jsonSchema.types.SimpleTypeSchema
defaultdefault, links, pathStart, title - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionGetsexampleJSON Schema field.Gets read-only property.voidsetErrorOnWritePolicyFailure(Boolean errorOnWritePolicyFailure) voidsetExample(String example) SetsexampleJSON Schema field.voidsetPropertyOrder(Integer order) voidsetReadPolicy(ReadPolicy readPolicy) voidsetRequiredFields(Set<String> requiredFields) voidsetReturnOnDemand(Boolean returnOnDemand) voidsetWritePolicy(WritePolicy policy) voidMethods inherited from class com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema
_equals, addSchemaDependency, addSimpleDependency, asObjectSchema, equals, getAdditionalProperties, getDependencies, getPatternProperties, getProperties, getType, isObjectSchema, putOptionalProperty, putOptionalProperty, putPatternProperty, putProperty, putProperty, rejectAdditionalProperties, setAdditionalProperties, setDependencies, setPatternProperties, setPropertiesMethods inherited from class com.fasterxml.jackson.module.jsonSchema.types.ContainerTypeSchema
_equals, asContainerSchema, asContainerTypeSchema, getEnums, getOneOf, isContainerTypeSchema, setEnums, setOneOfMethods inherited from class com.fasterxml.jackson.module.jsonSchema.types.SimpleTypeSchema
_equals, asSimpleTypeSchema, getDefault, getLinks, getPathStart, getTitle, isSimpleTypeSchema, setDefault, setLinks, setPathStart, setTitleMethods inherited from class com.fasterxml.jackson.module.jsonSchema.JsonSchema
_equals, arraysEqual, asAnySchema, asArraySchema, asBooleanSchema, asIntegerSchema, asNullSchema, asNumberSchema, asStringSchema, asUnionTypeSchema, asValueSchemaSchema, asValueTypeSchema, enrichWithBeanProperty, equals, get$ref, get$schema, getDescription, getDisallow, getExtends, getId, getRequired, isAnySchema, isArraySchema, isBooleanSchema, isIntegerSchema, isNullSchema, isNumberSchema, isStringSchema, isUnionTypeSchema, isValueTypeSchema, minimalForFormat, set$ref, set$schema, setDescription, setDisallow, setExtends, setId, setReadonly, setRequired 
- 
Constructor Details
- 
CrestObjectSchema
public CrestObjectSchema() 
 - 
 - 
Method Details
- 
getWritePolicy
 - 
setWritePolicy
 - 
getReadPolicy
 - 
setReadPolicy
 - 
getErrorOnWritePolicyFailure
 - 
setErrorOnWritePolicyFailure
 - 
getReturnOnDemand
 - 
setReturnOnDemand
 - 
getPropertyOrder
 - 
setPropertyOrder
 - 
validate
- Throws:
 javax.validation.ValidationException
 - 
getReadonly
Gets read-only property. This method overrides the superclass' definition of "readOnly" being all lower-case, via theJsonPropertyannotation.- Overrides:
 getReadonlyin classcom.fasterxml.jackson.module.jsonSchema.JsonSchema- Returns:
 trueif property is read-only, otherwisefalseornull
 - 
getRequiredFields
 - 
setRequiredFields
 - 
getExample
Description copied from interface:WithExampleSchemaGetsexampleJSON Schema field.- Specified by:
 getExamplein interfaceWithExampleSchema<Map<String,Object>> - Returns:
 - The example value, or null if not defined.
 
 - 
setExample
Description copied from interface:WithExampleSchemaSetsexampleJSON Schema field.- Specified by:
 setExamplein interfaceWithExampleSchema<Map<String,Object>> - Parameters:
 example- The example value.- Throws:
 IOException- When the type of schema cannot be parsed from the String value.
 
 -