Package adams.flow.core
Class WekaPropertyValueConverter
- java.lang.Object
-
- adams.flow.core.AbstractPropertyValueConverter
-
- adams.flow.core.WekaPropertyValueConverter
-
- All Implemented Interfaces:
Serializable
public class WekaPropertyValueConverter extends adams.flow.core.AbstractPropertyValueConverter
Handler for WEKA classes. Values for arrays are assumed to be blank-separated strings (one element per array value).- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected WekaCommandLineHandler
m_CommandLineHandler
the commandline handler to use.
-
Constructor Summary
Constructors Constructor Description WekaPropertyValueConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
convert(Class cls, String value)
Converts the variable value into the appropriate object, if possible.boolean
handles(Class cls)
Checks whether this converter handles the particular class.protected void
initialize()
Initializes member variables.
-
-
-
Field Detail
-
m_CommandLineHandler
protected WekaCommandLineHandler m_CommandLineHandler
the commandline handler to use.
-
-
Method Detail
-
initialize
protected void initialize()
Initializes member variables.- Overrides:
initialize
in classadams.flow.core.AbstractPropertyValueConverter
-
handles
public boolean handles(Class cls)
Checks whether this converter handles the particular class.- Specified by:
handles
in classadams.flow.core.AbstractPropertyValueConverter
- Parameters:
cls
- the class to check- Returns:
- true if it supports it
-
convert
public Object convert(Class cls, String value) throws Exception
Converts the variable value into the appropriate object, if possible.- Specified by:
convert
in classadams.flow.core.AbstractPropertyValueConverter
- Parameters:
cls
- the type of the propertyvalue
- the string to convert- Returns:
- the converted value or null if it cannot be converted
- Throws:
Exception
- if conversion fails with an error
-
-