net.sf.jameleon.function
Class AbstractValidParamType

java.lang.Object
  extended by net.sf.jameleon.function.AbstractValidParamType
All Implemented Interfaces:
ParamTypeValidatable

public abstract class AbstractValidParamType
extends Object
implements ParamTypeValidatable

An Abstract class for implementations of ParamTypeValidatable. To add a valid param type to the list, call the addValidType(java.lang.String) method.


Field Summary
protected  HashMap types
           
 
Constructor Summary
AbstractValidParamType()
           
 
Method Summary
 void addValidType(String type)
          Adds a valid parameter type to the list.
 String getValidTypes()
           
 boolean isValidType(String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

types

protected HashMap types
Constructor Detail

AbstractValidParamType

public AbstractValidParamType()
Method Detail

isValidType

public boolean isValidType(String type)
Specified by:
isValidType in interface ParamTypeValidatable
Returns:
true if the param type is valid.

getValidTypes

public String getValidTypes()
Specified by:
getValidTypes in interface ParamTypeValidatable
Returns:
a String listing the valid param types.

addValidType

public void addValidType(String type)
Adds a valid parameter type to the list.

Parameters:
type - - The valid type. NOTE - This lowercases the actual type so when the compare occurs, the type is case-insensitive.


Copyright © 2003-2008 Christian Hargraves. All Rights Reserved.