CSVObjects Framework

net.sf.anupam.csv.mapping
Class CSVMappingParser

java.lang.Object
  extended by net.sf.anupam.csv.mapping.CSVMappingParser

public class CSVMappingParser
extends Object

XML Parser (based on Commons Digester) to parse and return the mapping configuration.

Since:
1.5
Version:
$Revision: 1.2 $
Author:
Anupam Sengupta
See Also:
Digester

Constructor Summary
CSVMappingParser()
          Constructor for CSVMappingParser.
 
Method Summary
protected  void finalize()
          Finalizes this mapping parser.
 Map<String,CSVBeanMapping> getMappings(String xmlFileName, boolean inClassPath)
          Returns the map of parsed mapping configuration beans.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSVMappingParser

public CSVMappingParser()
Constructor for CSVMappingParser.

Method Detail

finalize

protected void finalize()
                 throws Throwable
Finalizes this mapping parser.

Overrides:
finalize in class Object
Throws:
Throwable - thrown if the finalization fails
See Also:
Object.finalize()

getMappings

public Map<String,CSVBeanMapping> getMappings(String xmlFileName,
                                              boolean inClassPath)
Returns the map of parsed mapping configuration beans.

Parameters:
xmlFileName - the XML mapping configuration file
inClassPath - flag indicating whether the XML file is in the classpath
Returns:
a map of CSV bean mappings. An empty map is returned if an error occurs

SourceForge.net Logo

© Anupam Sengupta 2005