be.ac.ulg.montefiore.run.totem.util
Class ParameterDescriptor
java.lang.Object
be.ac.ulg.montefiore.run.totem.util.ParameterDescriptor
public class ParameterDescriptor
- extends java.lang.Object
Use to represent a parameter constituted of a name, description, type, a set of possible values (optional)
and a default value.
Creation date: 14 nov. 2005
- Author:
- Gaƫl Monfort (monfort@run.montefiore.ulg.ac.be)
Constructor Summary |
ParameterDescriptor(java.lang.String name,
java.lang.String description,
java.lang.Class type,
java.lang.Object defaultValue)
|
ParameterDescriptor(java.lang.String name,
java.lang.String description,
java.lang.Class type,
java.lang.Object defaultValue,
java.lang.Object[] possibleValues)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
ParameterDescriptor
public ParameterDescriptor(java.lang.String name,
java.lang.String description,
java.lang.Class type,
java.lang.Object defaultValue)
throws AlgorithmParameterException
- Throws:
AlgorithmParameterException
ParameterDescriptor
public ParameterDescriptor(java.lang.String name,
java.lang.String description,
java.lang.Class type,
java.lang.Object defaultValue,
java.lang.Object[] possibleValues)
throws AlgorithmParameterException
- Throws:
AlgorithmParameterException
getName
public java.lang.String getName()
getDescription
public java.lang.String getDescription()
getType
public java.lang.Class getType()
getDefaultValue
public java.lang.Object getDefaultValue()
setDefaultValue
public void setDefaultValue(java.lang.Object defaultValue)
throws AlgorithmParameterException
- Throws:
AlgorithmParameterException
validate
public boolean validate(java.lang.String value)
getPossibleValues
public java.lang.Object[] getPossibleValues()
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Equals if has the same name
- Overrides:
equals
in class java.lang.Object
- Parameters:
obj
-
- Returns:
Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.