Changeset 6589
- Timestamp:
- 09/25/15 14:16:07 (9 years ago)
- Location:
- vlo/branches/vlo-3.3-oeaw/vlo-vocabularies/src/main/java/eu/clarin/cmdi/vlo
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
vlo/branches/vlo-3.3-oeaw/vlo-vocabularies/src/main/java/eu/clarin/cmdi/vlo/pojo/Constants.java
r6505 r6589 37 37 public static final String COUNT = "COUNT"; 38 38 public static final String NORMALIZED_VALUE = "NORMALIZED_VALUE"; 39 public static final String REMARKS = "REMARKS"; 39 40 40 41 -
vlo/branches/vlo-3.3-oeaw/vlo-vocabularies/src/main/java/eu/clarin/cmdi/vlo/transformers/CSVTransformer.java
r6578 r6589 195 195 throw new RuntimeException("The first row of CSV file must contain column names"); 196 196 _logger.info("CSV file contains following headers {}", line); 197 197 198 for(String col: line.split("\\t")){ 199 if(col.equals(Constants.REMARKS)) 200 break;//last column - don't need it in xml map 201 198 202 if(col.equals(Constants.REGULAR_EXPRESSION)) 199 203 regExpresionExists = true; 200 columnNames.add(col.toLowerCase()); 204 columnNames.add(col.toLowerCase()); 205 201 206 } 202 207
Note: See TracChangeset
for help on using the changeset viewer.