com.atlassian.jira.imports.csv
Class HeaderRowCsvMapper

java.lang.Object
  extended by com.atlassian.jira.imports.csv.HeaderRowCsvMapper
All Implemented Interfaces:
CsvMapper
Direct Known Subclasses:
PropertiesCsvMapper

public class HeaderRowCsvMapper
extends java.lang.Object
implements CsvMapper

Uses the first row as the Heading keys. No Value translations are used.


Field Summary
protected  java.util.Map keyMappings
           
protected  java.lang.String[] originalDataHeader
           
 
Fields inherited from interface com.atlassian.jira.imports.csv.CsvMapper
log
 
Constructor Summary
HeaderRowCsvMapper()
           
 
Method Summary
 java.lang.String[] getHeaderRow()
           
 java.lang.String getKey(int number)
           
 java.lang.String getValue(int number, java.lang.String[] dataRow)
           
 void init(java.lang.String[] dataHeader)
           
 org.apache.commons.collections.MultiMap mapDataRow(java.lang.String[] dataRow)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keyMappings

protected java.util.Map keyMappings

originalDataHeader

protected java.lang.String[] originalDataHeader
Constructor Detail

HeaderRowCsvMapper

public HeaderRowCsvMapper()
Method Detail

init

public void init(java.lang.String[] dataHeader)
          throws ImportException
Specified by:
init in interface CsvMapper
Throws:
ImportException

getKey

public java.lang.String getKey(int number)
Specified by:
getKey in interface CsvMapper

getValue

public java.lang.String getValue(int number,
                                 java.lang.String[] dataRow)
Specified by:
getValue in interface CsvMapper

mapDataRow

public org.apache.commons.collections.MultiMap mapDataRow(java.lang.String[] dataRow)
Specified by:
mapDataRow in interface CsvMapper

getHeaderRow

public java.lang.String[] getHeaderRow()
Specified by:
getHeaderRow in interface CsvMapper


Copyright © 2002-2010 Atlassian. All Rights Reserved.