Changeset 5984
- Timestamp:
- 02/17/15 10:51:52 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vlo/trunk/vlo-importer/src/main/java/eu/clarin/cmdi/vlo/importer/ResourceClassPostProcessor.java
r5345 r5984 8 8 * Postprocess ResourceClass values 9 9 * @param value extracted ResourcClass information 10 * @return Value with upper case first letter 10 * @return Value with upper case first letter and some value normalisation 11 11 */ 12 12 @Override 13 13 public List<String> process(String value) { 14 String result =value; 14 String result = value; 15 16 // replace DCMI URLs with DCMI type 17 result = result.replaceFirst("http://purl.org/dc/dcmitype/", ""); 18 19 // first letter should be upper case 15 20 if(result.length() > 1) { 16 21 result = result.substring(0, 1).toUpperCase().concat(result.substring(1, result.length()));
Note: See TracChangeset
for help on using the changeset viewer.