public final class JILocalInterfaceDefinition extends Object implements Serializable
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 and Description |
|---|
JILocalInterfaceDefinition(String interfaceIdentifier)
Creates an Interface definition.
|
JILocalInterfaceDefinition(String interfaceIdentifier,
boolean isDispInterface)
Creates an Interface definition.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMethodDescriptor(JILocalMethodDescriptor methodDescriptor)
Adds a Method Descriptor.
|
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(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(String methodName)
Removes the method descriptor identified by it's name.
|
public JILocalInterfaceDefinition(String interfaceIdentifier)
dispinterface property is true.interfaceIdentifier - IID of the COM interface being implemented.public JILocalInterfaceDefinition(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.public void addMethodDescriptor(JILocalMethodDescriptor methodDescriptor)
Please note that overloaded methods are not allowed.
methodDescriptor - 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(String name)
name - null if no method by this name was found.public JILocalMethodDescriptor[] getMethodDescriptors()
public 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(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.Copyright © 2017 LSST. All rights reserved.