public abstract class MatchMappingCommand extends CompoundCommand
AbstractCommand.NonDirtying| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
DESCRIPTION
This cachaes the description.
|
protected MappingDomain |
domain
This keeps track of the mapping domain in which the command operates.
|
protected static java.lang.String |
LABEL
This caches the label.
|
protected java.util.Collection<?> |
mappedInputs
This is the collection of inputs that have been matched by this command
|
protected Mapping |
mapping
This is the mapping that is being recursively matched.
|
commandList, LAST_COMMAND_ALL, MERGE_COMMAND_ALL, resultIndexdescription, isExecutable, isPrepared, label| Constructor and Description |
|---|
MatchMappingCommand(MappingDomain domain,
Mapping mapping) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
match(java.lang.Object inputObject,
java.lang.Object outputObject,
java.util.Collection<java.lang.Object> mappedObjects) |
protected void |
matchChildren(java.util.Collection<?> inputChildren,
java.util.Collection<?> outputChildren) |
protected boolean |
prepare()
Returns whether all the commands can execute so that
AbstractCommand.isExecutable can be cached. |
java.lang.String |
toString()
This gives an abbreviated name using this object's own class' name, without package qualification,
followed by a space separated list of field:value pairs.
|
append, appendAndExecute, appendIfCanExecute, canUndo, dispose, execute, getAffectedObjects, getCommandList, getDescription, getLabel, getMergedAffectedObjectsCollection, getMergedResultCollection, getResult, getResultIndex, isEmpty, redo, undo, unwrapcanExecute, chain, setDescription, setLabelprotected MappingDomain domain
protected Mapping mapping
protected java.util.Collection<?> mappedInputs
protected static final java.lang.String LABEL
protected static final java.lang.String DESCRIPTION
public MatchMappingCommand(MappingDomain domain, Mapping mapping)
protected boolean prepare()
CompoundCommandAbstractCommand.isExecutable can be cached.
An empty command list causes false to be returned.prepare in class CompoundCommandprotected void matchChildren(java.util.Collection<?> inputChildren,
java.util.Collection<?> outputChildren)
protected abstract boolean match(java.lang.Object inputObject,
java.lang.Object outputObject,
java.util.Collection<java.lang.Object> mappedObjects)
public java.lang.String toString()
toString in class CompoundCommand