Class AnyOfValidator
- java.lang.Object
 - 
- com.inductiveautomation.ignition.common.jsonschema.BaseJsonValidator
 - 
- com.inductiveautomation.ignition.common.jsonschema.AnyOfValidator
 
 
 
- 
- All Implemented Interfaces:
 JsonValidator,MetaValidator
public class AnyOfValidator extends BaseJsonValidator implements JsonValidator, MetaValidator
 
- 
- 
Field Summary
- 
Fields inherited from interface com.inductiveautomation.ignition.common.jsonschema.JsonValidator
AT_ROOT 
 - 
 
- 
Constructor Summary
Constructors Constructor Description AnyOfValidator(java.lang.String schemaPath, com.inductiveautomation.ignition.common.gson.JsonElement schemaNode, JsonSchema parentSchema) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<JsonSchema>getPossibleSchemas()java.util.Set<ValidationMessage>validate(com.inductiveautomation.ignition.common.gson.JsonElement node, com.inductiveautomation.ignition.common.gson.JsonElement rootNode, java.lang.String at)Validate the given JsonElement, the given node is the child node of the root node at given data path.- 
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 
- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface com.inductiveautomation.ignition.common.jsonschema.JsonValidator
validate 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
AnyOfValidator
public AnyOfValidator(java.lang.String schemaPath, com.inductiveautomation.ignition.common.gson.JsonElement schemaNode, JsonSchema parentSchema) 
 - 
 
- 
Method Detail
- 
getPossibleSchemas
public java.util.Collection<JsonSchema> getPossibleSchemas()
- Specified by:
 getPossibleSchemasin interfaceMetaValidator
 
- 
validate
public java.util.Set<ValidationMessage> validate(com.inductiveautomation.ignition.common.gson.JsonElement node, com.inductiveautomation.ignition.common.gson.JsonElement rootNode, java.lang.String at)
Description copied from interface:JsonValidatorValidate the given JsonElement, the given node is the child node of the root node at given data path.- Specified by:
 validatein interfaceJsonValidator- 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.
 
 
 - 
 
 -