-
- All Superinterfaces:
JsonSchema,Map<String,Keyword>
public interface ObjectJsonSchema extends JsonSchema, Map<String,Keyword>
A JSON schema type represented by a JSON object. This type can be viewed as an immutable map ofKeyword.- Author:
- leadpony
-
-
Field Summary
-
Fields inherited from interface org.leadpony.justify.api.JsonSchema
EMPTY, FALSE, TRUE
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default ObjectJsonSchemaasObjectJsonSchema()Returns this JSON schema as aObjectJsonSchema.default JsonValue.ValueTypegetJsonValueType()ReturnsValueType.OBJECTas a value type of JSON.default booleanisBoolean()Checks if this schema is a boolean schema.-
Methods inherited from interface org.leadpony.justify.api.JsonSchema
comment, containsKeyword, createEvaluator, createNegatedEvaluator, defaultValue, description, getInPlaceSubschemas, getKeywordValue, getKeywordValue, getSubschemaAt, getSubschemas, hasAbsoluteId, hasId, id, schema, title, toJson, toString
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Method Detail
-
isBoolean
default boolean isBoolean()
Checks if this schema is a boolean schema.- Specified by:
isBooleanin interfaceJsonSchema- Returns:
- always
false.
-
asObjectJsonSchema
default ObjectJsonSchema asObjectJsonSchema()
Returns this JSON schema as aObjectJsonSchema.- Specified by:
asObjectJsonSchemain interfaceJsonSchema- Returns:
- this instance.
-
getJsonValueType
default JsonValue.ValueType getJsonValueType()
ReturnsValueType.OBJECTas a value type of JSON.- Specified by:
getJsonValueTypein interfaceJsonSchema- Returns:
ValueType.OBJECT.
-
-