org.equanda.subjectory
Class ISOCountry2LetterTranslator
java.lang.Object
org.equanda.subjectory.ISOCountry2LetterTranslator
- All Implemented Interfaces:
- MappingTranslator<String,String>
public class ISOCountry2LetterTranslator
- extends Object
- implements MappingTranslator<String,String>
Translator to handle mapping between ISO country code and English country name
- Author:
- Brian Reynolds, Geert Mergan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ISOCountry2LetterTranslator
public ISOCountry2LetterTranslator()
getExternal
public String getExternal(String s)
- Get the external representation
- Specified by:
getExternal
in interface MappingTranslator<String,String>
- Parameters:
s
- ISO country code
- Returns:
- The country name
getInternal
public String getInternal(String s)
- Get the internal representation
- Specified by:
getInternal
in interface MappingTranslator<String,String>
- Parameters:
s
- country name
- Returns:
- The ISO Code
Copyright © 2007-2009. All Rights Reserved.