public class ScriptRow
extends java.lang.Object
This class is Copyright 2019, NOAA.
Constructor and Description |
---|
ScriptRow(java.lang.String tFullFileName,
Table tTable)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
columnDouble(java.lang.String colName)
This gets the value from a column as a double.
|
float |
columnFloat(java.lang.String colName)
This gets the value from a column as a float.
|
int |
columnInt(java.lang.String colName)
This gets the value from a column as an int.
|
long |
columnLong(java.lang.String colName)
This gets the value from a column as a long.
|
java.lang.String |
columnString(java.lang.String colName)
This gets the value from a column as a String.
|
java.lang.String |
getFileName()
This gets the short name of the current file, or "" if
the source is not file-like.
|
java.lang.String |
getFullFileName()
This gets the full name (perhaps a URL) of the current file, or "" if
the source is not file-like.
|
int |
getRow()
Get the current row in the table (0..).
|
void |
setRow(int tRow)
Set the current row number in the table (0..).
|
static void |
test()
This tests Jexl scripts, including working with a table.
|
public ScriptRow(java.lang.String tFullFileName, Table tTable)
fullFileName
- public java.lang.String getFullFileName()
public java.lang.String getFileName()
public void setRow(int tRow)
public int getRow()
public int columnInt(java.lang.String colName)
colName
- the columnNamepublic long columnLong(java.lang.String colName)
colName
- the columnNamepublic float columnFloat(java.lang.String colName)
colName
- the columnNamepublic double columnDouble(java.lang.String colName)
colName
- the columnNamepublic java.lang.String columnString(java.lang.String colName)
colName
- the columnNamepublic static void test() throws java.lang.Exception
java.lang.Exception