Top Description Inners Fields Constructors Methods
com.sun.jna.platform.win32.COM

public Class TypeLibUtil

extends Object
Class Inheritance
Imports
com.sun.jna.Native, .Pointer, com.sun.jna.platform.win32.Guid.CLSID, .Kernel32, .OaIdl.MEMBERID, .OaIdl.TLIBATTR, .OaIdl.TYPEKIND, .Ole32, .OleAuto, .WTypes, .WTypes.BSTRByReference, .WTypes.LPOLESTR, .WinDef.BOOLByReference, .WinDef.DWORDByReference, .WinDef.LCID, .WinDef.UINT, .WinDef.ULONG, .WinDef.USHORTByReference, .WinNT.HRESULT, com.sun.jna.ptr.PointerByReference

Wrapper class for the class ITypeLibUtil.
Author
[email protected] The Class ITypeLibUtil.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
TypeLibUtil.FindName

The Class FindName.

public static class
TypeLibUtil.IsName

The Class IsName.

public static class
TypeLibUtil.TypeLibDoc

The Class TypeLibDoc.

Field Summary

Modifier and TypeField and Description
private String
docString

The doc string.

private int
helpContext

The help context.

private String
helpFile

The help file.

private WinDef.LCID
lcid

The lcid.

private String
name

The name.

public static final OleAuto
OLEAUTO

The Constant OLEAUTO.

private ITypeLib
typelib

The typelib.

Constructor Summary

AccessConstructor and Description
public
TypeLibUtil(String
the clsid str
clsidStr
,
int
the w ver major
wVerMajor
,
int
the w ver minor
wVerMinor
)

Instantiates a new i type lib util.

public

Method Summary

Modifier and TypeMethod and Description
public TypeLibUtil.FindName

Returns:

the find name
FindName
(String
the name
name
,
int
the hash val or 0 if unknown
hashVal
,
short
maximum number of items to search
maxResult
)

Find name.

public String

Returns:

the doc string
getDocString
()

Gets the doc string.

public TypeLibUtil.TypeLibDoc

Returns:

the documentation
getDocumentation
(int
the index
index
)

Gets the documentation.

public int

Returns:

the help context
getHelpContext
()

Gets the help context.

public String

Returns:

the help file
getHelpFile
()

Gets the help file.

public WinDef.LCID

Returns:

the lcid
getLcid
()

Gets the lcid.

public OaIdl.TLIBATTR

Returns:

the lib attr
getLibAttr
()

Gets the lib attr.

public String

Returns:

the name
getName
()

Gets the name.

public TypeComp

Returns:

the i type comp. by reference
GetTypeComp
()

Gets the type comp.

public ITypeInfo

Returns:

the type info
getTypeInfo
(int
the index
index
)

Gets the type info.

public int

Returns:

the type info count
getTypeInfoCount
()

Gets the type info count.

public OaIdl.TYPEKIND

Returns:

the type info type
getTypeInfoType
(int
the index
index
)

Gets the type info type.

public TypeInfoUtil

Returns:

the type info util
getTypeInfoUtil
(int
the index
index
)

Gets the type info util.

public ITypeLib

Returns:

the typelib
getTypelib
()

Gets the typelib.

private void
initTypeLibInfo()

Inits the type lib info.

public TypeLibUtil.IsName

Returns:

the checks if is name
IsName
(String
the name buf
nameBuf
,
int
the hash val
hashVal
)

Checks if is name.

public void
ReleaseTLibAttr(OaIdl.TLIBATTR
the t lib attr
pTLibAttr
)

Release t lib attr.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

docStringback to summary
private String docString

The doc string.

helpContextback to summary
private int helpContext

The help context.

helpFileback to summary
private String helpFile

The help file.

lcidback to summary
private WinDef.LCID lcid

The lcid.

nameback to summary
private String name

The name.

OLEAUTOback to summary
public static final OleAuto OLEAUTO

The Constant OLEAUTO.

typelibback to summary
private ITypeLib typelib

The typelib.

Constructor Detail

TypeLibUtilback to summary
public TypeLibUtil(String clsidStr, int wVerMajor, int wVerMinor)

Instantiates a new i type lib util.

Parameters
clsidStr:String

the clsid str

wVerMajor:int

the w ver major

wVerMinor:int

the w ver minor

TypeLibUtilback to summary
public TypeLibUtil(String file)

Method Detail

FindNameback to summary
public TypeLibUtil.FindName FindName(String name, int hashVal, short maxResult)

Find name.

Parameters
name:String

the name

hashVal:int

the hash val or 0 if unknown

maxResult:short

maximum number of items to search

Returns:TypeLibUtil.FindName

the find name

getDocStringback to summary
public String getDocString()

Gets the doc string.

Returns:String

the doc string

getDocumentationback to summary
public TypeLibUtil.TypeLibDoc getDocumentation(int index)

Gets the documentation.

Parameters
index:int

the index

Returns:TypeLibUtil.TypeLibDoc

the documentation

getHelpContextback to summary
public int getHelpContext()

Gets the help context.

Returns:int

the help context

getHelpFileback to summary
public String getHelpFile()

Gets the help file.

Returns:String

the help file

getLcidback to summary
public WinDef.LCID getLcid()

Gets the lcid.

Returns:WinDef.LCID

the lcid

getLibAttrback to summary
public OaIdl.TLIBATTR getLibAttr()

Gets the lib attr.

Returns:OaIdl.TLIBATTR

the lib attr

getNameback to summary
public String getName()

Gets the name.

Returns:String

the name

GetTypeCompback to summary
public TypeComp GetTypeComp()

Gets the type comp.

Returns:TypeComp

the i type comp. by reference

getTypeInfoback to summary
public ITypeInfo getTypeInfo(int index)

Gets the type info.

Parameters
index:int

the index

Returns:ITypeInfo

the type info

getTypeInfoCountback to summary
public int getTypeInfoCount()

Gets the type info count.

Returns:int

the type info count

getTypeInfoTypeback to summary
public OaIdl.TYPEKIND getTypeInfoType(int index)

Gets the type info type.

Parameters
index:int

the index

Returns:OaIdl.TYPEKIND

the type info type

getTypeInfoUtilback to summary
public TypeInfoUtil getTypeInfoUtil(int index)

Gets the type info util.

Parameters
index:int

the index

Returns:TypeInfoUtil

the type info util

getTypelibback to summary
public ITypeLib getTypelib()

Gets the typelib.

Returns:ITypeLib

the typelib

initTypeLibInfoback to summary
private void initTypeLibInfo()

Inits the type lib info.

IsNameback to summary
public TypeLibUtil.IsName IsName(String nameBuf, int hashVal)

Checks if is name.

Parameters
nameBuf:String

the name buf

hashVal:int

the hash val

Returns:TypeLibUtil.IsName

the checks if is name

ReleaseTLibAttrback to summary
public void ReleaseTLibAttr(OaIdl.TLIBATTR pTLibAttr)

Release t lib attr.

Parameters
pTLibAttr:OaIdl.TLIBATTR

the t lib attr

com.sun.jna.platform.win32.COM back to summary

public Class TypeLibUtil.FindName

extends Object
Class Inheritance

The Class FindName.
Author
[email protected] The Class FindName.

Field Summary

Modifier and TypeField and Description
private String
nameBuf

The name buf.

private short
pcFound

The pc found.

private Pointer[]
pTInfo

The p t info.

private OaIdl.MEMBERID[]
rgMemId

The rg mem id.

Constructor Summary

AccessConstructor and Description
pack-priv
FindName(String
the name buf
nameBuf
,
Pointer[]
the t info
pTInfo
,
OaIdl.MEMBERID[]
the rg mem id
rgMemId
,
short pcFound)

Instantiates a new find name.

Method Summary

Modifier and TypeMethod and Description
public short

Returns:

the found
getFound
()

Gets the found.

public OaIdl.MEMBERID[]

Returns:

the mem id
getMemId
()

Gets the mem id.

public String

Returns:

the name buf
getNameBuf
()

Gets the name buf.

public ITypeInfo[]

Returns:

the t info
getTInfo
()

Gets the t info.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nameBufback to summary
private String nameBuf

The name buf.

pcFoundback to summary
private short pcFound

The pc found.

pTInfoback to summary
private Pointer[] pTInfo

The p t info.

rgMemIdback to summary
private OaIdl.MEMBERID[] rgMemId

The rg mem id.

Constructor Detail

FindNameback to summary
pack-priv FindName(String nameBuf, Pointer[] pTInfo, OaIdl.MEMBERID[] rgMemId, short pcFound)

Instantiates a new find name.

Parameters
nameBuf:String

the name buf

pTInfo:Pointer[]

the t info

rgMemId:OaIdl.MEMBERID[]

the rg mem id

Method Detail

getFoundback to summary
public short getFound()

Gets the found.

Returns:short

the found

getMemIdback to summary
public OaIdl.MEMBERID[] getMemId()

Gets the mem id.

Returns:OaIdl.MEMBERID[]

the mem id

getNameBufback to summary
public String getNameBuf()

Gets the name buf.

Returns:String

the name buf

getTInfoback to summary
public ITypeInfo[] getTInfo()

Gets the t info.

Returns:ITypeInfo[]

the t info

com.sun.jna.platform.win32.COM back to summary

public Class TypeLibUtil.IsName

extends Object
Class Inheritance

The Class IsName.
Author
[email protected] The Class IsName.

Field Summary

Modifier and TypeField and Description
private boolean
name

The name.

private String
nameBuf

The name buf.

Constructor Summary

AccessConstructor and Description
public
IsName(String
the name buf
nameBuf
,
boolean
the name
name
)

Instantiates a new checks if is name.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the name buf
getNameBuf
()

Gets the name buf.

public boolean

Returns:

true, if is name
isName
()

Checks if is name.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nameback to summary
private boolean name

The name.

nameBufback to summary
private String nameBuf

The name buf.

Constructor Detail

IsNameback to summary
public IsName(String nameBuf, boolean name)

Instantiates a new checks if is name.

Parameters
nameBuf:String

the name buf

name:boolean

the name

Method Detail

getNameBufback to summary
public String getNameBuf()

Gets the name buf.

Returns:String

the name buf

isNameback to summary
public boolean isName()

Checks if is name.

Returns:boolean

true, if is name

com.sun.jna.platform.win32.COM back to summary

public Class TypeLibUtil.TypeLibDoc

extends Object
Class Inheritance

The Class TypeLibDoc.
Author
[email protected] The Class TypeLibDoc.

Field Summary

Modifier and TypeField and Description
private String
docString

The doc string.

private int
helpContext

The help context.

private String
helpFile

The help file.

private String
name

The name.

Constructor Summary

AccessConstructor and Description
public
TypeLibDoc(String
the name
name
,
String
the doc string
docString
,
int
the help context
helpContext
,
String
the help file
helpFile
)

Instantiates a new type lib doc.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the doc string
getDocString
()

Gets the doc string.

public int

Returns:

the help context
getHelpContext
()

Gets the help context.

public String

Returns:

the help file
getHelpFile
()

Gets the help file.

public String

Returns:

the name
getName
()

Gets the name.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

docStringback to summary
private String docString

The doc string.

helpContextback to summary
private int helpContext

The help context.

helpFileback to summary
private String helpFile

The help file.

nameback to summary
private String name

The name.

Constructor Detail

TypeLibDocback to summary
public TypeLibDoc(String name, String docString, int helpContext, String helpFile)

Instantiates a new type lib doc.

Parameters
name:String

the name

docString:String

the doc string

helpContext:int

the help context

helpFile:String

the help file

Method Detail

getDocStringback to summary
public String getDocString()

Gets the doc string.

Returns:String

the doc string

getHelpContextback to summary
public int getHelpContext()

Gets the help context.

Returns:int

the help context

getHelpFileback to summary
public String getHelpFile()

Gets the help file.

Returns:String

the help file

getNameback to summary
public String getName()

Gets the name.

Returns:String

the name