Class JsonSchemaBoolean
- java.lang.Object
-
- io.openapiprocessor.jsonschema.schema.JsonSchemaBoolean
-
- All Implemented Interfaces:
JsonSchema
public class JsonSchemaBoolean extends java.lang.Object implements JsonSchema
-
-
Constructor Summary
Constructors Constructor Description JsonSchemaBoolean(JsonPointer pointer, java.lang.Boolean value, JsonSchemaContext context)JsonSchemaBoolean(java.lang.Boolean value, JsonSchemaContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetBoolean()value if the schema is aJsonSchemaBoolean.JsonSchemaContextgetContext()JsonPointergetLocation()booleanisFalse()booleanisTrue()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
getAdditionalItems, getAdditionalProperties, getAllOf, getAnchor, getAnyOf, getConst, getContains, getDependencies, getDependentRequired, getDependentSchemas, getDynamicAnchor, getDynamicRef, getElse, getEnum, getExclusiveMaximum, getExclusiveMaximumB, getExclusiveMinimum, getExclusiveMinimumB, getFormat, getId, getIf, getItems, getJsonSchema, getMaxContains, getMaximum, getMaxItems, getMaxLength, getMaxProperties, getMetaSchema, getMetaSchemaSchema, getMinContains, getMinimum, getMinItems, getMinLength, getMinProperties, getMultipleOf, getNot, getOneOf, getPattern, getPatternProperties, getPrefixItems, getProperties, getPropertyNames, getRef, getRefSchema, getRefSchema, getRequired, getThen, getType, getUnevaluatedItems, getUnevaluatedProperties, getVocabulary, isDynamicRef, isRef, isUniqueItems
-
-
-
-
Constructor Detail
-
JsonSchemaBoolean
public JsonSchemaBoolean(java.lang.Boolean value, JsonSchemaContext context)
-
JsonSchemaBoolean
public JsonSchemaBoolean(JsonPointer pointer, java.lang.Boolean value, JsonSchemaContext context)
-
-
Method Detail
-
getContext
public JsonSchemaContext getContext()
- Specified by:
getContextin interfaceJsonSchema
-
getLocation
public JsonPointer getLocation()
- Specified by:
getLocationin interfaceJsonSchema
-
getBoolean
public boolean getBoolean()
Description copied from interface:JsonSchemavalue if the schema is aJsonSchemaBoolean.- Specified by:
getBooleanin interfaceJsonSchema- Returns:
- true or false
-
isTrue
public boolean isTrue()
- Specified by:
isTruein interfaceJsonSchema
-
isFalse
public boolean isFalse()
- Specified by:
isFalsein interfaceJsonSchema
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-