net.sf.jameleon.function
Class AbstractValidParamType
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
types
protected HashMap types
AbstractValidParamType
public AbstractValidParamType()
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.