public final class ObjectSchemaBuilder extends SchemaBuilder<ObjectSchemaBuilder,ObjectKeyword>
id, keywords, type
Modifier and Type | Method and Description |
---|---|
ObjectSchemaBuilder |
additionalProperties(SchemaBuilder schemaBuilder) |
ObjectSchemaBuilder |
allowAdditionalProperties(boolean allow) |
Map<Pattern,SchemaBuilder> |
getPatternProperties() |
Map<String,SchemaBuilder> |
getProperties() |
boolean |
isPropertyRequired(String property) |
ObjectSchemaBuilder |
optionalProperty(String name,
SchemaBuilder schemaBuilder) |
ObjectSchemaBuilder |
patternProperty(Pattern pattern,
SchemaBuilder schemaBuilder) |
ObjectSchemaBuilder |
property(String name,
SchemaBuilder schemaBuilder) |
ObjectSchemaBuilder |
requiredProperty(String name,
SchemaBuilder schemaBuilder) |
JsonObject |
toJson() |
alias, build, defaultValue, fromJson, getType, id, nullable, type, with, with, withKeyword
public ObjectSchemaBuilder property(String name, SchemaBuilder schemaBuilder)
public ObjectSchemaBuilder optionalProperty(String name, SchemaBuilder schemaBuilder)
public Map<String,SchemaBuilder> getProperties()
public Map<Pattern,SchemaBuilder> getPatternProperties()
public boolean isPropertyRequired(String property)
public ObjectSchemaBuilder requiredProperty(String name, SchemaBuilder schemaBuilder)
public ObjectSchemaBuilder patternProperty(Pattern pattern, SchemaBuilder schemaBuilder)
public ObjectSchemaBuilder additionalProperties(SchemaBuilder schemaBuilder)
public ObjectSchemaBuilder allowAdditionalProperties(boolean allow)
public JsonObject toJson()
toJson
in class SchemaBuilder<ObjectSchemaBuilder,ObjectKeyword>
Copyright © 2024 Eclipse. All rights reserved.