public class CrestAnySchema extends com.fasterxml.jackson.module.jsonSchema.types.AnySchema implements WithExampleSchema<Object>
AnySchema
that includes the custom CREST JSON Schema attributes.Constructor and Description |
---|
CrestAnySchema() |
Modifier and Type | Method and Description |
---|---|
Boolean |
getErrorOnWritePolicyFailure()
Get the error indicator for failed write policy.
|
Object |
getExample()
Gets
example JSON Schema field. |
Integer |
getPropertyOrder()
Get the property order number.
|
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. |
asAnySchema, equals, getType, isAnySchema
_equals, asSimpleTypeSchema, getDefault, getLinks, getPathStart, getTitle, isSimpleTypeSchema, setDefault, setLinks, setPathStart, setTitle
_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
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 Object getExample()
WithExampleSchema
example
JSON Schema field.getExample
in interface WithExampleSchema<Object>
public void setExample(String example) throws IOException
WithExampleSchema
example
JSON Schema field.setExample
in interface WithExampleSchema<Object>
example
- The example value.IOException
- When the type of schema cannot be parsed from the String value.Copyright © 2010-2018, ForgeRock All Rights Reserved.