org.equanda.validation
Class ChoiceAdapter

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

Constructor Summary
ChoiceAdapter()
           
 
Method Summary
 boolean isAllowed(boolean b)
           
 boolean isAllowed(double d)
           
 boolean isAllowed(int i)
           
 boolean isAllowed(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChoiceAdapter

public ChoiceAdapter()
Method Detail

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.