Package adams.core.logging.updater
Class ArrayUpdater
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.core.logging.updater.ArrayUpdater
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,LoggingLevelUpdater,OptionHandler,SizeOfHandler,Serializable
public class ArrayUpdater extends AbstractOptionHandler implements LoggingLevelUpdater
Applies the specified base updater to the elements of the array or, if not an array, just to the object.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected LoggingLevelUpdaterm_LoggingLevelUpdaterthe logging level updater.-
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 ArrayUpdater()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanUpdateLoggingLevel(Object obj)Checks whether the logging level can be updated.voiddefineOptions()Adds options to the internal list of options.LoggingLevelUpdatergetLoggingLevelUpdater()Returns the scheme for updating the logging level of the deserialized object.StringglobalInfo()Returns a string describing the object.StringloggingLevelUpdaterTipText()Returns the tip text for this property.voidsetLoggingLevelUpdater(LoggingLevelUpdater value)Sets the scheme for updating the logging level of the deserialized object.booleanupdateLoggingLevel(Object obj)Updates the logging level.-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, toCommandLine, toString
-
Methods inherited from class adams.core.logging.CustomLoggingLevelObject
setLoggingLevel
-
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
-
-
-
-
Field Detail
-
m_LoggingLevelUpdater
protected LoggingLevelUpdater m_LoggingLevelUpdater
the logging level updater.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin classAbstractOptionHandler
-
setLoggingLevelUpdater
public void setLoggingLevelUpdater(LoggingLevelUpdater value)
Sets the scheme for updating the logging level of the deserialized object.- Parameters:
value- the updater
-
getLoggingLevelUpdater
public LoggingLevelUpdater getLoggingLevelUpdater()
Returns the scheme for updating the logging level of the deserialized object.- Returns:
- the updater
-
loggingLevelUpdaterTipText
public String loggingLevelUpdaterTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
canUpdateLoggingLevel
public boolean canUpdateLoggingLevel(Object obj)
Checks whether the logging level can be updated.- Specified by:
canUpdateLoggingLevelin interfaceLoggingLevelUpdater- Parameters:
obj- the object to check- Returns:
- true if can be updated
-
updateLoggingLevel
public boolean updateLoggingLevel(Object obj)
Updates the logging level.- Specified by:
updateLoggingLevelin interfaceLoggingLevelUpdater- Parameters:
obj- the object to update- Returns:
- true if level was updated
-
-