org.equanda.validation
Class ISOCountry3Letter
java.lang.Object
org.equanda.validation.ChoiceAdapter
org.equanda.validation.EnumerableChoiceAdapter
org.equanda.validation.ISOCountry3Letter
- All Implemented Interfaces:
- Choice, EnumerableChoice
public class ISOCountry3Letter
- extends EnumerableChoiceAdapter
Choice class which only accepts valid 2 letter country codes (according to ISO-3166, 2003-07-25)
- Author:
- Joachim Van der Auwera
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ISOCountry3Letter
public ISOCountry3Letter()
isAllowed
public boolean isAllowed(String s)
- 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.