[Javacavemaps-developers] Parsers
Status: Pre-Alpha
Brought to you by:
caverdude
From: Larry G. <jav...@ya...> - 2009-01-23 18:36:06
|
I have created some Interfaces and classes in the parser, the method coding is on the TODO list right now. You will see *Parser.java which are Interfaces You will see Abstract*Parser.java which will be extended to form the final specialized classes. You will see Survey*Parser.java which will use the final specialized parsing classes to specifically parse data into the Survey*Model.java classes. Under Models I added FlatFileModel.java This will be used by the Parsers. I made it responsible for loading and saving data. Save to File, Load From File or Read from a Resource. Our XML work is currently in SurveyParser.java We will have to rethink what we should do with this code in the next iteration. A SurveyLineParser should parse from a single text line or xml tag parent node <surveyLine></surveyLine> into the SurveyLineModel.java class A SurveyStationParser should parse from a single text line or xml tag parent node<surveyStation></surveyStation> A SurveyParser should parse a set of Lines and a Set of Stations. We need to keep reworking the structure of this unil it is smple and works for both xml and flat files for our purposes. Larry Gray la...@ar... |