org.equanda.subjectory
Class ISOCountry2LetterTranslator

java.lang.Object
  extended by 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

Constructor Summary
ISOCountry2LetterTranslator()
           
 
Method Summary
 String getExternal(String s)
          Get the external representation
 String getInternal(String s)
          Get the internal representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ISOCountry2LetterTranslator

public ISOCountry2LetterTranslator()
Method Detail

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.