com.moesol.bindings.platform_sdk.component_services
Class GUID

java.lang.Object
  extended by com.moesol.bindings.NativeStructure
      extended by com.moesol.bindings.platform_sdk.component_services.GUID
All Implemented Interfaces:
Comparable

public class GUID
extends NativeStructure

Emulate Win32 GUID structure in Java. Not generated by tlb2-stdole because it is marked as [hidden].


Nested Class Summary
static class GUID.Array
          Represent a native array of these structures
 
Field Summary
static GUID NULL
           
 
Constructor Summary
GUID()
          Create a new instance
GUID(ByteBuffer bb)
          Wrap a guid onto a byte buffer.
GUID(int d1, short d2, short d3, byte[] d4)
           
 
Method Summary
static GUID fromString(String string)
           
 int get_Data1()
           
 short get_Data2()
           
 short get_Data3()
           
 byte[] get_Data4()
           
 void set_Data1(int v)
           
 void set_Data2(short v)
           
 void set_Data3(short v)
           
 void set_Data4(byte[] v)
           
static int sizeof()
           
 String toString()
           
 
Methods inherited from class com.moesol.bindings.NativeStructure
_getByteBuffer, _getStructureBytes, clearRecord, compareTo, equals, freeLpwstr, getArray, getBool, getBOOLArray, getBstr, getBSTRArray, getBstrArray, getByte, getBYTEArray, getByteArray, getByteBuffer, getByteSize, getByteString, getDate, getDouble, getDOUBLEArray, getDoubleArray, getDoubleSize, getFloat, getFLOATArray, getFloatArray, getFloatSize, getInt, getINTArray, getIntArray, getInterface, getIntSize, getLong, getLONGArray, getLongSize, getLpwstr, getPtrInt, getPtrShort, getPtrShortString, getPtrStruct, getPtrUnsignedByte, getPtrUnsignedShort, getPtrVariant, getPtrvoid, getRemaining, getSCODE, getShort, getSHORTArray, getShortArray, getShortSize, getSlice, getSlice, getString, getStruct, getStruct, getStructArray, getUINTArray, getUnsignedByte, getUnsignedByteArray, getUnsignedByteSize, getUnsignedInt, getUnsignedIntArray, getUnsignedIntSize, getUnsignedLongLong, getUnsignedLongSize, getUnsignedShort, getUnsignedShortArray, getUnsignedShortSize, getUSHORTArray, getVariant, getVARIANTArray, hashCode, order, order, putArray, putBool, putBOOLArray, putBstr, putBstrArray, putBSTRArray, putByte, putByteArray, putBYTEArray, putByteString, putDate, putDouble, putDOUBLEArray, putDoubleArray, putFloat, putFLOATArray, putFloatArray, putInt, putINTArray, putIntArray, putInterface, putLong, putLONGArray, putLpwstr, putPtrInt, putPtrShort, putPtrShortString, putPtrStruct, putPtrUnsignedByte, putPtrUnsignedShort, putPtrVariant, putPtrvoid, putSCODE, putShort, putShortArray, putSHORTArray, putString, putStruct, putStruct, putStructArray, putUINTArray, putUnsignedByte, putUnsignedByteArray, putUnsignedInt, putUnsignedIntArray, putUnsignedLongLong, putUnsignedShort, putUnsignedShortArray, putUSHORTArray, putVariant, putVARIANTArray, stringFromC, stringFromC, zero
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL

public static final GUID NULL
Constructor Detail

GUID

public GUID()
Create a new instance


GUID

public GUID(ByteBuffer bb)
Wrap a guid onto a byte buffer.

Parameters:
bb -

GUID

public GUID(int d1,
            short d2,
            short d3,
            byte[] d4)
Method Detail

sizeof

public static int sizeof()
Returns:
static size of native structure.

set_Data1

public void set_Data1(int v)

get_Data1

public int get_Data1()

set_Data2

public void set_Data2(short v)

get_Data2

public short get_Data2()

set_Data3

public void set_Data3(short v)

get_Data3

public short get_Data3()

set_Data4

public void set_Data4(byte[] v)

get_Data4

public byte[] get_Data4()

toString

public String toString()
Overrides:
toString in class Object

fromString

public static GUID fromString(String string)


Copyright © 2004 Moebius Solutions, Inc. All Rights Reserved.