Class JsonSchemaObject
- java.lang.Object
-
- io.openapiprocessor.jsonschema.schema.JsonSchemaObject
-
- All Implemented Interfaces:
JsonSchema
public class JsonSchemaObject extends java.lang.Object implements JsonSchema
-
-
Constructor Summary
Constructors Constructor Description JsonSchemaObject(JsonPointer location, java.util.Map<java.lang.String,java.lang.Object> document, JsonSchemaContext context)JsonSchemaObject(java.util.Map<java.lang.String,java.lang.Object> document, JsonSchemaContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonSchemasgetAdditionalItems()@Nullable JsonSchemagetAdditionalProperties()java.util.Collection<JsonSchema>getAllOf()@Nullable java.lang.StringgetAnchor()java.util.Collection<JsonSchema>getAnyOf()@Nullable JsonInstancegetConst()@Nullable JsonSchemagetContains()JsonSchemaContextgetContext()@Nullable java.util.Map<java.lang.String,JsonDependency>getDependencies()@Nullable java.util.Map<java.lang.String,java.util.Set<java.lang.String>>getDependentRequired()@Nullable java.util.Map<java.lang.String,JsonSchema>getDependentSchemas()@Nullable java.lang.StringgetDynamicAnchor()@Nullable java.net.URIgetDynamicRef()@Nullable JsonSchemagetElse()java.util.Collection<JsonInstance>getEnum()@Nullable java.lang.NumbergetExclusiveMaximum()java.lang.BooleangetExclusiveMaximumB()@Nullable java.lang.NumbergetExclusiveMinimum()java.lang.BooleangetExclusiveMinimumB()@Nullable java.lang.StringgetFormat()@Nullable java.net.URIgetId()@Nullable JsonSchemagetIf()JsonSchemasgetItems()@Nullable JsonSchemagetJsonSchema(java.lang.String property)JsonPointergetLocation()@Nullable java.lang.IntegergetMaxContains()@Nullable java.lang.NumbergetMaximum()@Nullable java.lang.IntegergetMaxItems()@Nullable java.lang.IntegergetMaxLength()@Nullable java.lang.IntegergetMaxProperties()@Nullable java.net.URIgetMetaSchema()@Nullable JsonSchemagetMetaSchemaSchema()java.lang.IntegergetMinContains()@Nullable java.lang.NumbergetMinimum()@Nullable java.lang.IntegergetMinItems()@Nullable java.lang.IntegergetMinLength()@Nullable java.lang.IntegergetMinProperties()@Nullable java.lang.NumbergetMultipleOf()@Nullable JsonSchemagetNot()java.util.Collection<JsonSchema>getOneOf()@Nullable java.lang.StringgetPattern()java.util.Map<java.lang.String,JsonSchema>getPatternProperties()java.util.Collection<JsonSchema>getPrefixItems()java.util.Map<java.lang.String,JsonSchema>getProperties()@Nullable JsonSchemagetPropertyNames()@Nullable java.net.URIgetRef()JsonSchemagetRefSchema()JsonSchemagetRefSchema(@Nullable java.net.URI dynamicScope)@Nullable java.util.Collection<java.lang.String>getRequired()@Nullable JsonSchemagetThen()java.util.Collection<java.lang.String>getType()@Nullable JsonSchemagetUnevaluatedItems()@Nullable JsonSchemagetUnevaluatedProperties()@Nullable VocabulariesgetVocabulary()booleanisDynamicRef()booleanisRef()@Nullable java.lang.BooleanisUniqueItems()java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.openapiprocessor.jsonschema.schema.JsonSchema
getBoolean, isFalse, isTrue
-
-
-
-
Constructor Detail
-
JsonSchemaObject
public JsonSchemaObject(java.util.Map<java.lang.String,java.lang.Object> document, JsonSchemaContext context)
-
JsonSchemaObject
public JsonSchemaObject(JsonPointer location, java.util.Map<java.lang.String,java.lang.Object> document, JsonSchemaContext context)
-
-
Method Detail
-
getContext
public JsonSchemaContext getContext()
- Specified by:
getContextin interfaceJsonSchema
-
getLocation
public JsonPointer getLocation()
- Specified by:
getLocationin interfaceJsonSchema
-
isRef
public boolean isRef()
- Specified by:
isRefin interfaceJsonSchema
-
getRef
public @Nullable java.net.URI getRef()
- Specified by:
getRefin interfaceJsonSchema
-
getAnchor
public @Nullable java.lang.String getAnchor()
- Specified by:
getAnchorin interfaceJsonSchema
-
isDynamicRef
public boolean isDynamicRef()
- Specified by:
isDynamicRefin interfaceJsonSchema
-
getDynamicRef
public @Nullable java.net.URI getDynamicRef()
- Specified by:
getDynamicRefin interfaceJsonSchema
-
getDynamicAnchor
public @Nullable java.lang.String getDynamicAnchor()
- Specified by:
getDynamicAnchorin interfaceJsonSchema
-
getRefSchema
public JsonSchema getRefSchema()
- Specified by:
getRefSchemain interfaceJsonSchema
-
getRefSchema
public JsonSchema getRefSchema(@Nullable java.net.URI dynamicScope)
- Specified by:
getRefSchemain interfaceJsonSchema
-
getMetaSchema
public @Nullable java.net.URI getMetaSchema()
- Specified by:
getMetaSchemain interfaceJsonSchema
-
getMetaSchemaSchema
public @Nullable JsonSchema getMetaSchemaSchema()
- Specified by:
getMetaSchemaSchemain interfaceJsonSchema
-
getVocabulary
public @Nullable Vocabularies getVocabulary()
- Specified by:
getVocabularyin interfaceJsonSchema
-
getId
public @Nullable java.net.URI getId()
- Specified by:
getIdin interfaceJsonSchema
-
getMultipleOf
public @Nullable java.lang.Number getMultipleOf()
- Specified by:
getMultipleOfin interfaceJsonSchema
-
getMaximum
public @Nullable java.lang.Number getMaximum()
- Specified by:
getMaximumin interfaceJsonSchema
-
getExclusiveMaximumB
public java.lang.Boolean getExclusiveMaximumB()
- Specified by:
getExclusiveMaximumBin interfaceJsonSchema
-
getExclusiveMaximum
public @Nullable java.lang.Number getExclusiveMaximum()
- Specified by:
getExclusiveMaximumin interfaceJsonSchema
-
getMinimum
public @Nullable java.lang.Number getMinimum()
- Specified by:
getMinimumin interfaceJsonSchema
-
getExclusiveMinimumB
public java.lang.Boolean getExclusiveMinimumB()
- Specified by:
getExclusiveMinimumBin interfaceJsonSchema
-
getExclusiveMinimum
public @Nullable java.lang.Number getExclusiveMinimum()
- Specified by:
getExclusiveMinimumin interfaceJsonSchema
-
getMaxLength
public @Nullable java.lang.Integer getMaxLength()
- Specified by:
getMaxLengthin interfaceJsonSchema
-
getMinLength
public @Nullable java.lang.Integer getMinLength()
- Specified by:
getMinLengthin interfaceJsonSchema
-
getPattern
public @Nullable java.lang.String getPattern()
- Specified by:
getPatternin interfaceJsonSchema
-
getPrefixItems
public java.util.Collection<JsonSchema> getPrefixItems()
- Specified by:
getPrefixItemsin interfaceJsonSchema
-
getItems
public JsonSchemas getItems()
- Specified by:
getItemsin interfaceJsonSchema
-
getAdditionalItems
public JsonSchemas getAdditionalItems()
- Specified by:
getAdditionalItemsin interfaceJsonSchema
-
getUnevaluatedItems
public @Nullable JsonSchema getUnevaluatedItems()
- Specified by:
getUnevaluatedItemsin interfaceJsonSchema
-
getMaxItems
public @Nullable java.lang.Integer getMaxItems()
- Specified by:
getMaxItemsin interfaceJsonSchema
-
getMinItems
public @Nullable java.lang.Integer getMinItems()
- Specified by:
getMinItemsin interfaceJsonSchema
-
isUniqueItems
public @Nullable java.lang.Boolean isUniqueItems()
- Specified by:
isUniqueItemsin interfaceJsonSchema
-
getContains
public @Nullable JsonSchema getContains()
- Specified by:
getContainsin interfaceJsonSchema
-
getMinContains
public java.lang.Integer getMinContains()
- Specified by:
getMinContainsin interfaceJsonSchema
-
getMaxContains
public @Nullable java.lang.Integer getMaxContains()
- Specified by:
getMaxContainsin interfaceJsonSchema
-
getMaxProperties
public @Nullable java.lang.Integer getMaxProperties()
- Specified by:
getMaxPropertiesin interfaceJsonSchema
-
getMinProperties
public @Nullable java.lang.Integer getMinProperties()
- Specified by:
getMinPropertiesin interfaceJsonSchema
-
getRequired
public @Nullable java.util.Collection<java.lang.String> getRequired()
- Specified by:
getRequiredin interfaceJsonSchema
-
getProperties
public java.util.Map<java.lang.String,JsonSchema> getProperties()
- Specified by:
getPropertiesin interfaceJsonSchema
-
getPatternProperties
public java.util.Map<java.lang.String,JsonSchema> getPatternProperties()
- Specified by:
getPatternPropertiesin interfaceJsonSchema
-
getAdditionalProperties
public @Nullable JsonSchema getAdditionalProperties()
- Specified by:
getAdditionalPropertiesin interfaceJsonSchema
-
getUnevaluatedProperties
public @Nullable JsonSchema getUnevaluatedProperties()
- Specified by:
getUnevaluatedPropertiesin interfaceJsonSchema
-
getDependencies
public @Nullable java.util.Map<java.lang.String,JsonDependency> getDependencies()
- Specified by:
getDependenciesin interfaceJsonSchema
-
getDependentSchemas
public @Nullable java.util.Map<java.lang.String,JsonSchema> getDependentSchemas()
- Specified by:
getDependentSchemasin interfaceJsonSchema
-
getDependentRequired
public @Nullable java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getDependentRequired()
- Specified by:
getDependentRequiredin interfaceJsonSchema
-
getPropertyNames
public @Nullable JsonSchema getPropertyNames()
- Specified by:
getPropertyNamesin interfaceJsonSchema
-
getJsonSchema
public @Nullable JsonSchema getJsonSchema(java.lang.String property)
- Specified by:
getJsonSchemain interfaceJsonSchema
-
getEnum
public java.util.Collection<JsonInstance> getEnum()
- Specified by:
getEnumin interfaceJsonSchema
-
getConst
public @Nullable JsonInstance getConst()
- Specified by:
getConstin interfaceJsonSchema
-
getType
public java.util.Collection<java.lang.String> getType()
- Specified by:
getTypein interfaceJsonSchema
-
getAllOf
public java.util.Collection<JsonSchema> getAllOf()
- Specified by:
getAllOfin interfaceJsonSchema
-
getAnyOf
public java.util.Collection<JsonSchema> getAnyOf()
- Specified by:
getAnyOfin interfaceJsonSchema
-
getOneOf
public java.util.Collection<JsonSchema> getOneOf()
- Specified by:
getOneOfin interfaceJsonSchema
-
getNot
public @Nullable JsonSchema getNot()
- Specified by:
getNotin interfaceJsonSchema
-
getFormat
public @Nullable java.lang.String getFormat()
- Specified by:
getFormatin interfaceJsonSchema
-
getIf
public @Nullable JsonSchema getIf()
- Specified by:
getIfin interfaceJsonSchema
-
getThen
public @Nullable JsonSchema getThen()
- Specified by:
getThenin interfaceJsonSchema
-
getElse
public @Nullable JsonSchema getElse()
- Specified by:
getElsein interfaceJsonSchema
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-