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 JacksonAnySchemathat includes the custom CREST JSON Schema attributes. 
- 
- 
Constructor Summary
Constructors Constructor Description CrestAnySchema() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleangetErrorOnWritePolicyFailure()ObjectgetExample()GetsexampleJSON Schema field.IntegergetPropertyOrder()ReadPolicygetReadPolicy()BooleangetReturnOnDemand()WritePolicygetWritePolicy()voidsetErrorOnWritePolicyFailure(Boolean errorOnWritePolicyFailure)voidsetExample(String example)SetsexampleJSON Schema field.voidsetPropertyOrder(Integer order)voidsetReadPolicy(ReadPolicy readPolicy)voidsetReturnOnDemand(Boolean returnOnDemand)voidsetWritePolicy(WritePolicy policy)voidvalidate(JsonValue object)- 
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 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getWritePolicy
public WritePolicy getWritePolicy()
 
- 
setWritePolicy
public void setWritePolicy(WritePolicy policy)
 
- 
getReadPolicy
public ReadPolicy getReadPolicy()
 
- 
setReadPolicy
public void setReadPolicy(ReadPolicy readPolicy)
 
- 
getErrorOnWritePolicyFailure
public Boolean getErrorOnWritePolicyFailure()
 
- 
setErrorOnWritePolicyFailure
public void setErrorOnWritePolicyFailure(Boolean errorOnWritePolicyFailure)
 
- 
getReturnOnDemand
public Boolean getReturnOnDemand()
 
- 
setReturnOnDemand
public void setReturnOnDemand(Boolean returnOnDemand)
 
- 
getPropertyOrder
public Integer getPropertyOrder()
 
- 
setPropertyOrder
public void setPropertyOrder(Integer order)
 
- 
validate
public void validate(JsonValue object) throws javax.validation.ValidationException
- Throws:
 javax.validation.ValidationException
 
- 
getExample
public Object getExample()
Description copied from interface:WithExampleSchemaGetsexampleJSON Schema field.- Specified by:
 getExamplein interfaceWithExampleSchema<Object>- Returns:
 - The example value, or null if not defined.
 
 
- 
setExample
public void setExample(String example) throws IOException
Description copied from interface:WithExampleSchemaSetsexampleJSON Schema field.- Specified by:
 setExamplein interfaceWithExampleSchema<Object>- Parameters:
 example- The example value.- Throws:
 IOException- When the type of schema cannot be parsed from the String value.
 
 - 
 
 -