org.equanda.validation
Class ChoiceAdapter
java.lang.Object
org.equanda.validation.ChoiceAdapter
- All Implemented Interfaces:
- Choice
- Direct Known Subclasses:
- EnumerableChoiceAdapter
public class ChoiceAdapter
- extends Object
- implements Choice
Adapter class for Choice validation, extend and overwrite according to the correct type.
- Author:
- Joachim Van der Auwera
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChoiceAdapter
public ChoiceAdapter()
isAllowed
public boolean isAllowed(String s)
- Specified by:
isAllowed
in interface Choice
isAllowed
public boolean isAllowed(boolean b)
- Specified by:
isAllowed
in interface Choice
isAllowed
public boolean isAllowed(int i)
- Specified by:
isAllowed
in interface Choice
isAllowed
public boolean isAllowed(double d)
- Specified by:
isAllowed
in interface Choice
Copyright © 2007-2009. All Rights Reserved.