@ServiceProvider public class ProtocolHandler extends SDRFReadInContextHandler
PROTOCOL_DELIMITERlisteners| Constructor and Description | 
|---|
ProtocolHandler()  | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
assess(String[] header)
Return the index of the last header this handler can read from in the supplied header. 
 | 
int | 
assessFrom(String[] header,
          int columnNumber)
A specialised alternate form of the  
SDRFReadInContextHandler.canReadHeader(String[]) method for handling Protocol Application
 Nodes. | 
boolean | 
canReadFrom(String[] header,
           int startIndex)
A specialised alternate form of the  
SDRFReadInContextHandler.canReadHeader(String[]) method for handling Protocol Application
 Nodes. | 
void | 
readData(String[] header,
        String[] data,
        SDRF sdrf,
        int lineNumber,
        int columnNumber)
Performs the unit of work to read the data into the internal datamodel. 
 | 
void | 
readDataFrom(String[] header,
            String[] data,
            SDRF sdrf,
            int lineNumber,
            int columnNumber)
A specialised alternate form of the  
SDRFReadInContextHandler.canReadHeader(String[]) method for handling Protocol Application
 Nodes. | 
canReadHeader, fetchUpstreamNode, handleUpstreamNode, read, readFromassessAttribute, canRead, readAttribute, updateChildNodeaccept, addListener, fireHandlingFailedEvent, fireHandlingStartedEvent, fireHandlingSucceededEvent, getListeners, getLog, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccept, addListener, getListeners, removeListenerpublic boolean canReadFrom(String[] header, int startIndex)
SDRFReadInContextHandler.canReadHeader(String[]) method for handling Protocol Application
 Nodes. Because Protocols resemble nodes, but are really edges, they cannot be handled in the same way as other
 nodes. Extra data must be passed to enable the Protocol Application Nodes that are created to be linked to both
 upstream and downstream nodes.  This requires the start index (the location of the protocol being handled) to be
 passed.canReadFrom in class SDRFReadInContextHandlerheader - the header to handlestartIndex - the starting index to read frompublic int assess(String[] header)
SDRFReadHandlerassess in class SDRFReadHandlerheader - the header to assesspublic int assessFrom(String[] header, int columnNumber)
SDRFReadInContextHandler.canReadHeader(String[]) method for handling Protocol Application
 Nodes. Because Protocols resemble nodes, but are really edges, they cannot be handled in the same way as other
 nodes. Extra data must be passed to enable the Protocol Application Nodes that are created to be linked to both
 upstream and downstream nodes.  This requires the start index (the location of the protocol being handled) to be
 passed.assessFrom in class SDRFReadInContextHandlerheader - the header to assesscolumnNumber - the index of the header to start assessing frompublic void readData(String[] header, String[] data, SDRF sdrf, int lineNumber, int columnNumber) throws ParseException
SDRFReadHandlerreadData in class SDRFReadHandlerheader - the header identifying the data to readdata - the data to readsdrf - the SDRF to add data tolineNumber - the lin number this data was read fromcolumnNumber - the first column of the data being readParseException - if the header cannot be parsed or there was an error reading the valuepublic void readDataFrom(String[] header, String[] data, SDRF sdrf, int lineNumber, int columnNumber) throws ParseException
SDRFReadInContextHandler.canReadHeader(String[]) method for handling Protocol Application
 Nodes. Because Protocols resemble nodes, but are really edges, they cannot be handled in the same way as other
 nodes. Extra data must be passed to enable the Protocol Application Nodes that are created to be linked to both
 upstream and downstream nodes.  This requires the start index (the location of the protocol being handled) to be
 passed.readDataFrom in class SDRFReadInContextHandlerheader - the header identifying the data to readdata - the data to readsdrf - the sdrf to read the data intolineNumber - the line number data is being read fromcolumnNumber - the index to start read from  @throws ParseException if the data cannot be readParseException - if the header cannot be parsed or there was an error reading the valueCopyright © 2014. All rights reserved.