compbio.metadata
Interface Argument<T>

Type Parameters:
T - executable type
All Known Implementing Classes:
Option, Parameter

public interface Argument<T>

An unmodifiable view for the options and parameters, with one exception - it allows to set a value

Author:
pvtroshin Date December 2009
See Also:
Parameter, Option

Method Summary
 java.lang.String getDefaultValue()
           
 java.lang.String getDescription()
           
 java.net.URL getFurtherDetails()
           
 java.lang.String getName()
           
 java.util.List<java.lang.String> getPossibleValues()
           
 void setValue(java.lang.String defaultValue)
          Set default values for the parameter or an option
 

Method Detail

getFurtherDetails

java.net.URL getFurtherDetails()

getDefaultValue

java.lang.String getDefaultValue()

getDescription

java.lang.String getDescription()

getName

java.lang.String getName()

getPossibleValues

java.util.List<java.lang.String> getPossibleValues()
Returns:
List of values allowed for an Argument

setValue

void setValue(java.lang.String defaultValue)
              throws WrongParameterException
Set default values for the parameter or an option

Parameters:
defaultValue - the value to be set
Throws:
WrongParameterException - - when the value to be set is illegal. Wrong value for numeric parameter is the value defined outside it , for string type parameter, wrong value is the one which is not listed in possible values list
See Also:
ValueConstrain