Class PropertiesValidator
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.jsonschema.BaseJsonValidator
- 
- com.inductiveautomation.ignition.common.jsonschema.PropertiesValidator
 
 
- 
- All Implemented Interfaces:
- JsonValidator
 
 public class PropertiesValidator extends BaseJsonValidator 
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringPROPERTY- 
Fields inherited from interface com.inductiveautomation.ignition.common.jsonschema.JsonValidatorAT_ROOT
 
- 
 - 
Constructor SummaryConstructors Constructor Description PropertiesValidator(java.lang.String schemaPath, com.inductiveautomation.ignition.common.gson.JsonElement schemaNode, JsonSchema parentSchema)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description com.inductiveautomation.ignition.common.gson.JsonObjectderiveDefaultObject()com.inductiveautomation.ignition.common.gson.JsonObjectderiveDefaultObject(boolean injectExampleIfPresent)Returns a derived JsonObject which may include values declared under the 'example' key.protected java.util.Optional<JsonSchema>findSchemaForProperty(java.lang.String propertyKey)java.util.List<java.lang.String>getPropertyNames()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.BaseJsonValidatorasInt, buildValidationMessage, debug, equals, getParentSchema, getSchemaNode, getSchemaPath, getSubSchema, getValidatorType, greaterThan, hasSubSchema, lessThan, obtainSubSchemaNode, parseErrorCode, useRefCache, validate
 
- 
 
- 
- 
- 
Field Detail- 
PROPERTYpublic static final java.lang.String PROPERTY - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
PropertiesValidatorpublic PropertiesValidator(java.lang.String schemaPath, com.inductiveautomation.ignition.common.gson.JsonElement schemaNode, JsonSchema parentSchema)
 
- 
 - 
Method Detail- 
findSchemaForPropertyprotected java.util.Optional<JsonSchema> findSchemaForProperty(java.lang.String propertyKey) 
 - 
validatepublic 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.- Parameters:
- node- JsonElement
- rootNode- JsonElement
- at- String
- Returns:
- A list of ValidationMessage if there is any validation error, or an empty list if there is no error.
 
 - 
getPropertyNamespublic java.util.List<java.lang.String> getPropertyNames() 
 - 
deriveDefaultObjectpublic com.inductiveautomation.ignition.common.gson.JsonObject deriveDefaultObject(boolean injectExampleIfPresent) Returns a derived JsonObject which may include values declared under the 'example' key.- Parameters:
- injectExampleIfPresent- if true, checks for example values and adds them as the default.
 
 - 
deriveDefaultObjectpublic com.inductiveautomation.ignition.common.gson.JsonObject deriveDefaultObject() 
 
- 
 
-