|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.parameter.Parameters
public class Parameters
This class is a collection of the parameter values of a single operator.
Instances of Parameters are created with respect to the
declared list of ParameterTypes of an operator. If parameters
are set using the setParameter() method and the value exceeds
the range, it is automatically corrected. If parameters are queried that are
not set, their default value is returned.
| Field Summary | |
|---|---|
static char |
PAIR_SEPARATOR
|
static char |
RECORD_SEPARATOR
|
| Constructor Summary | |
|---|---|
Parameters()
Creates an empty parameters object without any parameter types. |
|
Parameters(java.util.List<ParameterType> parameterTypes)
Constructs an instance of Parameters for the given list of
ParameterTypes. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Performs a deep clone on this parameters object. |
boolean |
equals(java.lang.Object o)
Returns true if the given parameters are not null and are the same like this parameters. |
java.util.Set<java.lang.String> |
getKeys()
Returns a set view of all parameter keys. |
java.lang.String |
getParameter(java.lang.String key)
Returns the value of the given parameter. |
ParameterType |
getParameterType(java.lang.String key)
Returns the type of the parameter with the given type. |
java.lang.String |
getXML(java.lang.String indent,
boolean hideDefault)
Writes a portion of the xml configuration file specifying the parameters that differ from their default value. |
int |
hashCode()
|
java.util.Iterator<java.lang.String> |
iterator()
|
int |
notifyRenaming(java.lang.String oldName,
java.lang.String newName)
|
boolean |
setParameter(java.lang.String key,
java.lang.String value)
Sets the parameter for the given key after performing a range-check. |
void |
setParameterWithoutCheck(java.lang.String key,
java.lang.String value)
Deprecated. Please use the method setParameter(String, String) instead |
java.lang.String |
toString()
|
static java.lang.String |
transformList2String(java.util.List<java.lang.String[]> parameterList)
|
static java.util.List<java.lang.String[]> |
transformString2List(java.lang.String listString)
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final char PAIR_SEPARATOR
public static final char RECORD_SEPARATOR
| Constructor Detail |
|---|
public Parameters()
public Parameters(java.util.List<ParameterType> parameterTypes)
Parameters for the given list of
ParameterTypes. The list might be empty but not null.
| Method Detail |
|---|
public java.lang.Object clone()
clone in class java.lang.Objectpublic java.util.Iterator<java.lang.String> iterator()
iterator in interface java.lang.Iterable<java.lang.String>public ParameterType getParameterType(java.lang.String key)
public boolean setParameter(java.lang.String key,
java.lang.String value)
@Deprecated
public void setParameterWithoutCheck(java.lang.String key,
java.lang.String value)
setParameter(String, String) instead
public java.lang.String getParameter(java.lang.String key)
throws UndefinedParameterError
ParameterType does not provide a default value, this may
result in an error message. In subsequent calls of this method, the
parameter will be set. An OperatorException (UserError) will be thrown if
a non-optional parameter was not set.
UndefinedParameterErrorpublic java.util.Set<java.lang.String> getKeys()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
public java.lang.String getXML(java.lang.String indent,
boolean hideDefault)
public java.lang.String toString()
toString in class java.lang.Objectpublic static java.lang.String transformList2String(java.util.List<java.lang.String[]> parameterList)
public static java.util.List<java.lang.String[]> transformString2List(java.lang.String listString)
public int notifyRenaming(java.lang.String oldName,
java.lang.String newName)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||