Interface JsonValidator

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String AT_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.
    • 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 - 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.