[Javacavemaps-developers] parsing the data
Status: Pre-Alpha
Brought to you by:
caverdude
From: larry g. <lg...@co...> - 2003-12-01 17:23:40
|
I have a pattern in mind which I will begin write stub code for parsing the data from both the file, and text area as input. You may look this pattern up, its called the Strategy Pattern. Basically we will have a ParseContext object This object will select the Parse Strategy for the chunk of text that it is parsing Once this is finished it will work recursivly. We will have a basic ParseStrategy object, and a subclass strategy for each level in the tree. And each strategy will build the model on its level and return that. I think we can test all levels of this at once if we work it right. We can return dummy objects until we get it fully working. or we can do the lower levels first and work our way up. By Levels I mean Caves, Cave, Surveys, Survey, SurveyBranch, SurveyLine, SurveyStation |