com.iisc.jwc.jsheet
Class JSValue

java.lang.Object
  extended bycom.iisc.jwc.jsheet.JSValue
All Implemented Interfaces:
java.lang.Cloneable

public class JSValue
extends java.lang.Object
implements java.lang.Cloneable

JSValue holds the value of a cell.


Constructor Summary
JSValue()
          Constructs a default JSValue.
JSValue(com.iisc.jwc.orb.CValue cvalue)
          For internal use only!
 
Method Summary
 com.iisc.jwc.orb.CValue asCValue()
          For internal use only!
 java.lang.Object clone()
          Creates a copy of the existing JSValue object.
 double[] get_complex()
          Return the complex value.
 double get_dateTime()
          Returns the date/time value as a double.
 int get_errVal()
          Returns the error value.
 byte[] get_extended()
          Returns the extended value.
 boolean get_nullVal()
          Returns the null value.
 double get_numVal()
          Returns the numeric value.
 java.lang.String get_strVal()
          Returns the string value.
 boolean is_complex()
          Returns whether the value is a complex value.
 boolean is_dateTime()
          Returns whether the value is a date/time value.
 boolean is_errVal()
          Returns whether the value is an error value.
 boolean is_extended()
          Returns whether the value is an extended value.
 boolean is_nullVal()
          Returns whether the value is a null value.
 boolean is_numVal()
          Returns whether the value is numeric.
 boolean is_strVal()
          Returns whether the value is a string value.
 void set_complex(double[] complex)
          Sets the value to the complex value provided.
 void set_dateTime(double datetime)
          Sets the value to the date/time provided.
 void set_errVal(int errval)
          Set the value to the error value supplied.
 void set_extended(byte[] extended)
          Sets the value to the extended value supplied.
 void set_nullVal(boolean nullval)
          Sets the value to the null value supplied.
 void set_numVal(double numval)
          Set the value to the numeric value supplied.
 void set_strVal(java.lang.String string)
          Sets the value to the string value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSValue

public JSValue()
Constructs a default JSValue.


JSValue

public JSValue(com.iisc.jwc.orb.CValue cvalue)
For internal use only!

Method Detail

asCValue

public com.iisc.jwc.orb.CValue asCValue()
For internal use only!


clone

public java.lang.Object clone()
Creates a copy of the existing JSValue object.

Returns:
the new JSValue.

get_complex

public double[] get_complex()
                     throws JSException
Return the complex value.

Returns:
the complex value.
Throws:
JSException - An exception occurred while communicating with the server.

get_dateTime

public double get_dateTime()
                    throws JSException
Returns the date/time value as a double.

Returns:
the date/time value as a double.
Throws:
JSException - An exception occurred while communicating with the server.

get_errVal

public int get_errVal()
               throws JSException
Returns the error value.

Returns:
the error value.
Throws:
JSException - An exception occurred while communicating with the server.

get_extended

public byte[] get_extended()
                    throws JSException
Returns the extended value.

Returns:
the extended value.
Throws:
JSException - An exception occurred while communicating with the server.

get_nullVal

public boolean get_nullVal()
                    throws JSException
Returns the null value.

Returns:
the null value.
Throws:
JSException - An exception occurred while communicating with the server.

get_numVal

public double get_numVal()
                  throws JSException
Returns the numeric value.

Returns:
the numeric value.
Throws:
JSException - An exception occurred while communicating with the server.

get_strVal

public java.lang.String get_strVal()
                            throws JSException
Returns the string value.

Returns:
the string value.
Throws:
JSException - An exception occurred while communicating with the server.

is_complex

public boolean is_complex()
Returns whether the value is a complex value.

Returns:
whether the value is a complex value.

is_dateTime

public boolean is_dateTime()
Returns whether the value is a date/time value.

Returns:
whether the value is a date/time value.

is_errVal

public boolean is_errVal()
Returns whether the value is an error value.

Returns:
whether the value is an error value.

is_extended

public boolean is_extended()
Returns whether the value is an extended value.

Returns:
whether the value is an extended value.

is_nullVal

public boolean is_nullVal()
Returns whether the value is a null value.

Returns:
whether the value is a null value.

is_numVal

public boolean is_numVal()
Returns whether the value is numeric.

Returns:
whether the value is numeric.

is_strVal

public boolean is_strVal()
Returns whether the value is a string value.

Returns:
whether the value is a string value.

set_complex

public void set_complex(double[] complex)
Sets the value to the complex value provided.

Parameters:
complex - the complex value.

set_dateTime

public void set_dateTime(double datetime)
Sets the value to the date/time provided.

Parameters:
datetime - the date/time value.

set_errVal

public void set_errVal(int errval)
Set the value to the error value supplied.

Parameters:
errval - the error value.

set_extended

public void set_extended(byte[] extended)
Sets the value to the extended value supplied.

Parameters:
extended - the extended value.

set_nullVal

public void set_nullVal(boolean nullval)
Sets the value to the null value supplied.

Parameters:
nullval - true to indicate this value is null.

set_numVal

public void set_numVal(double numval)
Set the value to the numeric value supplied.

Parameters:
numval - the numeric value.

set_strVal

public void set_strVal(java.lang.String string)
Sets the value to the string value.

Parameters:
string - the string value.

Email JSheet Support

www.jsheet.com
Copyright 1995 - 2003 Investment Intelligence Systems Limited.