Package adams.flow.processor
Class ForwardSlashSwitch
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,ShallowCopySupporter<ActorProcessor>
,SizeOfHandler
,ActorProcessor
,ModifyingProcessor
,Serializable
,Comparable<ActorProcessor>
public class ForwardSlashSwitch extends AbstractModifyingProcessor
Processor that switches the flag of allForwardSlashSupporter
objects.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
m_ExcludeDefaultValueDefinition
whether to exclude the EnterManyValues' DefaultValueDefinition.protected boolean
m_UseForwardSlashes
whether to use forward slashes.-
Fields inherited from class adams.flow.processor.AbstractModifyingProcessor
m_Modified, m_ModifiedActor, m_NoCopy
-
Fields inherited from class adams.flow.processor.AbstractActorProcessor
m_Errors
-
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 ForwardSlashSwitch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
defineOptions()
Adds options to the internal list of options.String
excludeDefaultValueDefinitionTipText()
Returns the tip text for this property.boolean
getExcludeDefaultValueDefinition()
Returns whether to excludeDefaultValueDefinition
instances as used byEnterManyValues
.boolean
getUseForwardSlashes()
Returns what to update theForwardSlashSupporter
objects to.String
globalInfo()
Returns a string describing the object.protected void
processActor(Actor actor)
Performs the actual processing.void
setExcludeDefaultValueDefinition(boolean value)
Sets whether to excludeDefaultValueDefinition
instances as used byEnterManyValues
.void
setUseForwardSlashes(boolean value)
Sets what to update theForwardSlashSupporter
objects to.String
useForwardSlashesTipText()
Returns the tip text for this property.-
Methods inherited from class adams.flow.processor.AbstractModifyingProcessor
getModifiedActor, getNoCopy, initialize, isModified, process, setNoCopy
-
Methods inherited from class adams.flow.processor.AbstractActorProcessor
addError, addError, checkData, compareTo, equals, getErrors, hasErrors, reset, shallowCopy, shallowCopy
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, loggingLevelTipText, newOptionManager, 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.flow.processor.ActorProcessor
compareTo, getErrors, hasErrors, shallowCopy, shallowCopy
-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, getOptionManager, toCommandLine
-
-
-
-
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
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceOptionHandler
- Overrides:
defineOptions
in classAbstractOptionHandler
-
setUseForwardSlashes
public void setUseForwardSlashes(boolean value)
Sets what to update theForwardSlashSupporter
objects to.- Parameters:
value
- if true then use forward slashes
-
getUseForwardSlashes
public boolean getUseForwardSlashes()
Returns what to update theForwardSlashSupporter
objects to.- Returns:
- true if forward slashes are used
-
useForwardSlashesTipText
public String useForwardSlashesTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setExcludeDefaultValueDefinition
public void setExcludeDefaultValueDefinition(boolean value)
Sets whether to excludeDefaultValueDefinition
instances as used byEnterManyValues
.- Parameters:
value
- true if to exclude
-
getExcludeDefaultValueDefinition
public boolean getExcludeDefaultValueDefinition()
Returns whether to excludeDefaultValueDefinition
instances as used byEnterManyValues
.- Returns:
- true if to exclude
-
excludeDefaultValueDefinitionTipText
public String excludeDefaultValueDefinitionTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
processActor
protected void processActor(Actor actor)
Performs the actual processing.- Specified by:
processActor
in classAbstractActorProcessor
- Parameters:
actor
- the actor to process (is a copy of original for processors implementing ModifyingProcessor)- See Also:
ModifyingProcessor
-
-