Spreadsheet Toolkit

corpus.excel
Class Primitive

java.lang.Object
  |
  +--corpus.excel.Component
        |
        +--corpus.excel.FormulaComponent
              |
              +--corpus.excel.Primitive
All Implemented Interfaces:
java.io.Serializable

public class Primitive
extends FormulaComponent

Used to store the internal representation of a primitive formula component. Literalts etc.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class corpus.excel.FormulaComponent
formula
 
Fields inherited from class corpus.excel.Component
haltOnErrors
 
Constructor Summary
Primitive(java.lang.String type)
           
Primitive(java.lang.String type, java.lang.Boolean bool)
           
Primitive(java.lang.String type, java.lang.Double double_value, int length)
           
Primitive(java.lang.String type, java.lang.Integer integer, int length)
           
Primitive(java.lang.String type, java.lang.String string)
           
 
Method Summary
static java.util.Vector findCommas(java.util.Vector primitives)
          Finds just the comma primitives in the input vector and returns them in a new Vector.
 int getLength()
           
 java.lang.String getType()
           
 java.lang.Object getValue()
           
 boolean isComma()
           
 int length()
           
 void setExcelRef(java.lang.String excelref)
           
 java.lang.String toHTMLString()
          Converts information about this component into an HTML formatted String.
 java.lang.String toString()
          Converts information about this component into a String.
 
Methods inherited from class corpus.excel.FormulaComponent
getReferingFormula, parseTree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Primitive

public Primitive(java.lang.String type)

Primitive

public Primitive(java.lang.String type,
                 java.lang.Boolean bool)

Primitive

public Primitive(java.lang.String type,
                 java.lang.String string)

Primitive

public Primitive(java.lang.String type,
                 java.lang.Integer integer,
                 int length)

Primitive

public Primitive(java.lang.String type,
                 java.lang.Double double_value,
                 int length)
Method Detail

getType

public java.lang.String getType()

getValue

public java.lang.Object getValue()

getLength

public int getLength()

toString

public java.lang.String toString()
Description copied from class: Component
Converts information about this component into a String.

Specified by:
toString in class Component

toHTMLString

public java.lang.String toHTMLString()
Converts information about this component into an HTML formatted String.

Specified by:
toHTMLString in class Component

length

public int length()

setExcelRef

public void setExcelRef(java.lang.String excelref)

isComma

public boolean isComma()

findCommas

public static java.util.Vector findCommas(java.util.Vector primitives)
Finds just the comma primitives in the input vector and returns them in a new Vector.


Spreadsheet Toolkit

Project Home Page