T - the type of the InstanceParameterSetpublic abstract class InstanceParameterSet<T extends InstantiableFromParameterSet> extends ParameterSet
Parameters that can be used to
instantiate another class.ParameterSet.ParameterListerrorMessage, parameters, parent| Constructor and Description |
|---|
InstanceParameterSet(Class<? extends T> instanceClass)
Constructs an
InstanceParameterSet from the class that can be
instantiated using this InstanceParameterSet. |
InstanceParameterSet(StringBuffer representation)
The standard constructor for the interface
Storable. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
fromXML(StringBuffer representation)
Parses the instance fields of a
ParameterSet from the XML
representation as returned by ParameterSet.toXML(). |
T |
getInstance()
Returns a new instance of the class of
getInstanceClass() that
was created using this ParameterSet. |
Class<? extends T> |
getInstanceClass()
Returns the class of the instances that can be constructed using this
set.
|
abstract String |
getInstanceComment()
Returns a comment (a textual description) of the class that can be
constructed using this
ParameterSet. |
abstract String |
getInstanceName()
Returns the name of an instance of the class that can be constructed
using this
ParameterSet. |
StringBuffer |
toXML()
This method returns an XML representation as
StringBuffer of an
instance of the implementing class. |
clone, fromGalaxy, getAllParameterNames, getComment, getComment, getErrorMessage, getIndex, getName, getName, getNumberOfParameters, getParameterAt, getParameterForName, getParent, hasDefaultOrIsSet, initParameterList, initParameterList, isAtomic, isComparable, parametersLoaded, reset, setParent, toGalaxypublic InstanceParameterSet(Class<? extends T> instanceClass)
InstanceParameterSet from the class that can be
instantiated using this InstanceParameterSet.instanceClass - the class to be instantiatedpublic InstanceParameterSet(StringBuffer representation) throws NonParsableException
Storable.
Constructs an InstanceParameterSet out of an XML representation.representation - the XML representation as StringBufferNonParsableException - if the InstanceParameterSet could not be
reconstructed out of the StringBuffer
representationpublic Class<? extends T> getInstanceClass()
public T getInstance() throws ParameterSetParser.NotInstantiableException
getInstanceClass() that
was created using this ParameterSet.ParameterSetParser.NotInstantiableException - if the class could not be instantiatedParameterSetParserpublic abstract String getInstanceComment()
ParameterSet.public abstract String getInstanceName()
ParameterSet.public StringBuffer toXML()
StorableStringBuffer of an
instance of the implementing class.toXML in interface StorabletoXML in class ParameterSetprotected void fromXML(StringBuffer representation) throws NonParsableException
ParameterSetParameterSet from the XML
representation as returned by ParameterSet.toXML().fromXML in class ParameterSetrepresentation - the XML representation as StringBufferNonParsableException - if the XML code could not be parsedParameterSet.toXML()