public class FieldValue
extends java.lang.Object
.csv database.| Constructor and Description |
|---|
FieldValue(java.lang.String val)
Construct the field value.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getDoubleValue()
Return the field value as a
double. |
int |
getIntegerValue()
Return the field value as an
int. |
java.lang.String |
getRawValue()
Return the field value as it appears in the
.csv file. |
java.lang.String |
getStringValue()
Return the field value as a
String. |
char |
getType()
Get the type of the field value.
|
void |
setType(char t)
Set the type of the field value.
|
public FieldValue(java.lang.String val)
val - The field value as it appears in the .csv file.public char getType()
i is int,
type d is double, and
type s is String.public void setType(char t)
i is int,
type d is double, and
type s is String.
Called by private void initFieldValues ( char [] types, String [] fields )
of class CSValueRecord.t - The type of the field value.public java.lang.String getRawValue()
.csv file.public int getIntegerValue()
throws java.lang.RuntimeException
int.java.lang.RuntimeException - If the field value is not an int.public double getDoubleValue()
throws java.lang.RuntimeException
double.java.lang.RuntimeException - If the field value is not a double.public java.lang.String getStringValue()
throws java.lang.RuntimeException
String.java.lang.RuntimeException - If the field value is not a String.