org.excel4j
Class XLObject

java.lang.Object
  extended by org.excel4j.XLObject
Direct Known Subclasses:
XLArray, XLBigData, XLBoolean, XLError, XLFlow, XLInteger, XLMissing, XLNil, XLNumber, XLReference, XLString

public abstract class XLObject
extends java.lang.Object

Encapsulates an xloper passed from excel.


Field Summary
 long handle
           
 int xltype
           
 
Constructor Summary
XLObject(long handle, int xltype)
          Creates a new XLObject object.
 
Method Summary
 XLArray asArray()
          Extract an array from the object.
 boolean asBoolean()
          Extract an integer from the object.
 int asError()
          Extract the error code from the object.
 int asInteger()
          Extract an integer from the object.
 double asNumber()
          Extract a number from the object.
 java.lang.String asString()
          Extract a string from the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

handle

public final long handle

xltype

public final int xltype
Constructor Detail

XLObject

public XLObject(long handle,
                int xltype)
Creates a new XLObject object.

Parameters:
handle. -
xltype. -
Method Detail

asNumber

public double asNumber()
Extract a number from the object.

Returns:
double.

asInteger

public int asInteger()
Extract an integer from the object.

Returns:
int.

asBoolean

public boolean asBoolean()
Extract an integer from the object.

Returns:
boolean.

asString

public java.lang.String asString()
Extract a string from the object.

Returns:
String.

asArray

public XLArray asArray()
Extract an array from the object.

Returns:
XLArray.

asError

public int asError()
Extract the error code from the object.

Returns:
int.