Class AbstractEditPostProcessor
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.gui.flow.tree.postprocessor.AbstractEditPostProcessor
-
- All Implemented Interfaces:
LoggingSupporter
,SizeOfHandler
,Serializable
- Direct Known Subclasses:
CallableActorRenamed
,EventRenamed
,StorageValueRenamed
,VariableRenamed
public abstract class AbstractEditPostProcessor extends LoggingObject
Ancestor for post-processors for edits in the tree.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description AbstractEditPostProcessor()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
applies(Actor parent, Actor oldActor, Actor newActor)
Checks whether this post processor scheme applies to the current situation.static boolean
apply(Tree tree, Actor parent, Actor oldActor, Actor newActor)
Applies all the post-processors, if applicable.protected abstract boolean
doPostProcess(Tree tree, Actor parent, Actor oldActor, Actor newActor)
Post-processes the tree.static Class[]
getPostProcessors()
Returns a list with classes of post-processors.boolean
postProcess(Tree tree, Actor parent, Actor oldActor, Actor newActor)
Post-processes the tree.-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
applies
public abstract boolean applies(Actor parent, Actor oldActor, Actor newActor)
Checks whether this post processor scheme applies to the current situation.- Parameters:
parent
- the parent actoroldActor
- the old actornewActor
- the new, updated actor- Returns:
- true if this post processor applies to the situation
-
doPostProcess
protected abstract boolean doPostProcess(Tree tree, Actor parent, Actor oldActor, Actor newActor)
Post-processes the tree.- Parameters:
tree
- the tree to post-processparent
- the parent actoroldActor
- the old actornewActor
- the new, updated actor- Returns:
- true if tree got modified
-
postProcess
public boolean postProcess(Tree tree, Actor parent, Actor oldActor, Actor newActor)
Post-processes the tree.- Parameters:
tree
- the tree to post-processparent
- the parent actoroldActor
- the old actornewActor
- the new, updated actor- Returns:
- true if tree got modified
-
getPostProcessors
public static Class[] getPostProcessors()
Returns a list with classes of post-processors.- Returns:
- the post-processor classes
-
apply
public static boolean apply(Tree tree, Actor parent, Actor oldActor, Actor newActor)
Applies all the post-processors, if applicable.- Parameters:
tree
- the tree that was modifiedparent
- the parent actor of the modified actoroldActor
- the old actornewActor
- the new, updated actor- Returns:
- true if tree got modified
-
-