Package adams.flow.processor
Class ChangeDatabaseConditionLimit
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.processor.AbstractActorProcessor
-
- adams.flow.processor.AbstractModifyingProcessor
-
- adams.flow.processor.ChangeDatabaseConditionLimit
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,ShallowCopySupporter<ActorProcessor>
,SizeOfHandler
,ActorProcessor
,ModifyingProcessor
,Serializable
,Comparable<ActorProcessor>
public class ChangeDatabaseConditionLimit extends AbstractModifyingProcessor
Processor that the limit of a database condition.- Version:
- $Revision: 7042 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
m_ChangeAll
whether to change all limits.protected int
m_NewLimit
the new limit.protected int
m_OldLimit
the old limit.protected BaseRegExp
m_RegExp
the classnames to limit the change to.-
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 ChangeDatabaseConditionLimit()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
changeAllTipText()
Returns the tip text for this property.void
defineOptions()
Adds options to the internal list of options.boolean
getChangeAll()
Returns whether to change all limits, not just the ones that match the specified old limit.int
getNewLimit()
Returns the new Limit to replace.int
getOldLimit()
Returns the old limit to replace.BaseRegExp
getRegExp()
Returns the regular expression to apply to the classname of the conditions object for limiting the scope of the replacement.String
globalInfo()
Returns a string describing the object.String
newLimitTipText()
Returns the tip text for this property.String
oldLimitTipText()
Returns the tip text for this property.protected void
processActor(Actor actor)
Performs the actual processing.String
regExpTipText()
Returns the tip text for this property.void
setChangeAll(boolean value)
Sets whether to change all limits, not just the ones that match the specified old limit.void
setNewLimit(int value)
Sets the new Limit to replace.void
setOldLimit(int value)
Sets the old limit to replace.void
setRegExp(BaseRegExp value)
Sets the regular expression to apply to the classname of the conditions object for limiting the scope of the replacement.-
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
-
-
-
-
Field Detail
-
m_OldLimit
protected int m_OldLimit
the old limit.
-
m_ChangeAll
protected boolean m_ChangeAll
whether to change all limits.
-
m_RegExp
protected BaseRegExp m_RegExp
the classnames to limit the change to.
-
m_NewLimit
protected int m_NewLimit
the new limit.
-
-
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
-
setOldLimit
public void setOldLimit(int value)
Sets the old limit to replace.- Parameters:
value
- the old limit
-
getOldLimit
public int getOldLimit()
Returns the old limit to replace.- Returns:
- the old limit
-
oldLimitTipText
public String oldLimitTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the gui
-
setChangeAll
public void setChangeAll(boolean value)
Sets whether to change all limits, not just the ones that match the specified old limit.- Parameters:
value
- true if change all
-
getChangeAll
public boolean getChangeAll()
Returns whether to change all limits, not just the ones that match the specified old limit.- Returns:
- true if to change all
-
changeAllTipText
public String changeAllTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the gui
-
setRegExp
public void setRegExp(BaseRegExp value)
Sets the regular expression to apply to the classname of the conditions object for limiting the scope of the replacement.- Parameters:
value
- the expression
-
getRegExp
public BaseRegExp getRegExp()
Returns the regular expression to apply to the classname of the conditions object for limiting the scope of the replacement.- Returns:
- the expression
-
regExpTipText
public String regExpTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the gui
-
setNewLimit
public void setNewLimit(int value)
Sets the new Limit to replace.- Parameters:
value
- the new Limit
-
getNewLimit
public int getNewLimit()
Returns the new Limit to replace.- Returns:
- the new Limit
-
newLimitTipText
public String newLimitTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the gui
-
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
-
-