java.lang.Object
org.python.core.adapter.ClassAdapter
com.inductiveautomation.ignition.common.script.adapters.DatasetPyAdapter
All Implemented Interfaces:
org.python.core.adapter.PyObjectAdapter

public class DatasetPyAdapter extends org.python.core.adapter.ClassAdapter
A Jython class adapter that automatically wraps Ignition Dataset objects in a PyDataset for use in scripts.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.python.core.PyObject
    Wraps the given Dataset in a new PyDataset instance.
    boolean
    Checks if the object is a Dataset and not already wrapped in a PyDataset.

    Methods inherited from class org.python.core.adapter.ClassAdapter

    getAdaptedClass

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DatasetPyAdapter

      public DatasetPyAdapter()
  • Method Details

    • canAdapt

      public boolean canAdapt(Object o)
      Checks if the object is a Dataset and not already wrapped in a PyDataset.
      Specified by:
      canAdapt in interface org.python.core.adapter.PyObjectAdapter
      Overrides:
      canAdapt in class org.python.core.adapter.ClassAdapter
    • adapt

      public org.python.core.PyObject adapt(Object o)
      Wraps the given Dataset in a new PyDataset instance.