Class BindingUtils


  • public class BindingUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.inductiveautomation.ignition.common.gson.JsonElement datasetToJson​(Dataset dataset)  
      static com.inductiveautomation.ignition.common.gson.JsonElement toJsonDeep​(java.lang.Object obj)
      Converts the given object to a document element.
      static com.inductiveautomation.ignition.common.gson.JsonElement toJsonDeep​(java.lang.Object obj, BindingUtils.JsonEncoding encoding)  
      static java.lang.Object unQualify​(QualifiedValue qv)
      Takes the value out of a QV and tries to turn it into something more usable for scripting, that also will to-string into json.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • unQualify

        public static java.lang.Object unQualify​(QualifiedValue qv)
        Takes the value out of a QV and tries to turn it into something more usable for scripting, that also will to-string into json.
      • toJsonDeep

        public static com.inductiveautomation.ignition.common.gson.JsonElement toJsonDeep​(java.lang.Object obj)
        Converts the given object to a document element. Will convert deep, digging into maps, lists, arrays, and datasets. Will also un-wrap any qualified values.
      • toJsonDeep

        public static com.inductiveautomation.ignition.common.gson.JsonElement toJsonDeep​(java.lang.Object obj,
                                                                                          BindingUtils.JsonEncoding encoding)
      • datasetToJson

        public static com.inductiveautomation.ignition.common.gson.JsonElement datasetToJson​(Dataset dataset)