Class COMIUnknownObject

java.lang.Object
com.altova.automation.libs.COMIUnknownObject
Direct Known Subclasses:
COMIDispatchObject

public class COMIUnknownObject
extends java.lang.Object
Represents a COM object implementing IUnknown. Communication with the COM object is done via JNI implemented in AltovaAutomation.dll.
Since:
2011 Rel. 3
  • Method Summary

    Modifier and Type Method Description
    void dispose()
    Release all references held to this object.
    boolean equals​(java.lang.Object obj)
    Two COM objects are defined as equal if we retrieved identical COM pointers for them.
    long getCOMInterfacePointer()
    Internal use only.
    boolean isNull()  

    Methods inherited from class java.lang.Object

    getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • equals

      public boolean equals​(java.lang.Object obj)
      Two COM objects are defined as equal if we retrieved identical COM pointers for them.
      This is specifically true for two objects where one was constructed from the other using Constructor(COMIUnknownObject object). Else, the behavior of equals depends on the COM server in use.
      Overrides:
      equals in class java.lang.Object
    • getCOMInterfacePointer

      public long getCOMInterfacePointer()
      Internal use only.
      Returns:
      internal representation for a COM object.
    • isNull

      public boolean isNull()
      Returns:
      if object is the COM NULL object. Invoking any COM method on such an object will throw an Exception.
    • dispose

      public void dispose()
      Release all references held to this object.

      REMARK:
      Call this method on the COM server's application object at the end of your program to release the COM server and allow it to shut-down properly.