net.sf.jtreemap.ktreemap.example
Class TM3Bean

java.lang.Object
  extended by net.sf.jtreemap.ktreemap.example.TM3Bean

public class TM3Bean
extends java.lang.Object

Bean that contains the values of a line of a TM3 file

 

Field Summary
static java.lang.String DATE
          label "DATE" to identify Date in TM3 data file
static java.text.SimpleDateFormat DATE_FORMAT
          The default date format for TM3 file : MM/dd/yyyy
static java.util.ArrayList<java.lang.String> fieldNames
          list containing the field names of the TM3 file
static java.util.ArrayList<java.lang.String> fieldTypes
          list containing the field type of the TM3 file
static java.lang.String FLOAT
          label "FLOAT" to identify float in TM3 data file
static java.lang.String INTEGER
          label "INTEGER" to identify int in TM3 data file
static java.lang.String STRING
          label "STRING" to identify String in TM3 data file
 
Constructor Summary
TM3Bean()
           
 
Method Summary
 java.lang.String getLabel()
           
static java.lang.String[] getNumberFields()
           
 java.lang.Object getValue(java.lang.String fieldName)
          get the value of the field
 void setLabel(java.lang.String label)
           
 void setValue(java.lang.String fieldName, java.lang.Object value)
          set the value of the field name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE

public static final java.lang.String DATE
label "DATE" to identify Date in TM3 data file

See Also:
Constant Field Values

FLOAT

public static final java.lang.String FLOAT
label "FLOAT" to identify float in TM3 data file

See Also:
Constant Field Values

INTEGER

public static final java.lang.String INTEGER
label "INTEGER" to identify int in TM3 data file

See Also:
Constant Field Values

STRING

public static final java.lang.String STRING
label "STRING" to identify String in TM3 data file

See Also:
Constant Field Values

DATE_FORMAT

public static final java.text.SimpleDateFormat DATE_FORMAT
The default date format for TM3 file : MM/dd/yyyy


fieldNames

public static java.util.ArrayList<java.lang.String> fieldNames
list containing the field names of the TM3 file


fieldTypes

public static java.util.ArrayList<java.lang.String> fieldTypes
list containing the field type of the TM3 file

Constructor Detail

TM3Bean

public TM3Bean()
Method Detail

getNumberFields

public static java.lang.String[] getNumberFields()
Returns:
the number fields (ie INTEGER and FLOAT)

setValue

public void setValue(java.lang.String fieldName,
                     java.lang.Object value)
set the value of the field name

Parameters:
fieldName - field name
value - value to set

getValue

public java.lang.Object getValue(java.lang.String fieldName)
get the value of the field

Parameters:
fieldName - field name
Returns:
the value of the field

getLabel

public java.lang.String getLabel()
Returns:
the label

setLabel

public void setLabel(java.lang.String label)
Parameters:
label - the label to set