Class DocumentPyAdapter
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
ConstructorsConstructorDescriptionRegisters specific ClassAdapter instances for various Document-related classes. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.python.core.PyObjectelementToPy(DocumentElement element) Converts document elements to PyObjects not as wrappers, but instead converting them to PyDictionaries and PyListsMethods inherited from class org.python.core.adapter.ExtensiblePyObjectAdapter
adapt, add, addPostClass, addPreClass, canAdapt
-
Constructor Details
-
DocumentPyAdapter
public DocumentPyAdapter()Registers specific ClassAdapter instances for various Document-related classes.
-
-
Method Details
-
elementToPy
Converts document elements to PyObjects not as wrappers, but instead converting them to PyDictionaries and PyLists
-