Package adams.core.option.description
Class WekaClassDescriptionGenerator
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.option.description.AbstractClassDescriptionGenerator
-
- adams.core.option.description.WekaClassDescriptionGenerator
-
- All Implemented Interfaces:
LoggingSupporter,ClassDescriptionGenerator,SizeOfHandler,Serializable
public class WekaClassDescriptionGenerator extends AbstractClassDescriptionGenerator
Generates descriptions for WEKA option handlers.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.core.option.description.AbstractClassDescriptionGenerator
m_Cache, m_GeneratorClasses
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
Fields inherited from interface adams.core.option.description.ClassDescriptionGenerator
KEY_CLASS, KEY_OPTIONS
-
-
Constructor Summary
Constructors Constructor Description WekaClassDescriptionGenerator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>generate(Object obj)Generates the description for the object.booleanhandles(Class cls)Checks whether this class is handled by this generator.static voidmain(String[] args)protected StringtoString(PropertyDescriptor descriptor, Class baseClass, Object obj)Turns the object into a string.-
Methods inherited from class adams.core.option.description.AbstractClassDescriptionGenerator
generate, getHandler, getHandler, handles, initHandlers, initialize
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
handles
public boolean handles(Class cls)
Checks whether this class is handled by this generator.- Parameters:
cls- the class to check- Returns:
- true if handled
-
toString
protected String toString(PropertyDescriptor descriptor, Class baseClass, Object obj)
Turns the object into a string.- Parameters:
descriptor- the current property descriptorbaseClass- the base classobj- the object itself- Returns:
- the string representation
-
generate
public Map<String,Object> generate(Object obj)
Generates the description for the object.- Parameters:
obj- the object to process- Returns:
- the description, null if failed to generate
-
-