|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jinterop.dcom.core.JILocalInterfaceDefinition
public final class JILocalInterfaceDefinition
Forms the definition of a COM interface to be used in callbacks. Method overloads are not allowed.
Please refer to MSInternetExplorer, Test_ITestServer2_Impl, SampleTestServer
and MSShell examples for more details on how to use this class.
Constructor Summary | |
---|---|
JILocalInterfaceDefinition(java.lang.String interfaceIdentifier)
Creates an Interface definition. |
|
JILocalInterfaceDefinition(java.lang.String interfaceIdentifier,
boolean isDispInterface)
Creates an Interface definition. |
Method Summary | |
---|---|
void |
addMethodDescriptor(JILocalMethodDescriptor methodDescriptor)
Adds a Method Descriptor. |
java.lang.String |
getInterfaceIdentifier()
Returns the interface identifier ( IID ) of this definition. |
JILocalMethodDescriptor |
getMethodDescriptor(int opnum)
Returns the method descriptor identified by it's number. |
JILocalMethodDescriptor |
getMethodDescriptor(java.lang.String name)
Returns the method descriptor identified by it's name. |
JILocalMethodDescriptor |
getMethodDescriptorForDispId(int dispId)
Returns the method descriptor identified by it's dispId. |
JILocalMethodDescriptor[] |
getMethodDescriptors()
Returns all method descriptors. |
boolean |
isDispInterface()
Returns status whether this interface supports IDispatch or not. |
void |
removeMethodDescriptor(int opnum)
Removes the method descriptor identified by it's number. |
void |
removeMethodDescriptor(java.lang.String methodName)
Removes the method descriptor identified by it's name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JILocalInterfaceDefinition(java.lang.String interfaceIdentifier)
dispinterface
property is true
.
interfaceIdentifier
- IID
of the COM interface being implemented.public JILocalInterfaceDefinition(java.lang.String interfaceIdentifier, boolean isDispInterface)
isDispInterface
interface to false
if this interface does not support IDispatch
based calls.
interfaceIdentifier
- IID
of the COM interface being implemented.isDispInterface
- true
if IDispatch
("dispinterface
")
is supported , false
otherwise.Method Detail |
---|
public void addMethodDescriptor(JILocalMethodDescriptor methodDescriptor)
Please note that overloaded methods are not allowed.
methodDescriptor
-
java.lang.IllegalArgumentException
- if a method by the same name already exists.public JILocalMethodDescriptor getMethodDescriptor(int opnum)
opnum
-
null
if no method by this opnum
was found.public JILocalMethodDescriptor getMethodDescriptorForDispId(int dispId)
dispId
-
null
if no method by this dispId
was found.public JILocalMethodDescriptor getMethodDescriptor(java.lang.String name)
name
-
null
if no method by this name
was found.public JILocalMethodDescriptor[] getMethodDescriptors()
public java.lang.String getInterfaceIdentifier()
IID
) of this definition.
public void removeMethodDescriptor(int opnum)
Please note that removal of a sequential method can have unpredictable results during a call.
opnum
- addMethodDescriptor(JILocalMethodDescriptor)
public void removeMethodDescriptor(java.lang.String methodName)
Please note that removal of a sequential method can have unpredictable results during a call.
methodName
- addMethodDescriptor(JILocalMethodDescriptor)
public boolean isDispInterface()
IDispatch
or not.
true
if IDispatch
is supported.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |