Class TypeValidator
java.lang.Object
com.inductiveautomation.ignition.common.jsonschema.BaseJsonValidator
com.inductiveautomation.ignition.common.jsonschema.TypeValidator
- All Implemented Interfaces:
JsonValidator
-
Field Summary
Fields inherited from interface com.inductiveautomation.ignition.common.jsonschema.JsonValidator
AT_ROOT
-
Constructor Summary
ConstructorsConstructorDescriptionTypeValidator
(String schemaPath, com.inductiveautomation.ignition.common.gson.JsonElement schemaNode, JsonSchema parentSchema) -
Method Summary
Methods inherited from class com.inductiveautomation.ignition.common.jsonschema.BaseJsonValidator
asInt, buildValidationMessage, debug, equals, getParentSchema, getSchemaNode, getSchemaPath, getSubSchema, getValidatorType, greaterThan, hasSubSchema, lessThan, obtainSubSchemaNode, parseErrorCode, useRefCache, validate
-
Constructor Details
-
TypeValidator
public TypeValidator(String schemaPath, com.inductiveautomation.ignition.common.gson.JsonElement schemaNode, JsonSchema parentSchema)
-
-
Method Details
-
getAcceptedTypes
-
validate
public Set<ValidationMessage> validate(com.inductiveautomation.ignition.common.gson.JsonElement node, com.inductiveautomation.ignition.common.gson.JsonElement rootNode, String at) Description copied from interface:JsonValidator
Validate the given JsonElement, the given node is the child node of the root node at given data path.- Parameters:
node
- JsonElementrootNode
- JsonElementat
- String- Returns:
- A list of ValidationMessage if there is any validation error, or an empty list if there is no error.
-