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 allForwardSlashSupporterobjects.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanm_ExcludeDefaultValueDefinitionwhether to exclude the EnterManyValues' DefaultValueDefinition.protected booleanm_UseForwardSlasheswhether 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 voiddefineOptions()Adds options to the internal list of options.StringexcludeDefaultValueDefinitionTipText()Returns the tip text for this property.booleangetExcludeDefaultValueDefinition()Returns whether to excludeDefaultValueDefinitioninstances as used byEnterManyValues.booleangetUseForwardSlashes()Returns what to update theForwardSlashSupporterobjects to.StringglobalInfo()Returns a string describing the object.protected voidprocessActor(Actor actor)Performs the actual processing.voidsetExcludeDefaultValueDefinition(boolean value)Sets whether to excludeDefaultValueDefinitioninstances as used byEnterManyValues.voidsetUseForwardSlashes(boolean value)Sets what to update theForwardSlashSupporterobjects to.StringuseForwardSlashesTipText()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:
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
-
setUseForwardSlashes
public void setUseForwardSlashes(boolean value)
Sets what to update theForwardSlashSupporterobjects to.- Parameters:
value- if true then use forward slashes
-
getUseForwardSlashes
public boolean getUseForwardSlashes()
Returns what to update theForwardSlashSupporterobjects 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 excludeDefaultValueDefinitioninstances as used byEnterManyValues.- Parameters:
value- true if to exclude
-
getExcludeDefaultValueDefinition
public boolean getExcludeDefaultValueDefinition()
Returns whether to excludeDefaultValueDefinitioninstances 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:
processActorin classAbstractActorProcessor- Parameters:
actor- the actor to process (is a copy of original for processors implementing ModifyingProcessor)- See Also:
ModifyingProcessor
-
-