public class ObjectSchema extends Schema
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
ObjectSchema.Builder
Builder class for  
ObjectSchema. | 
schemaLocation| Constructor and Description | 
|---|
ObjectSchema(ObjectSchema.Builder builder)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static ObjectSchema.Builder | 
builder()  | 
protected boolean | 
canEqual(Object other)
Since we add state in subclasses, but want those subclasses to be non final, this allows us to
 have equals methods that satisfy the equals contract. 
 | 
boolean | 
definesProperty(String field)
Determines if this  
Schema instance defines any restrictions for the object property
 denoted by field. | 
boolean | 
equals(Object o)  | 
Integer | 
getMaxProperties()  | 
Integer | 
getMinProperties()  | 
Map<Pattern,Schema> | 
getPatternProperties()
Deprecated.  
 | 
Map<String,Set<String>> | 
getPropertyDependencies()  | 
Schema | 
getPropertyNameSchema()  | 
Map<String,Schema> | 
getPropertySchemas()  | 
List<String> | 
getRequiredProperties()  | 
Map<String,Schema> | 
getSchemaDependencies()  | 
Schema | 
getSchemaOfAdditionalProperties()  | 
int | 
hashCode()  | 
boolean | 
permitsAdditionalProperties()  | 
boolean | 
requiresObject()  | 
describeTo, failure, failure, getDefaultValue, getDescription, getId, getLocation, getSchemaLocation, getTitle, getUnprocessedProperties, hasDefaultValue, isNullable, isReadOnly, isWriteOnly, toString, validatepublic ObjectSchema(ObjectSchema.Builder builder)
builder - the builder object containing validation criteriapublic static ObjectSchema.Builder builder()
public Integer getMaxProperties()
public Integer getMinProperties()
@Deprecated public Map<Pattern,Schema> getPatternProperties()
public Schema getSchemaOfAdditionalProperties()
public Schema getPropertyNameSchema()
public boolean permitsAdditionalProperties()
public boolean requiresObject()
public boolean definesProperty(String field)
SchemaSchema instance defines any restrictions for the object property
 denoted by field. The field should be a JSON pointer, denoting the property to
 be queried.
 
 For example the field "#/rectangle/a" is defined by the following schema:
 
 
 objectWithSchemaRectangleDep" : {
   "type" : "object",
   "dependencies" : {
       "d" : {
           "type" : "object",
           "properties" : {
               "rectangle" : {"$ref" : "#/definitions/Rectangle" }
           }
       }
   },
   "definitions" : {
       "size" : {
           "type" : "number",
           "minimum" : 0
       },
       "Rectangle" : {
           "type" : "object",
           "properties" : {
               "a" : {"$ref" : "#/definitions/size"},
               "b" : {"$ref" : "#/definitions/size"}
           }
       }
    }
 }
 
 
 The default implementation of this method always returns false.definesProperty in class Schemafield - should be a JSON pointer in its string representation.true if the propertty denoted by field is defined by this schema
 instanceCopyright © 2019 Everit Kft.. All rights reserved.