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 booleanm_ChangeAllwhether to change all limits.protected intm_NewLimitthe new limit.protected intm_OldLimitthe old limit.protected BaseRegExpm_RegExpthe 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 StringchangeAllTipText()Returns the tip text for this property.voiddefineOptions()Adds options to the internal list of options.booleangetChangeAll()Returns whether to change all limits, not just the ones that match the specified old limit.intgetNewLimit()Returns the new Limit to replace.intgetOldLimit()Returns the old limit to replace.BaseRegExpgetRegExp()Returns the regular expression to apply to the classname of the conditions object for limiting the scope of the replacement.StringglobalInfo()Returns a string describing the object.StringnewLimitTipText()Returns the tip text for this property.StringoldLimitTipText()Returns the tip text for this property.protected voidprocessActor(Actor actor)Performs the actual processing.StringregExpTipText()Returns the tip text for this property.voidsetChangeAll(boolean value)Sets whether to change all limits, not just the ones that match the specified old limit.voidsetNewLimit(int value)Sets the new Limit to replace.voidsetOldLimit(int value)Sets the old limit to replace.voidsetRegExp(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:
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
-
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:
processActorin classAbstractActorProcessor- Parameters:
actor- the actor to process (is a copy of original for processors implementing ModifyingProcessor)- See Also:
ModifyingProcessor
-
-