com.blueworld.lassopro
Class LassoValue

java.lang.Object
  |
  +--com.blueworld.lassopro.LassoValue

public class LassoValue
extends java.lang.Object

Used for passing to, and returning values from LassoCall methods.

	LassoValue param = new LassoValue();
	if ( lasso.getTagParam( 0, param ) == ERR_NOERR ) {
	    lasso.outputTagData( "First tag param name: " 
                           + param.name() + ", value: " + param.value() );
	}
 	


Field Summary
static int TYPE_ARRAY
          array
static int TYPE_BLOB
          binary data
static int TYPE_BOOLEAN
          boolean
static int TYPE_CHAR
          string
static int TYPE_CODE
          substitution tag
static int TYPE_CUSTOM
          custom type
static int TYPE_DATETIME
          date
static int TYPE_DECIMAL
          decimal
static int TYPE_INT
          integer
static int TYPE_MAP
          map
static int TYPE_NULL
          null
static int TYPE_OBJECT
           
static int TYPE_PAIR
          pair
static int TYPE_PICT
           
static int TYPE_REFERENCE
          reference
 
Constructor Summary
LassoValue()
           
LassoValue(int type)
           
LassoValue(java.lang.String data)
           
LassoValue(java.lang.String name, java.lang.String data)
           
LassoValue(java.lang.String name, java.lang.String data, int type)
          Creates new LassoValue instance
 
Method Summary
 java.lang.String data()
          data field accessor
 java.lang.String name()
          name field accessor
 java.lang.String setData(java.lang.String data)
           
 java.lang.String setName(java.lang.String name)
           
 int setType(int type)
           
 java.lang.String toString()
           
 int type()
          Original type of the data returned from one of the LassoCall methods before it was converted to string: TYPE_CHAR for strings, TYPE_INT for integers, and so on.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_CHAR

public static final int TYPE_CHAR
string

See Also:
Constant Field Values

TYPE_NULL

public static final int TYPE_NULL
null

See Also:
Constant Field Values

TYPE_INT

public static final int TYPE_INT
integer

See Also:
Constant Field Values

TYPE_BOOLEAN

public static final int TYPE_BOOLEAN
boolean

See Also:
Constant Field Values

TYPE_PICT

public static final int TYPE_PICT
See Also:
Constant Field Values

TYPE_BLOB

public static final int TYPE_BLOB
binary data

See Also:
Constant Field Values

TYPE_DECIMAL

public static final int TYPE_DECIMAL
decimal

See Also:
Constant Field Values

TYPE_DATETIME

public static final int TYPE_DATETIME
date

See Also:
Constant Field Values

TYPE_OBJECT

public static final int TYPE_OBJECT
See Also:
Constant Field Values

TYPE_ARRAY

public static final int TYPE_ARRAY
array

See Also:
Constant Field Values

TYPE_MAP

public static final int TYPE_MAP
map

See Also:
Constant Field Values

TYPE_CODE

public static final int TYPE_CODE
substitution tag

See Also:
Constant Field Values

TYPE_REFERENCE

public static final int TYPE_REFERENCE
reference

See Also:
Constant Field Values

TYPE_PAIR

public static final int TYPE_PAIR
pair

See Also:
Constant Field Values

TYPE_CUSTOM

public static final int TYPE_CUSTOM
custom type

See Also:
Constant Field Values
Constructor Detail

LassoValue

public LassoValue()

LassoValue

public LassoValue(int type)

LassoValue

public LassoValue(java.lang.String data)

LassoValue

public LassoValue(java.lang.String name,
                  java.lang.String data)

LassoValue

public LassoValue(java.lang.String name,
                  java.lang.String data,
                  int type)
Creates new LassoValue instance

Method Detail

name

public java.lang.String name()
name field accessor


data

public java.lang.String data()
data field accessor


type

public int type()
Original type of the data returned from one of the LassoCall methods before it was converted to string: TYPE_CHAR for strings, TYPE_INT for integers, and so on. For unnamed tag parameters, it's a type of the data stored in the data field. Otherwise, it reflects the type of the name member.


setName

public java.lang.String setName(java.lang.String name)

setData

public java.lang.String setData(java.lang.String data)

setType

public int setType(int type)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object