dnet45/modules/unibi-data-collective-transformation-common/trunk/src/main/java/eu/dnetlib/data/collective/transformation/engine/functions/PersonVocabulary.java @ 48166
1 |
/**
|
---|---|
2 |
*
|
3 |
*/
|
4 |
package eu.dnetlib.data.collective.transformation.engine.functions; |
5 |
|
6 |
import java.util.List; |
7 |
|
8 |
import prototype.Person; |
9 |
|
10 |
/**
|
11 |
* @author jochen
|
12 |
*
|
13 |
*/
|
14 |
public class PersonVocabulary extends Vocabulary{ |
15 |
|
16 |
@Override
|
17 |
public String encoding(List<String> keys)throws ProcessingException{ |
18 |
Person p; |
19 |
String result = ""; |
20 |
for (String input: keys){ |
21 |
p = new Person(input); |
22 |
result = p.getNormalisedFullname(); |
23 |
}
|
24 |
return result; |
25 |
}
|
26 |
}
|