org.rococoa
Class IDByReference

java.lang.Object
  extended by com.sun.jna.PointerType
      extended by com.sun.jna.ptr.ByReference
          extended by org.rococoa.IDByReference
All Implemented Interfaces:
com.sun.jna.NativeMapped

public class IDByReference
extends com.sun.jna.ptr.ByReference

Used when we need to pass an ID to be filled in by called code.


Constructor Summary
IDByReference()
           
IDByReference(ID value)
           
 
Method Summary
 java.lang.Object fromNative(java.lang.Object nativeValue, com.sun.jna.FromNativeContext context)
           
 ID getValue()
           
 void setValue(ID value)
           
 java.lang.Object toNative()
          Convert this object to its native type (a Pointer).
 
Methods inherited from class com.sun.jna.PointerType
equals, getPointer, hashCode, nativeType, setPointer
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IDByReference

public IDByReference()

IDByReference

public IDByReference(ID value)
Method Detail

setValue

public void setValue(ID value)

getValue

public ID getValue()

fromNative

public java.lang.Object fromNative(java.lang.Object nativeValue,
                                   com.sun.jna.FromNativeContext context)
Specified by:
fromNative in interface com.sun.jna.NativeMapped
Overrides:
fromNative in class com.sun.jna.PointerType

toNative

public java.lang.Object toNative()
Convert this object to its native type (a Pointer).

Specified by:
toNative in interface com.sun.jna.NativeMapped
Overrides:
toNative in class com.sun.jna.PointerType


Copyright © 2009. All Rights Reserved.