public class MAGETABArrayParser<O> extends AbstractParser<MAGETABArrayDesign>
MAGETABArrayDesign.
 Unlike MAGETABInvestigations, MAGETABArrayDesigns normally only have one component (the ADF).  Therefore this parser
 functions mostly as a wrapper around an ADFParser, but takes care of appropriate instantiation of services
 and MAGETABArrayDesign objects for you. appropriate.ADFParser, 
MAGETABArrayDesignAbstractParser.DefaultHandlerListenerDEFAULT_ENCODING| Modifier | Constructor and Description | 
|---|---|
protected  | 
MAGETABArrayParser()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addErrorItemListener(ErrorItemListener listener)
Register an  
ErrorItemListener with this parser. | 
O | 
getOutputResource()
Get the currently configured output resource for this parser 
 | 
Validator<MAGETABArrayDesign> | 
getValidator()
Get the currently configured validator for this parser. 
 | 
MAGETABArrayDesign | 
parse(File adfFile)  | 
MAGETABArrayDesign | 
parse(InputStream adfIn)
Perform parsing from the supplied input stream to a new data model instance. 
 | 
MAGETABArrayDesign | 
parse(InputStream adfIn,
     MAGETABArrayDesign arrayDesign)
Perform parsing from the supplied input stream to a new data model instance. 
 | 
MAGETABArrayDesign | 
parse(InputStream adfIn,
     MAGETABArrayDesign arrayDesign,
     ExecutorService service)
Perform parsing from the supplied input stream to a new data model instance, delegating all work to the supplied
 Executor Service to enable parsing in parallel. 
 | 
MAGETABArrayDesign | 
parse(URL adfURL)  | 
void | 
removeErrorItemListener(ErrorItemListener listener)
Deregister an  
ErrorItemListener with this parser. | 
void | 
setOutputResource(O outputResource)
Configure this parser with an output resource to convert data to. 
 | 
void | 
setStripEscaping(boolean stripEscaping)  | 
void | 
setValidator(Validator<MAGETABArrayDesign> validator)
Configure this parser with a  
Validator. | 
addProgressListener, fireErrorItemEvent, fireParseEvent, fireParsingCompletedEvent, fireParsingFailedEvent, fireParsingStartedEvent, getEncoding, getErrorItemListeners, getLog, getProgressListeners, isStrippingEscaping, removeProgressListener, setEncodingpublic void setStripEscaping(boolean stripEscaping)
setStripEscaping in class AbstractParser<MAGETABArrayDesign>public void setValidator(Validator<MAGETABArrayDesign> validator)
Validator.  Normally, the validate() method on the Validator will be called
 once reading has completed.
 
 It is possible to share an ErrorItemListener between a Parser and a Validatorvalidator - the validator this parser should use to validate once parsing has completed.public Validator<MAGETABArrayDesign> getValidator()
public void setOutputResource(O outputResource)
outputResource - the output resource to convert topublic O getOutputResource()
public void addErrorItemListener(ErrorItemListener listener)
ParserErrorItemListener with this parser.  Whenever an error is encountered when parsing from the a
 parserSource, this listener should be notified.addErrorItemListener in interface Parser<MAGETABArrayDesign>addErrorItemListener in class AbstractParser<MAGETABArrayDesign>listener - the listener to registerpublic void removeErrorItemListener(ErrorItemListener listener)
ParserErrorItemListener with this parser.  This listener will no longer be notified when error
 items are generated.removeErrorItemListener in interface Parser<MAGETABArrayDesign>removeErrorItemListener in class AbstractParser<MAGETABArrayDesign>listener - the listener to registerpublic MAGETABArrayDesign parse(File adfFile) throws ParseException
ParseExceptionpublic MAGETABArrayDesign parse(URL adfURL) throws ParseException
ParseExceptionpublic MAGETABArrayDesign parse(InputStream adfIn) throws ParseException
ParseradfIn - the input stream to parse fromParseException - if the source format was invalid, or the URL could not be read.public MAGETABArrayDesign parse(InputStream adfIn, MAGETABArrayDesign arrayDesign) throws ParseException
ParseradfIn - the input stream to parse fromarrayDesign - the data model to populate with data during this parse operationParseException - if the source format was invalid, or the URL could not be read.public MAGETABArrayDesign parse(InputStream adfIn, MAGETABArrayDesign arrayDesign, ExecutorService service) throws ParseException
ParseradfIn - the input stream to parse fromarrayDesign - the data model to populate with data during this parse operationservice - the service to use to execute parsing tasksParseException - if the source format was invalid, or the URL could not be read.Copyright © 2014. All rights reserved.