com.omnipilot.lassopro
Class LassoTypeRef

java.lang.Object
  extended bycom.omnipilot.lassopro.LassoTypeRef

public class LassoTypeRef
extends java.lang.Object

Used for creating and manipulating custom Lasso types. This class is used by the developer as an opaque handle to an internally allocated Variant. Variants allocated in this manner are garbage collected by the API at the end of the current LJAPI call. This means that LassoTypeRef's are not usable in across subsequent LJAPI invocations. The method of garbage collection will be the same as that currently used for LassoValue's in that the current LassoCall context retains a list of all Variants allocated, and destroys each of them after the return of the current LJAPI call.

                LassoTypeRef array = new LassoTypeRef();

                if ( lasso.typeAlloc( array, LassoTypeRef.LASSO_ARRAY ) == ERR_NOERR && !array.isNull() ) 
                {
                    LassoValue val = new LassoValue();
                    lasso.typeGetName( array, val );
                    lasso.outputTagData( "Type name: " + val.data() );
                }
        


Field Summary
static java.lang.String LASSO_ARRAY
           
static java.lang.String LASSO_BOOLEAN
           
static java.lang.String LASSO_DATE
           
static java.lang.String LASSO_DECIMAL
           
static java.lang.String LASSO_INTEGER
           
static java.lang.String LASSO_MAP
           
static java.lang.String LASSO_NULL
           
static java.lang.String LASSO_PAIR
           
static java.lang.String LASSO_STRING
           
static java.lang.String LASSO_TAG
           
 
Constructor Summary
LassoTypeRef()
           
 
Method Summary
 boolean isNull()
          returns true if this object does not refer to a valid type instance.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LASSO_NULL

public static final java.lang.String LASSO_NULL
See Also:
Constant Field Values

LASSO_BOOLEAN

public static final java.lang.String LASSO_BOOLEAN
See Also:
Constant Field Values

LASSO_STRING

public static final java.lang.String LASSO_STRING
See Also:
Constant Field Values

LASSO_INTEGER

public static final java.lang.String LASSO_INTEGER
See Also:
Constant Field Values

LASSO_DECIMAL

public static final java.lang.String LASSO_DECIMAL
See Also:
Constant Field Values

LASSO_DATE

public static final java.lang.String LASSO_DATE
See Also:
Constant Field Values

LASSO_PAIR

public static final java.lang.String LASSO_PAIR
See Also:
Constant Field Values

LASSO_ARRAY

public static final java.lang.String LASSO_ARRAY
See Also:
Constant Field Values

LASSO_MAP

public static final java.lang.String LASSO_MAP
See Also:
Constant Field Values

LASSO_TAG

public static final java.lang.String LASSO_TAG
See Also:
Constant Field Values
Constructor Detail

LassoTypeRef

public LassoTypeRef()
Method Detail

isNull

public boolean isNull()
returns true if this object does not refer to a valid type instance. This could be a result of a failed LassoCall method.


toString

public java.lang.String toString()