Interface JsonValidator
-
- All Known Subinterfaces:
MetaValidator
- All Known Implementing Classes:
AdditionalPropertiesValidator,AllOfValidator,AnyOfValidator,BaseJsonValidator,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 interface JsonValidatorStandard json validator interface, implemented by all validators and JsonSchema.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAT_ROOT
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<ValidationMessage>validate(com.inductiveautomation.ignition.common.gson.JsonElement rootNode)Validate the given root JsonElement, starting at the root of the data path.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.
-
-
-
Field Detail
-
AT_ROOT
static final java.lang.String AT_ROOT
- See Also:
- Constant Field Values
-
-
Method Detail
-
validate
java.util.Set<ValidationMessage> validate(com.inductiveautomation.ignition.common.gson.JsonElement rootNode)
Validate the given root JsonElement, starting at the root of the data path.- Parameters:
rootNode- JsonElement- Returns:
- A list of ValidationMessage if there is any validation error, or an empty list if there is no error.
-
validate
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.- 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.
-
-