public abstract class ADFHeaderReadHandler extends AbstractHandler implements ReadHandler<String,String[],ADF>
ReadHandler for reading from the header part of an ADF file into a MAGETABArrayDesign. This implementation governs all common functionality including general handling order and
 progress tracking.  Specific concrete handlers only need define the header they can read, the maximum number of
 values allowed on the line marked by this tag, and how to set the field on the MAGETABArrayDesign object.listeners| Constructor and Description | 
|---|
ADFHeaderReadHandler()  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
canRead(Object header)
Determine whether this handler can read the supplied header. 
 | 
protected abstract boolean | 
canReadHeader(String header)
Determine whether this handler can read the data referenced by this header. 
 | 
int | 
getAllowedLength()
Get the legal number of data entries for this type of handler, as specified by the MAGE-TAB specification. 
 | 
void | 
read(String header,
    String[] data,
    ADF adf,
    int lineNumber,
    int columnNumber)
Invoke this read handler. 
 | 
protected abstract void | 
readValue(ADF adf,
         String value,
         int lineNumber,
         String... types)
Performs the unit of work to read the data into the internal MAGE-TAB investigation. 
 | 
accept, addListener, fireHandlingFailedEvent, fireHandlingStartedEvent, fireHandlingSucceededEvent, getListeners, getLog, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccept, addListener, getListeners, removeListenerpublic boolean canRead(Object header)
ReadHandlercanRead in interface ReadHandler<String,String[],ADF>header - the data that will be validatedpublic int getAllowedLength()
public void read(String header, String[] data, ADF adf, int lineNumber, int columnNumber) throws ParseException
readValue(uk.ac.ebi.arrayexpress2.magetab.datamodel.ADF, String, int, String...).
 This method itself governs the update of progress tracking and status information.  Before this handler has
 completed reading, the status of the current task index is updated to Status.COMPLETE if everything succeeded, or
 Status.FAILED otherwiseread in interface ReadHandler<String,String[],ADF>header - the header describing the data to parsedata - the data to read into the object modeladf - the ADF object to populatelineNumber - columnNumber - ParseException - if the handler failed to read data from it's sourceprotected abstract boolean canReadHeader(String header)
header - the first token on a line, or the column heading, which is the string describing this line
               contentsprotected abstract void readValue(ADF adf, String value, int lineNumber, String... types) throws ParseException
adf - the ADF to populate with parsed datavalue - the value to read into the cachelineNumber - the line number this value is being read fromtypes - a single string representing the type, if present.  Should not normally be greater than 1
                   element long  @throws ParseException if the header cannot be parsed or there was an error
                   reading the valueParseException - if the given data failed to parseCopyright © 2014. All rights reserved.