public class FlatFileParseTrackerImpl extends Object implements FlatFileParseTracker
| Modifier and Type | Field and Description |
|---|---|
protected Map<Class<?>,org.kuali.ole.sys.batch.FlatFileParseTrackerImpl.FlatFileChildMapEntry> |
childrenMap |
protected FlatFileSpecification |
classIdentifier |
protected int |
completedLineCount |
protected List<Object> |
parsedParentObjects |
protected Stack<Object> |
parseStack |
| Constructor and Description |
|---|
FlatFileParseTrackerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
completeLineParse()
Called when a line has completed parsing.
|
protected void |
constructChildrenMap()
Builds a parent/child map out of the given specifications
|
org.kuali.ole.sys.batch.FlatFileParseTrackerImpl.FlatFileChildMapEntry |
getEntryForParsedIntoObject(Object parsedIntoObject)
Looks up the FlatFileChildMapEntry for the given object
|
Object |
getObjectToParseInto(String lineToParse)
Determines which class should be parsed into and returns an instance of that
|
List<Object> |
getParsedObjects() |
void |
initialize(FlatFileSpecification flatFileClassIdentifier)
Initializes a new FlatFileParseTracker
|
protected FlatFileSpecification classIdentifier
protected Stack<Object> parseStack
protected List<Object> parsedParentObjects
protected Map<Class<?>,org.kuali.ole.sys.batch.FlatFileParseTrackerImpl.FlatFileChildMapEntry> childrenMap
protected int completedLineCount
public FlatFileParseTrackerImpl()
public void initialize(FlatFileSpecification flatFileClassIdentifier)
initialize in interface FlatFileParseTrackerflatFileSpecification - the FlatFileSpecificationBase instance which will determine which object should be instantiated for a given linespecifications - the specifications for all objects that will be parsed into, to build a parent/child map out ofprotected void constructChildrenMap()
specifications - the specifications for the parsepublic Object getObjectToParseInto(String lineToParse)
getObjectToParseInto in interface FlatFileParseTrackerlineToParse - the line which is going to be parsedpublic void completeLineParse()
completeLineParse in interface FlatFileParseTrackerpublic org.kuali.ole.sys.batch.FlatFileParseTrackerImpl.FlatFileChildMapEntry getEntryForParsedIntoObject(Object parsedIntoObject)
parsedIntoObject - the object which has just completed being parsed intopublic List<Object> getParsedObjects()
getParsedObjects in interface FlatFileParseTrackerCopyright © 2004–2015 The Kuali Foundation. All rights reserved.