de.intarsys.nativec.type
Class NativeWideString

java.lang.Object
  extended by de.intarsys.nativec.type.NativeObject
      extended by de.intarsys.nativec.type.NativeWideString
All Implemented Interfaces:
INativeObject

public class NativeWideString
extends NativeObject

A wrapper for a C wide (double byte) string.


Field Summary
static NativeWideStringType META
          The meta class instance
 
Fields inherited from class de.intarsys.nativec.type.NativeObject
DEBUG, handle, SHIFT_INT, SHIFT_LONG, SHIFT_LONGLONG, SIZE_BYTE, SIZE_INT, SIZE_LONG, SIZE_LONGLONG, SIZE_PTR, SIZE_SHORT
 
Constructor Summary
protected NativeWideString(NativeWideStringType pType)
           
protected NativeWideString(NativeWideStringType pType, INativeHandle handle)
           
protected NativeWideString(NativeWideStringType pType, java.lang.String value)
           
  NativeWideString(java.lang.String value)
           
 
Method Summary
static NativeWideString createFromAddress(long address)
           
 int getByteCount()
          The number of bytes occupied by this.
 INativeType getNativeType()
          The meta information and behavior for the NativeObject.
 java.lang.Object getValue()
          A Java side representation from the memory.
 void setValue(java.lang.Object value)
          Assign (and marshall to memory) the Java side representation.
 void setValue(java.lang.String value)
           
 java.lang.String stringValue()
          The java object corresponding to this.
 
Methods inherited from class de.intarsys.nativec.type.NativeObject
allocate, cast, createReference, getByte, getByteArray, getBytes, getCLong, getInt, getNativeHandle, getNativeHandle, getShort, getString, getWideString, isNull, setByte, setByteArray, setCLong, setInt, setNativeHandle, setShort, setString, setWideString, toNestedString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

META

public static final NativeWideStringType META
The meta class instance

Constructor Detail

NativeWideString

protected NativeWideString(NativeWideStringType pType)

NativeWideString

protected NativeWideString(NativeWideStringType pType,
                           INativeHandle handle)

NativeWideString

protected NativeWideString(NativeWideStringType pType,
                           java.lang.String value)

NativeWideString

public NativeWideString(java.lang.String value)
Method Detail

createFromAddress

public static NativeWideString createFromAddress(long address)

getByteCount

public int getByteCount()
Description copied from class: NativeObject
The number of bytes occupied by this.

Specified by:
getByteCount in class NativeObject
Returns:
The number of bytes occupied by this.

getNativeType

public INativeType getNativeType()
Description copied from class: NativeObject
The meta information and behavior for the NativeObject.

There is exactly one meta instance for all NativeObject instances of a certain type.

Specified by:
getNativeType in interface INativeObject
Specified by:
getNativeType in class NativeObject
Returns:
The meta information and behavior for the NativeObject.

getValue

public java.lang.Object getValue()
Description copied from interface: INativeObject
A Java side representation from the memory.

Returns:
A Java side representation for the INativeObject.

setValue

public void setValue(java.lang.Object value)
Description copied from interface: INativeObject
Assign (and marshall to memory) the Java side representation.

Parameters:
value - The new Java value.

setValue

public void setValue(java.lang.String value)

stringValue

public java.lang.String stringValue()
The java object corresponding to this.

Returns:
The java object corresponding to this.