|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.table.formats.RowEvaluator
public class RowEvaluator
Examines unknown rows (arrays of strings) to work out what they contain.
By repeatedly calling submitRow(java.util.List)
the evaluator can refine its
idea of what kind of data is represented by each column.
Nested Class Summary | |
---|---|
static class |
RowEvaluator.Decoder
Interface for an object that can turn a string into a cell content object. |
static class |
RowEvaluator.Metadata
Helper class used to group quantities which describe what the data types found in the columns of a table are. |
Field Summary | |
---|---|
static Pattern |
ISO8601_REGEX
Regular expression for ISO 8601 dates. |
Constructor Summary | |
---|---|
RowEvaluator()
Constructs a new RowEvaluator which will work out the number of columns from the data. |
|
RowEvaluator(int ncol)
Constructs a new RowEvaluator which will examine rows with a fixed number of columns. |
Method Summary | |
---|---|
RowEvaluator.Metadata |
getMetadata()
Returns information gleaned from previous submitRow calls about the kind of data that appears to be in the columns. |
void |
submitRow(List row)
Looks at a given row (list of strings) and records information about what sort of things it looks like it contains. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Pattern ISO8601_REGEX
Constructor Detail |
---|
public RowEvaluator()
public RowEvaluator(int ncol)
ncol
- column countMethod Detail |
---|
public void submitRow(List row) throws TableFormatException
row
- ncol-element list of strings
TableFormatException
- if the number of elements in
row is not the same as on the first callpublic RowEvaluator.Metadata getMetadata()
|
Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |