public class CrestBooleanSchema extends com.fasterxml.jackson.module.jsonSchema.types.BooleanSchema implements WithExampleSchema<Boolean>
BooleanSchema
that includes the custom CREST JSON Schema attributes.Constructor and Description |
---|
CrestBooleanSchema() |
Modifier and Type | Method and Description |
---|---|
Boolean |
getErrorOnWritePolicyFailure()
Get the error indicator for failed write policy.
|
Boolean |
getExample()
Gets
example JSON Schema field. |
Integer |
getPropertyOrder()
Get the property order number.
|
Boolean |
getReadonly()
Gets read-only property.
|
ReadPolicy |
getReadPolicy()
Get the read policy for the property.
|
Boolean |
getReturnOnDemand()
Set the return-on-demand field.
|
WritePolicy |
getWritePolicy()
Get the write policy for the property.
|
void |
setErrorOnWritePolicyFailure(Boolean errorOnWritePolicyFailure)
Set the error indicator for failed write policy.
|
void |
setExample(String example)
Sets
example JSON Schema field. |
void |
setPropertyOrder(Integer order)
Set the property order number.
|
void |
setReadPolicy(ReadPolicy readPolicy)
Set the read policy for the property.
|
void |
setReturnOnDemand(Boolean returnOnDemand)
Get the return-on-demand field.
|
void |
setWritePolicy(WritePolicy policy)
Set the write policy for the property.
|
void |
validate(JsonValue object)
Validates
JsonSchema according to some set of validation rules. |
_equals, asBooleanSchema, equals, getType, isBooleanSchema
_equals, asValueSchemaSchema, asValueTypeSchema, getEnums, getFormat, isValueTypeSchema, setEnums, setFormat
_equals, asSimpleTypeSchema, getDefault, getLinks, getPathStart, getTitle, isSimpleTypeSchema, setDefault, setLinks, setPathStart, setTitle
_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
public WritePolicy getWritePolicy()
public void setWritePolicy(WritePolicy policy)
policy
- The write policy.public ReadPolicy getReadPolicy()
public void setReadPolicy(ReadPolicy readPolicy)
readPolicy
- The read policy.public Boolean getErrorOnWritePolicyFailure()
public void setErrorOnWritePolicyFailure(Boolean errorOnWritePolicyFailure)
errorOnWritePolicyFailure
- Whether errors will be returned.public Boolean getReturnOnDemand()
true
when a field is available, but must be explicitly requested, or false
(default) when
always returned.public void setReturnOnDemand(Boolean returnOnDemand)
returnOnDemand
- true
when a field is available, but must be explicitly requested, or
false
(default) when always returned.public Integer getPropertyOrder()
public void setPropertyOrder(Integer order)
order
- The property order.public void validate(JsonValue object) throws javax.validation.ValidationException
JsonSchema
according to some set of validation rules.object
- JSON to validatejavax.validation.ValidationException
- Indicates that JSON does not conform to a known JSON Schema format.public Boolean getReadonly()
JsonProperty
annotation.getReadonly
in class com.fasterxml.jackson.module.jsonSchema.JsonSchema
true
if property is read-only, otherwise false
or null
public Boolean getExample()
WithExampleSchema
example
JSON Schema field.getExample
in interface WithExampleSchema<Boolean>
public void setExample(String example)
WithExampleSchema
example
JSON Schema field.setExample
in interface WithExampleSchema<Boolean>
example
- The example value.Copyright © 2010-2018, ForgeRock All Rights Reserved.