Class BaseJsonValidator
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.jsonschema.BaseJsonValidator
 
- 
- All Implemented Interfaces:
- JsonValidator
 - Direct Known Subclasses:
- AdditionalPropertiesValidator,- AllOfValidator,- AnyOfValidator,- ConstValidator,- ContainsValidator,- DependenciesValidator,- DynamicSuggestionsValidator,- EnumValidator,- ExtensionValidator,- FormatValidator,- ItemsValidator,- JsonSchema,- MaximumValidator,- MaxItemsValidator,- MaxLengthValidator,- MaxPropertiesValidator,- MinimumValidator,- MinItemsValidator,- MinLengthValidator,- MinPropertiesValidator,- MultipleOfValidator,- NotValidator,- OneOfValidator,- PatternPropertiesValidator,- PatternValidator,- PropertiesValidator,- PropertyNamesValidator,- RefValidator,- RequiredValidator,- SuggestionsValidator,- TypeValidator,- UniqueItemsValidator,- VisibleWhenValidator
 
 public abstract class BaseJsonValidator extends java.lang.Object implements JsonValidator 
- 
- 
Field Summary- 
Fields inherited from interface com.inductiveautomation.ignition.common.jsonschema.JsonValidatorAT_ROOT
 
- 
 - 
Constructor SummaryConstructors Constructor Description BaseJsonValidator(java.lang.String schemaPath, com.inductiveautomation.ignition.common.gson.JsonElement schemaNode, JsonSchema parentSchema, ValidatorTypeCode validatorType)BaseJsonValidator(java.lang.String schemaPath, com.inductiveautomation.ignition.common.gson.JsonElement schemaNode, JsonSchema parentSchema, ValidatorTypeCode validatorType, boolean useRefCache)BaseJsonValidator(java.lang.String schemaPath, com.inductiveautomation.ignition.common.gson.JsonElement schemaNode, JsonSchema parentSchema, ValidatorTypeCode validatorType, JsonSchema subSchema)BaseJsonValidator(java.lang.String schemaPath, com.inductiveautomation.ignition.common.gson.JsonElement schemaNode, JsonSchema parentSchema, ValidatorTypeCode validatorType, JsonSchema subSchema, boolean useRefCache)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intasInt(com.inductiveautomation.ignition.common.gson.JsonElement element)protected ValidationMessagebuildValidationMessage(java.lang.String at, java.lang.String... arguments)protected voiddebug(org.slf4j.Logger logger, com.inductiveautomation.ignition.common.gson.JsonElement node, com.inductiveautomation.ignition.common.gson.JsonElement rootNode, java.lang.String at)protected booleanequals(double n1, double n2)protected JsonSchemagetParentSchema()protected com.inductiveautomation.ignition.common.gson.JsonElementgetSchemaNode()protected java.lang.StringgetSchemaPath()protected JsonSchemagetSubSchema()protected ValidatorTypeCodegetValidatorType()protected booleangreaterThan(double n1, double n2)protected booleanhasSubSchema()protected booleanlessThan(double n1, double n2)protected JsonSchemaobtainSubSchemaNode(com.inductiveautomation.ignition.common.gson.JsonElement schemaNode)protected voidparseErrorCode(java.lang.String errorCodeKey)protected booleanuseRefCache()java.util.Set<ValidationMessage>validate(com.inductiveautomation.ignition.common.gson.JsonElement node)Validate the given root JsonElement, starting at the root of the data path.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.inductiveautomation.ignition.common.jsonschema.JsonValidatorvalidate
 
- 
 
- 
- 
- 
Constructor Detail- 
BaseJsonValidatorpublic BaseJsonValidator(java.lang.String schemaPath, com.inductiveautomation.ignition.common.gson.JsonElement schemaNode, JsonSchema parentSchema, ValidatorTypeCode validatorType)
 - 
BaseJsonValidatorpublic BaseJsonValidator(java.lang.String schemaPath, com.inductiveautomation.ignition.common.gson.JsonElement schemaNode, JsonSchema parentSchema, ValidatorTypeCode validatorType, JsonSchema subSchema, boolean useRefCache)
 - 
BaseJsonValidatorpublic BaseJsonValidator(java.lang.String schemaPath, com.inductiveautomation.ignition.common.gson.JsonElement schemaNode, JsonSchema parentSchema, ValidatorTypeCode validatorType, JsonSchema subSchema)
 - 
BaseJsonValidatorpublic BaseJsonValidator(java.lang.String schemaPath, com.inductiveautomation.ignition.common.gson.JsonElement schemaNode, JsonSchema parentSchema, ValidatorTypeCode validatorType, boolean useRefCache)
 
- 
 - 
Method Detail- 
getSchemaPathprotected java.lang.String getSchemaPath() 
 - 
getSchemaNodeprotected com.inductiveautomation.ignition.common.gson.JsonElement getSchemaNode() 
 - 
getParentSchemaprotected JsonSchema getParentSchema() 
 - 
getSubSchemaprotected JsonSchema getSubSchema() 
 - 
hasSubSchemaprotected boolean hasSubSchema() 
 - 
useRefCacheprotected boolean useRefCache() 
 - 
obtainSubSchemaNodeprotected JsonSchema obtainSubSchemaNode(com.inductiveautomation.ignition.common.gson.JsonElement schemaNode) 
 - 
validatepublic java.util.Set<ValidationMessage> validate(com.inductiveautomation.ignition.common.gson.JsonElement node) Description copied from interface:JsonValidatorValidate the given root JsonElement, starting at the root of the data path.- Specified by:
- validatein interface- JsonValidator
- Parameters:
- node- JsonElement
- Returns:
- A list of ValidationMessage if there is any validation error, or an empty list if there is no error.
 
 - 
equalsprotected boolean equals(double n1, double n2)
 - 
greaterThanprotected boolean greaterThan(double n1, double n2)
 - 
lessThanprotected boolean lessThan(double n1, double n2)
 - 
parseErrorCodeprotected void parseErrorCode(java.lang.String errorCodeKey) 
 - 
buildValidationMessageprotected ValidationMessage buildValidationMessage(java.lang.String at, java.lang.String... arguments) 
 - 
debugprotected void debug(org.slf4j.Logger logger, com.inductiveautomation.ignition.common.gson.JsonElement node, com.inductiveautomation.ignition.common.gson.JsonElement rootNode, java.lang.String at)
 - 
getValidatorTypeprotected ValidatorTypeCode getValidatorType() 
 - 
asIntpublic int asInt(com.inductiveautomation.ignition.common.gson.JsonElement element) 
 
- 
 
-