public class MaterialTypeAttributeReader extends Object implements SDRFAttributeReader
Constructor and Description |
---|
MaterialTypeAttributeReader() |
Modifier and Type | Method and Description |
---|---|
int |
assess(String[] header)
Returns an integer representing the number of columns this handler can read forward of the given header.
|
boolean |
canRead(String firstHeader)
Determine whether this reader can read the attributes referenced by this header.
|
void |
readAttributes(String[] header,
String[] data,
SDRF sdrf,
SDRFNode sdrfNode,
int lineNumber,
int columnNumber)
Reads the attributes from the data and sets them on the supplied SDRFNode
|
public boolean canRead(String firstHeader)
SDRFAttributeReader
canRead
in interface SDRFAttributeReader
firstHeader
- the first column heading to read frompublic int assess(String[] header)
SDRFAttributeReader
assess
in interface SDRFAttributeReader
header
- the header to be passed to this attribute reader. This should start at a column this reader can
actually readpublic void readAttributes(String[] header, String[] data, SDRF sdrf, SDRFNode sdrfNode, int lineNumber, int columnNumber) throws ParseException
SDRFAttributeReader
readAttributes
in interface SDRFAttributeReader
header
- the header to read from, starting from attributes this reader can actually readdata
- the data to readsdrf
- the sdrf being read tosdrfNode
- the SDRF node that these attributes should be set onlineNumber
- the line this data is read fromcolumnNumber
- the column this data is read from @throws ParseException if the data could not be read for
any reasonParseException
Copyright © 2014. All rights reserved.