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

public class DocumentPyAdapter extends org.python.core.adapter.ExtensiblePyObjectAdapter
An extensible Jython object adapter that handles the conversion of Ignition Document types (Document, DocumentArray, DocumentPrimitive) into their corresponding Jython-friendly wrappers.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Registers specific ClassAdapter instances for various Document-related classes.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.python.core.PyObject
    Converts document elements to PyObjects not as wrappers, but instead converting them to PyDictionaries and PyLists

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

    adapt, add, addPostClass, addPreClass, canAdapt

    Methods inherited from class java.lang.Object

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

    • DocumentPyAdapter

      public DocumentPyAdapter()
      Registers specific ClassAdapter instances for various Document-related classes.
  • Method Details

    • elementToPy

      public static org.python.core.PyObject elementToPy(DocumentElement element)
      Converts document elements to PyObjects not as wrappers, but instead converting them to PyDictionaries and PyLists