Class JSONSchema
java.lang.Object
com.alibaba.fastjson2.schema.JSONSchema
- Direct Known Subclasses:
ArraySchema, BooleanSchema, EnumSchema, IntegerSchema, NumberSchema, ObjectSchema, StringSchema, UnresolvedReference
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidassertValidate(double value) voidassertValidate(long value) voidassertValidate(Double value) voidassertValidate(Float value) voidassertValidate(Integer value) voidassertValidate(Long value) voidassertValidate(Object value) booleangetTitle()abstract JSONSchema.TypegetType()inthashCode()booleanisValid(double value) booleanisValid(float value) booleanisValid(long value) booleanbooleanbooleanbooleanbooleanstatic JSONSchemaof(JSONObject input) static JSONSchemaof(JSONObject input, JSONSchema parent) static JSONSchemaof(JSONObject input, Class objectClass) static JSONSchemastatic JSONSchemastatic JSONSchemaparseSchema(String schema) toString()final ValidateResultvalidate(double value) final ValidateResultvalidate(long value) final ValidateResultfinal ValidateResultfinal ValidateResultfinal ValidateResultfinal ValidateResultprotected ValidateResultvalidateInternal(double value) protected ValidateResultvalidateInternal(long value) protected ValidateResultvalidateInternal(Double value) protected ValidateResultvalidateInternal(Float value) protected ValidateResultvalidateInternal(Integer value) protected ValidateResultvalidateInternal(Long value) protected abstract ValidateResultvalidateInternal(Object value)
-
Method Details
-
of
-
parseSchema
-
of
-
of
-
ofValue
-
of
-
getTitle
-
getDescription
-
getType
-
validateInternal
-
validate
-
isValid
-
isValid
public boolean isValid(long value) -
isValid
public boolean isValid(double value) -
isValid
-
isValid
public boolean isValid(float value) -
isValid
-
isValid
-
isValid
-
validateInternal
-
validate
-
validateInternal
-
validate
-
validateInternal
-
validate
-
validateInternal
-
validate
-
validateInternal
-
validate
-
validateInternal
-
validate
-
assertValidate
-
assertValidate
-
assertValidate
-
assertValidate
-
assertValidate
-
assertValidate
public void assertValidate(long value) -
assertValidate
public void assertValidate(double value) -
toString
-
equals
-
hashCode
-
toJSONObject
-
accept
-