com.rapidminer.tools.config
Class ParameterTypeConfigurable

java.lang.Object
  extended by com.rapidminer.parameter.ParameterType
      extended by com.rapidminer.parameter.ParameterTypeSingle
          extended by com.rapidminer.tools.config.ParameterTypeConfigurable
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class ParameterTypeConfigurable
extends ParameterTypeSingle

A ParameterType which offers a selection field for Configurables.

Author:
Dominik Halfkann
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.rapidminer.parameter.ParameterType
ELEMENT_PARAMETER_TYPE
 
Constructor Summary
ParameterTypeConfigurable(org.w3c.dom.Element element)
           
ParameterTypeConfigurable(java.lang.String key, java.lang.String description, java.lang.String typeId)
           
 
Method Summary
 java.lang.Object getDefaultValue()
          Returns a value that can be used if the parameter is not set.
 java.lang.String getRange()
          Returns a human readable description of the range.
 java.lang.String getTypeId()
           
 boolean isNumerical()
          Returns true if the values of this parameter type are numerical, i.e. might be parsed by Double.parseDouble(String).
 void setDefaultValue(java.lang.Object defaultValue)
          Sets the default value.
protected  void writeDefinitionToXML(org.w3c.dom.Element typeElement)
          Subclasses must store all their properties inside the typeElement and must be able to reload it from their using the constructor (Operator operator, Element element).
 
Methods inherited from class com.rapidminer.parameter.ParameterTypeSingle
getXML, getXML, substituteMacros, toXMLString
 
Methods inherited from class com.rapidminer.parameter.ParameterType
compareTo, createType, getConditions, getDefaultValueAsString, getDefinitionAsXML, getDependencyConditions, getDescription, getKey, illegalValue, isDeprecated, isExpert, isHidden, isOptional, notifyOperatorRenaming, registerDependencyCondition, setDeprecated, setDescription, setExpert, setHidden, setKey, setOptional, setShowRange, showRange, toString, toString, toXMLString, transformNewValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParameterTypeConfigurable

public ParameterTypeConfigurable(org.w3c.dom.Element element)
                          throws XMLException
Throws:
XMLException

ParameterTypeConfigurable

public ParameterTypeConfigurable(java.lang.String key,
                                 java.lang.String description,
                                 java.lang.String typeId)
Method Detail

getTypeId

public java.lang.String getTypeId()

getDefaultValue

public java.lang.Object getDefaultValue()
Description copied from class: ParameterType
Returns a value that can be used if the parameter is not set.

Specified by:
getDefaultValue in class ParameterType

getRange

public java.lang.String getRange()
Description copied from class: ParameterType
Returns a human readable description of the range.

Specified by:
getRange in class ParameterType

isNumerical

public boolean isNumerical()
Description copied from class: ParameterType
Returns true if the values of this parameter type are numerical, i.e. might be parsed by Double.parseDouble(String). Otherwise false should be returned. This method might be used by parameter logging operators.

Specified by:
isNumerical in class ParameterType

setDefaultValue

public void setDefaultValue(java.lang.Object defaultValue)
Description copied from class: ParameterType
Sets the default value.

Specified by:
setDefaultValue in class ParameterType

writeDefinitionToXML

protected void writeDefinitionToXML(org.w3c.dom.Element typeElement)
Description copied from class: ParameterType
Subclasses must store all their properties inside the typeElement and must be able to reload it from their using the constructor (Operator operator, Element element). This constructor is called via reflection. This method should be abstract, but in order to keep the class compatible with existing extensions, this only throws an unsupported exception.

Overrides:
writeDefinitionToXML in class ParameterType


Copyright © 2001-2009 by Rapid-I