org.equanda.validation
Class ISOCountryCode

java.lang.Object
  extended by org.equanda.validation.ChoiceAdapter
      extended by org.equanda.validation.EnumerableChoiceAdapter
          extended by org.equanda.validation.ISOCountryCode
All Implemented Interfaces:
Choice, EnumerableChoice

public class ISOCountryCode
extends EnumerableChoiceAdapter

Choice class which only accepts valid 2 letter country codes (according to ISO-3166, 2003-07-25)

Author:
Joachim Van der Auwera

Constructor Summary
ISOCountryCode()
           
 
Method Summary
 Collection<String> getAllowedStringNames()
           
 Collection<String> getAllowedStringValues()
           
 boolean isAllowed(int i)
           
 boolean isAllowed(String s)
           
 
Methods inherited from class org.equanda.validation.EnumerableChoiceAdapter
getAllowedBooleanNames, getAllowedBooleanValues, getAllowedDoubleNames, getAllowedDoubleValues, getAllowedIntNames, getAllowedIntValues
 
Methods inherited from class org.equanda.validation.ChoiceAdapter
isAllowed, isAllowed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.equanda.validation.Choice
isAllowed, isAllowed
 

Constructor Detail

ISOCountryCode

public ISOCountryCode()
Method Detail

isAllowed

public boolean isAllowed(String s)
Specified by:
isAllowed in interface Choice
Overrides:
isAllowed in class ChoiceAdapter

isAllowed

public boolean isAllowed(int i)
Specified by:
isAllowed in interface Choice
Overrides:
isAllowed in class ChoiceAdapter

getAllowedStringValues

public Collection<String> getAllowedStringValues()
Specified by:
getAllowedStringValues in interface EnumerableChoice
Overrides:
getAllowedStringValues in class EnumerableChoiceAdapter

getAllowedStringNames

public Collection<String> getAllowedStringNames()
Specified by:
getAllowedStringNames in interface EnumerableChoice
Overrides:
getAllowedStringNames in class EnumerableChoiceAdapter


Copyright © 2007-2009. All Rights Reserved.