public class NativeMappedConverter extends java.lang.Object implements TypeConverter
NativeMapped
.Constructor and Description |
---|
NativeMappedConverter(java.lang.Class<?> type) |
Modifier and Type | Method and Description |
---|---|
NativeMapped |
defaultValue() |
java.lang.Object |
fromNative(java.lang.Object nativeValue,
FromNativeContext context)
Convert the given native object into its Java representation using
the given context.
|
static NativeMappedConverter |
getInstance(java.lang.Class<?> cls) |
java.lang.Class<?> |
nativeType()
Indicate the native type used by this converter.
|
java.lang.Object |
toNative(java.lang.Object value,
ToNativeContext context)
Convert a Java type to an appropriate native type.
|
public static NativeMappedConverter getInstance(java.lang.Class<?> cls)
public NativeMapped defaultValue()
public java.lang.Object fromNative(java.lang.Object nativeValue, FromNativeContext context)
FromNativeConverter
fromNative
in interface FromNativeConverter
public java.lang.Class<?> nativeType()
FromNativeConverter
nativeType
in interface FromNativeConverter
nativeType
in interface ToNativeConverter
public java.lang.Object toNative(java.lang.Object value, ToNativeContext context)
ToNativeConverter
Pointer
NativeLong
Structure
WString
Buffer
(unsupported in direct mode)
toNative
in interface ToNativeConverter