com.jniwrapper.win32.com.types
Class IID

java.lang.Object
  extended bycom.jniwrapper.Parameter
      extended bycom.jniwrapper.Structure
          extended bycom.jniwrapper.win32.com.types.GUID
              extended bycom.jniwrapper.win32.com.types.IID
All Implemented Interfaces:
AlignmentAwareParameter, CompositeParameter

public class IID
extends GUID

This class represents an Interface Identifier (IID) (a specific GUID), which allows a client code to get precise version of a required interface.


Field Summary
static IID IID_NULL
           
 
Fields inherited from class com.jniwrapper.win32.com.types.GUID
GUID_NULL
 
Fields inherited from class com.jniwrapper.Structure
f
 
Fields inherited from class com.jniwrapper.Parameter
LICENSE_TYPE, V
 
Constructor Summary
IID()
           
IID(GUID src)
           
IID(int d1, short d2, short d3, byte b1, byte b2, byte b3, byte b4, byte b5, byte b6, byte b7, byte b8)
           
IID(java.lang.String piid)
          Creates an IID from its string presentation.
 
Method Summary
 java.lang.Object clone()
           
static IID create(java.lang.String iid)
          Creates a new instance for the passed string.
static IID createIIDFromString(java.lang.String idd)
          Creates IID object from a string using IIDFromString API function.
 
Methods inherited from class com.jniwrapper.win32.com.types.GUID
equals, getData1, getData2, getData3, getData4, getOleFunction, hashCode, setData1, setData2, setData3, setData4, string2GUID, toString
 
Methods inherited from class com.jniwrapper.Structure
a, a, acceptIOPerformer, addMembers, computeLength, getAlignmentRequirement, getDebugInfo, getFirstMemberSize, getLength, getMember, getMembers, getOffsets, init, init, initFrom, pop, push, read, setDataBuffer, write
 
Methods inherited from class com.jniwrapper.Parameter
, a, asReturnValue, b, dataBufferAssigned, getAlignedLength, getDataBuffer, getDataBufferOffset, indent, read, read, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

IID_NULL

public static final IID IID_NULL
Constructor Detail

IID

public IID()

IID

public IID(int d1,
           short d2,
           short d3,
           byte b1,
           byte b2,
           byte b3,
           byte b4,
           byte b5,
           byte b6,
           byte b7,
           byte b8)

IID

public IID(GUID src)

IID

public IID(java.lang.String piid)
Creates an IID from its string presentation.

Parameters:
piid - a string presentation of IID.
Method Detail

createIIDFromString

public static IID createIIDFromString(java.lang.String idd)
Creates IID object from a string using IIDFromString API function.

Parameters:
idd - iid string
Returns:
IID object
Throws:
ComException - if operation fails

create

public static IID create(java.lang.String iid)
Creates a new instance for the passed string. Unlike the constructor with a string parameter, this method doesn't throw the exception on error and is used when exceptions must be avoided. This factory method is used by the COM integration code generation utility.

Parameters:
iid - a string representation of required CLSID.
Returns:
a new instance or null if the operation fails.

clone

public java.lang.Object clone()
Overrides:
clone in class GUID