fr.reseaumexico.model.parser
Class InputDesignParser

java.lang.Object
  extended by java.io.Reader
      extended by java.io.InputStreamReader
          extended by java.io.FileReader
              extended by fr.reseaumexico.model.parser.XmlParser<M>
                  extended by fr.reseaumexico.model.parser.MexicoXmlParser<InputDesign>
                      extended by fr.reseaumexico.model.parser.InputDesignParser
All Implemented Interfaces:
Closeable, Readable

public class InputDesignParser
extends MexicoXmlParser<InputDesign>

Parser for input design xml files, build a InputDesign model

Since:
0.1
Author:
sletellier

Field Summary
protected  ExperimentDesignParser experimentDesignParser
           
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
InputDesignParser(File file)
           
 
Method Summary
protected  void parseInputDesignMeta(org.xmlpull.v1.XmlPullParser parser, InputDesign model)
           
protected  InputDesign parseModel(org.xmlpull.v1.XmlPullParser parser)
           
protected  Scenario parseScenario(org.xmlpull.v1.XmlPullParser parser)
           
protected  void parseScenarios(org.xmlpull.v1.XmlPullParser parser, InputDesign model)
           
 
Methods inherited from class fr.reseaumexico.model.parser.MexicoXmlParser
getTypedValue, parseDate
 
Methods inherited from class fr.reseaumexico.model.parser.XmlParser
getModel, parserEqual
 
Methods inherited from class java.io.InputStreamReader
close, getEncoding, read, read, ready
 
Methods inherited from class java.io.Reader
mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

experimentDesignParser

protected ExperimentDesignParser experimentDesignParser
Constructor Detail

InputDesignParser

public InputDesignParser(File file)
                  throws FileNotFoundException
Throws:
FileNotFoundException
Method Detail

parseModel

protected InputDesign parseModel(org.xmlpull.v1.XmlPullParser parser)
                          throws IOException,
                                 org.xmlpull.v1.XmlPullParserException,
                                 ParseException
Specified by:
parseModel in class XmlParser<InputDesign>
Throws:
IOException
org.xmlpull.v1.XmlPullParserException
ParseException

parseInputDesignMeta

protected void parseInputDesignMeta(org.xmlpull.v1.XmlPullParser parser,
                                    InputDesign model)
                             throws IOException,
                                    org.xmlpull.v1.XmlPullParserException,
                                    ParseException
Throws:
IOException
org.xmlpull.v1.XmlPullParserException
ParseException

parseScenarios

protected void parseScenarios(org.xmlpull.v1.XmlPullParser parser,
                              InputDesign model)
                       throws IOException,
                              org.xmlpull.v1.XmlPullParserException
Throws:
IOException
org.xmlpull.v1.XmlPullParserException

parseScenario

protected Scenario parseScenario(org.xmlpull.v1.XmlPullParser parser)
                          throws IOException,
                                 org.xmlpull.v1.XmlPullParserException
Throws:
IOException
org.xmlpull.v1.XmlPullParserException


Copyright © 2011-2012 Code Lutin. All Rights Reserved.