JNative v1.3 project : see http://jnative.sf.net


org.xvolks.jnative
Enum Type

java.lang.Object
  extended by java.lang.Enum<Type>
      extended by org.xvolks.jnative.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Type>

public enum Type
extends java.lang.Enum<Type>

This enumeration manages the different types of data nedeed by JNative.
$Id: Type.java,v 1.7 2006/11/07 22:04:55 mdenty Exp $; This software is released under the LGPL.


Enum Constant Summary
DOUBLE
          Used for in params of type double
FLOAT
          Used for in params of type float
INT
          Used for in params of type bool, byte to long (32 bits)
LONG
          Used for in params of type int64 (64 bits)
PSTRUCT
          Not use directly, use a Pointer object instead
This is used internaly for out parameters.
STRING
          Used for in params of type const char*, LPCSTR
VOID
          Used only for return values
 
Method Summary
 int getNativeType()
           
 java.lang.String getType()
           
static Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

VOID

public static final Type VOID
Used only for return values


INT

public static final Type INT
Used for in params of type bool, byte to long (32 bits)


LONG

public static final Type LONG
Used for in params of type int64 (64 bits)


DOUBLE

public static final Type DOUBLE
Used for in params of type double


FLOAT

public static final Type FLOAT
Used for in params of type float


STRING

public static final Type STRING
Used for in params of type const char*, LPCSTR


PSTRUCT

public static final Type PSTRUCT
Not use directly, use a Pointer object instead
This is used internaly for out parameters.

Method Detail

values

public static Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for(Type c : Type.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Type valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

getType

public java.lang.String getType()

getNativeType

public int getNativeType()

JNative v1.3 project : see http://jnative.sf.net