public class SimpleParameterSet extends ParameterSet
ParameterSet
that is constructed from an array of Parameter
s.ParameterSet.ParameterList
errorMessage, parameters, parent
Constructor and Description |
---|
SimpleParameterSet(Parameter... parameters)
Creates a new
SimpleParameterSet from an array of Parameter s. |
SimpleParameterSet(StringBuffer representation)
The standard constructor for the interface
Storable . |
Modifier and Type | Method and Description |
---|---|
SimpleParameterSet |
clone()
Creates a full clone (deep copy) of this
ParameterSet . |
void |
reset()
Resets all
Parameter s in this ParameterSet to their
default values or null if not default value was provided. |
void |
toGalaxy(String namePrefix,
String configPrefix,
int depth,
StringBuffer descBuffer,
StringBuffer configBuffer,
boolean[] addLine)
Creates an Galaxy XML-representation of the parameters and appends it to
descBuffer
and variable configuration and appends it to configBuffer . |
fromGalaxy, fromXML, getAllParameterNames, getComment, getComment, getErrorMessage, getIndex, getName, getName, getNumberOfParameters, getParameterAt, getParameterForName, getParent, hasDefaultOrIsSet, initParameterList, initParameterList, isAtomic, isComparable, parametersLoaded, setParent, toGalaxy, toXML
public SimpleParameterSet(Parameter... parameters)
SimpleParameterSet
from an array of Parameter
s.parameters
- the parameterspublic SimpleParameterSet(StringBuffer representation) throws NonParsableException
Storable
.
Constructs a SimpleParameterSet
from its XML representation.representation
- the XML representation as StringBuffer
NonParsableException
- if the StringBuffer
representation
could not be parsedpublic SimpleParameterSet clone() throws CloneNotSupportedException
ParameterSet
ParameterSet
. As a
convenience-method the user can use
fillWithStandardFieldsForClone(ParameterSet)
on a newly
created instance of a subclass of ParameterSet
to obtain a
clone/copy of all standard member variables (those already defined in
ParameterSet
) in the passed ParameterSet
. Using this
method, the cloning process becomes merely three-step:ParameterSet
, most
likely with an empty constructor or the one taking just the instance
class.
this.fillWithStandardFieldsForClone
on this
instance.
Object
's method
Object.clone()
.clone
in class ParameterSet
ParameterSet
CloneNotSupportedException
public void reset()
ParameterSet
Parameter
s in this ParameterSet
to their
default values or null
if not default value was provided.reset
in class ParameterSet
Parameter.reset()
public void toGalaxy(String namePrefix, String configPrefix, int depth, StringBuffer descBuffer, StringBuffer configBuffer, boolean[] addLine) throws Exception
descBuffer
and variable configuration and appends it to configBuffer
. The variable configuration
is also used to parse user-supplied values returned by Galaxy.namePrefix
- the prefix of the variable name used in GalaxyconfigPrefix
- the prefix for conditionalsdepth
- the depth in the parameter hierarchy, used for graphical representation of nestingdescBuffer
- the buffer for the parameter descriptionconfigBuffer
- the buffer for the configuration lineaddLine
- if true, a line is added before the title of a parameter with the corresponding indexException
- if the conversion fails