| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| HeaderColumnNameTranslateMappingStrategy |
|
| 1.0;1 |
| 1 | package liquibase.util.csv.opencsv.bean; | |
| 2 | ||
| 3 | import java.util.HashMap; | |
| 4 | import java.util.Map; | |
| 5 | ||
| 6 | /** | |
| 7 | * Copyright 2007 Kyle Miller. | |
| 8 | * | |
| 9 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | |
| 10 | * the License. You may obtain a copy of the License at | |
| 11 | * | |
| 12 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 13 | * | |
| 14 | * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on | |
| 15 | * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the | |
| 16 | * specific language governing permissions and limitations under the License. | |
| 17 | */ | |
| 18 | ||
| 19 | 0 | public class HeaderColumnNameTranslateMappingStrategy extends HeaderColumnNameMappingStrategy { |
| 20 | 0 | private Map columnMapping = new HashMap(); |
| 21 | ||
| 22 | @Override | |
| 23 | protected String getColumnName(int col) { | |
| 24 | 0 | return (String) getColumnMapping().get(header[col]); |
| 25 | } | |
| 26 | ||
| 27 | public Map getColumnMapping() { | |
| 28 | 0 | return columnMapping; |
| 29 | } | |
| 30 | ||
| 31 | public void setColumnMapping(Map columnMapping) { | |
| 32 | 0 | this.columnMapping = columnMapping; |
| 33 | 0 | } |
| 34 | } |