public class ObjectSchema extends ContainerTypeSchema
JsonSchema as an object type| Modifier and Type | Class and Description |
|---|---|
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.
|
JsonSchema.JsonSchemaIdResolver| Constructor and Description |
|---|
ObjectSchema() |
asContainerSchema, getEnums, isContainerTypeSchema, setEnumsasSimpleTypeSchema, getDefault, getDescription, getTitle, isSimpleTypeSchema, setDefault, setDescription, setTitleasAnySchema, 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, setRequiredpublic boolean addSchemaDependency(String depender, JsonSchema parentMustMatch)
public ObjectSchema asObjectSchema()
JsonSchemaObjectSchemaasObjectSchema in class JsonSchemapublic boolean equals(Object obj)
equals in class ContainerTypeSchemapublic ObjectSchema.AdditionalProperties getAdditionalProperties()
public List<ObjectSchema.Dependency> getDependencies()
public Map<String,JsonSchema> getPatternProperties()
public Map<String,JsonSchema> getProperties()
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes getType()
getType in class JsonSchemapublic boolean isObjectSchema()
JsonSchemaObjectSchema.isObjectSchema in class JsonSchemapublic 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 - the additionalProperties to setpublic void setDependencies(List<ObjectSchema.Dependency> dependencies)
dependencies - the dependencies to setpublic void setPatternProperties(Map<String,JsonSchema> patternProperties)
patternProperties - the patternProperties to setpublic void setProperties(Map<String,JsonSchema> properties)
properties - the properties to setCopyright © 2012 fasterxml.com. All Rights Reserved.