Package adams.data.spreadsheet
Class StringObjectHandler
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.spreadsheet.AbstractObjectHandler<String>
-
- adams.data.spreadsheet.StringObjectHandler
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,SizeOfHandler
,Serializable
public class StringObjectHandler extends AbstractObjectHandler<String>
Dummy handler for strings.
Valid options are:
-D <int> (property: debugLevel) The greater the number the more additional info the scheme may output to the console (0 = off). default: 0 minimum: 0
- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.data.spreadsheet.AbstractObjectHandler
m_Handlers, m_NoHandlers
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description StringObjectHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
format(String obj)
Turns the given object back into a string.String
globalInfo()
Returns a string describing the object.boolean
handles(Class cls)
Checks whether the handler can process the given object.String
parse(String s)
Parses the given string.-
Methods inherited from class adams.data.spreadsheet.AbstractObjectHandler
getHandler, getHandler, getHandlers, handles
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, defineOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceGlobalInfoSupporter
- Specified by:
globalInfo
in classAbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
handles
public boolean handles(Class cls)
Checks whether the handler can process the given object.- Specified by:
handles
in classAbstractObjectHandler<String>
- Parameters:
cls
- the class to check- Returns:
- true if handler can process the object
-
parse
public String parse(String s)
Parses the given string.- Specified by:
parse
in classAbstractObjectHandler<String>
- Parameters:
s
- the string- Returns:
- the generated object, null if failed to convert
-
format
public String format(String obj)
Turns the given object back into a string.- Specified by:
format
in classAbstractObjectHandler<String>
- Parameters:
obj
- the object to convert into a string- Returns:
- the string representation
-
-