Package com.altova.automation.libs
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 voiddispose()Release all references held to this object.booleanequals(java.lang.Object obj)Two COM objects are defined as equal if we retrieved identical COM pointers for them.longgetCOMInterfacePointer()Internal use only.booleanisNull()
-
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:
equalsin classjava.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.
-