Package org.forgerock.api.jackson
Class CrestBooleanSchema
java.lang.Object
com.fasterxml.jackson.module.jsonSchema.JsonSchema
com.fasterxml.jackson.module.jsonSchema.types.SimpleTypeSchema
com.fasterxml.jackson.module.jsonSchema.types.ValueTypeSchema
com.fasterxml.jackson.module.jsonSchema.types.BooleanSchema
org.forgerock.api.jackson.CrestBooleanSchema
- All Implemented Interfaces:
WithExampleSchema<Boolean>
public class CrestBooleanSchema
extends com.fasterxml.jackson.module.jsonSchema.types.BooleanSchema
implements WithExampleSchema<Boolean>
An extension to the Jackson
BooleanSchema that includes the custom CREST JSON Schema attributes.-
Field Summary
Fields inherited from class com.fasterxml.jackson.module.jsonSchema.types.ValueTypeSchema
enums, formatFields 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) voidsetReturnOnDemand(Boolean returnOnDemand) voidsetWritePolicy(WritePolicy policy) voidMethods inherited from class com.fasterxml.jackson.module.jsonSchema.types.BooleanSchema
_equals, asBooleanSchema, equals, getType, isBooleanSchemaMethods inherited from class com.fasterxml.jackson.module.jsonSchema.types.ValueTypeSchema
_equals, asValueSchemaSchema, asValueTypeSchema, getEnums, getFormat, isValueTypeSchema, setEnums, setFormatMethods 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, asContainerSchema, asContainerTypeSchema, asIntegerSchema, asNullSchema, asNumberSchema, asObjectSchema, asStringSchema, asUnionTypeSchema, enrichWithBeanProperty, equals, get$ref, get$schema, getDescription, getDisallow, getExtends, getId, getRequired, isAnySchema, isArraySchema, isContainerTypeSchema, isIntegerSchema, isNullSchema, isNumberSchema, isObjectSchema, isStringSchema, isUnionTypeSchema, minimalForFormat, set$ref, set$schema, setDescription, setDisallow, setExtends, setId, setReadonly, setRequired
-
Constructor Details
-
CrestBooleanSchema
public CrestBooleanSchema()
-
-
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
-
getExample
Description copied from interface:WithExampleSchemaGetsexampleJSON Schema field.- Specified by:
getExamplein interfaceWithExampleSchema<Boolean>- Returns:
- The example value, or null if not defined.
-
setExample
Description copied from interface:WithExampleSchemaSetsexampleJSON Schema field.- Specified by:
setExamplein interfaceWithExampleSchema<Boolean>- Parameters:
example- The example value.
-