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.
|
| Constructor and Description |
|---|
ObjectSchema() |
asContainerSchema, getEnums, isContainerTypeSchema, setEnumsasSimpleTypeSchema, getDefault, getDescription, getTitle, isSimpleTypeSchema, setDefault, setDescription, setTitleasAnySchema, asArraySchema, asBooleanSchema, asIntegerSchema, asNullSchema, asNumberSchema, asStringSchema, asUnionTypeSchema, asValueSchemaSchema, enrichWithBeanProperty, 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(com.fasterxml.jackson.databind.BeanProperty property,
JsonSchema jsonSchema)
public void putOptionalProperty(String name, JsonSchema jsonSchema)
public JsonSchema putPatternProperty(String regex, JsonSchema value)
public JsonSchema putProperty(com.fasterxml.jackson.databind.BeanProperty property, JsonSchema value)
public JsonSchema putProperty(String name, JsonSchema value)
public void rejectAdditionalProperties()
public void setAdditionalProperties(ObjectSchema.AdditionalProperties additionalProperties)
public void setDependencies(List<ObjectSchema.Dependency> dependencies)
public void setPatternProperties(Map<String,JsonSchema> patternProperties)
public void setProperties(Map<String,JsonSchema> properties)
Copyright © 2012-2013 FasterXML. All Rights Reserved.