|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.parameters.ParameterSet
de.jstacs.parameters.InstanceParameterSet
public abstract class InstanceParameterSet
Container class for a set of Parameters that can be used to instantiate another class.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class de.jstacs.parameters.ParameterSet |
|---|
ParameterSet.ParameterList |
| Field Summary |
|---|
| Fields inherited from class de.jstacs.parameters.ParameterSet |
|---|
errorMessage, parameters, parent, ranged |
| Constructor Summary | |
|---|---|
InstanceParameterSet(Class instanceClass)
Constructs a InstanceParameterSet from the class that can be instantiated using
this InstanceParameterSet. |
|
InstanceParameterSet(StringBuffer representation)
Constructs a InstanceParameterSet out of an XML representation |
|
| Method Summary | |
|---|---|
protected void |
fromXML(StringBuffer representation)
Parses the instance fields of a ParameterSet from the XML-representation
as returned by ParameterSet.toXML(). |
InstantiableFromParameterSet |
getInstance()
Returns a new instance of the class of getInstanceClass() that was created using this ParameterSet. |
Class |
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 of an instance of the implementing class. |
| Methods inherited from class de.jstacs.parameters.ParameterSet |
|---|
clone, getErrorMessage, getId, getNumberOfParameters, getNumberOfValues, getParameterAt, getParent, hasDefaultOrIsSet, initParameterList, initParameterList, isAtomic, isRanged, loadParameters, makeRanged, next, parametersLoaded, propagateId, recieveId, replaceParametersWithRangedInstance, reset, resetToFirst, setParent, simplify, valuesToString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InstanceParameterSet(Class instanceClass)
throws IllegalArgumentException
InstanceParameterSet from the class that can be instantiated using
this InstanceParameterSet. The set of parameters is loaded by the
ParameterSet.loadParameters()-method if this InstanceParameterSet
is expected to be filled with values.
instanceClass - the class
IllegalArgumentException - if the alternativeInstanceClass is null
public InstanceParameterSet(StringBuffer representation)
throws NonParsableException
InstanceParameterSet out of an XML representation
representation - the XML representation
NonParsableException - if the InstanceParameterSet could not be reconstructed
out of the representation, a
NonParsableException is thrown| Method Detail |
|---|
public Class getInstanceClass()
public InstantiableFromParameterSet getInstance()
throws ParameterSetParser.NotInstantiableException
getInstanceClass() that was created using this ParameterSet.
ParameterSetParser.NotInstantiableException - is thrown if the class could not be instantiatedParameterSetParserpublic abstract String getInstanceComment()
ParameterSet.
public abstract String getInstanceName()
ParameterSet.
public StringBuffer toXML()
Storable
toXML in interface StorabletoXML in class ParameterSet
protected void fromXML(StringBuffer representation)
throws NonParsableException
ParameterSetParameterSet from the XML-representation
as returned by ParameterSet.toXML().
fromXML in class ParameterSetrepresentation - the XML-representation
NonParsableException - is thrown if the XML-code could not be parsed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||