|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.fasterxml.jackson.databind.jsonSchema.types.JsonSchema
com.fasterxml.jackson.databind.jsonSchema.types.SimpleTypeSchema
com.fasterxml.jackson.databind.jsonSchema.types.ContainerTypeSchema
com.fasterxml.jackson.databind.jsonSchema.types.ObjectSchema
public class ObjectSchema
This type represents a JsonSchema as an object type
| Nested Class Summary | |
|---|---|
static class |
ObjectSchema.AdditionalProperties
|
static class |
ObjectSchema.Dependency
|
static class |
ObjectSchema.NoAdditionalProperties
|
static class |
ObjectSchema.SchemaAdditionalProperties
|
static class |
ObjectSchema.SchemaDependency
JsonSchema Dependency If the dependency value is a jsonSchema, then the instance object MUST be valid against the jsonSchema. |
static class |
ObjectSchema.SimpleDependency
Simple Dependency If the dependency value is a string, then the instance object MUST have a property with the same name as the dependency value. |
| Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.jsonSchema.types.JsonSchema |
|---|
JsonSchema.JsonSchemaIdResolver |
| Constructor Summary | |
|---|---|
ObjectSchema()
|
|
| Methods inherited from class com.fasterxml.jackson.databind.jsonSchema.types.ContainerTypeSchema |
|---|
asContainerSchema, getEnums, isContainerTypeSchema, setEnums |
| Methods inherited from class com.fasterxml.jackson.databind.jsonSchema.types.SimpleTypeSchema |
|---|
asSimpleTypeSchema, getDefault, getDescription, getTitle, isSimpleTypeSchema, setDefault, setDescription, setTitle |
| Methods inherited from class com.fasterxml.jackson.databind.jsonSchema.types.JsonSchema |
|---|
asAnySchema, asArraySchema, asBooleanSchema, asIntegerSchema, asNullSchema, asNumberSchema, asStringSchema, asUnionTypeSchema, asValueSchemaSchema, get$ref, get$schema, getDisallow, getExtends, getId, getRequired, isAnySchema, isArraySchema, isBooleanSchema, isIntegerSchema, isNullSchema, isNumberSchema, isStringSchema, isUnionTypeSchema, isValueTypeSchema, minimalForFormat, set$ref, set$schema, setDisallow, setExtends, setId, setRequired |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectSchema()
| Method Detail |
|---|
public boolean addSchemaDependency(String depender,
JsonSchema parentMustMatch)
public boolean addSimpleDependency(String depender,
String dependsOn)
public ObjectSchema asObjectSchema()
JsonSchemaObjectSchema
asObjectSchema in class JsonSchemapublic boolean equals(Object obj)
equals in class ContainerTypeSchemapublic ObjectSchema.AdditionalProperties getAdditionalProperties()
additionalProperties
public List<ObjectSchema.Dependency> getDependencies()
dependencies
public Map<String,JsonSchema> getPatternProperties()
patternProperties
public Map<String,JsonSchema> getProperties()
properties
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes getType()
getType in class JsonSchemapublic boolean isObjectSchema()
JsonSchemaObjectSchema.
isObjectSchema in class JsonSchema
public void putOptionalProperty(String name,
JsonSchema jsonSchema)
public JsonSchema putPatternProperty(String regex,
JsonSchema value)
public JsonSchema putProperty(String name,
JsonSchema value)
public void rejectAdditionalProperties()
public void setAdditionalProperties(ObjectSchema.AdditionalProperties additionalProperties)
additionalProperties
additionalProperties - the additionalProperties to setpublic void setDependencies(List<ObjectSchema.Dependency> dependencies)
dependencies
dependencies - the dependencies to setpublic void setPatternProperties(Map<String,JsonSchema> patternProperties)
patternProperties
patternProperties - the patternProperties to setpublic void setProperties(Map<String,JsonSchema> properties)
properties
properties - the properties to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||