org.eclipse.emf.mapping.command
Class NameMatchMappingCommand
java.lang.Object
org.eclipse.emf.common.command.AbstractCommand
org.eclipse.emf.common.command.CompoundCommand
org.eclipse.emf.mapping.command.MatchMappingCommand
org.eclipse.emf.mapping.command.NameMatchMappingCommand
- All Implemented Interfaces:
- Command
public class NameMatchMappingCommand
- extends MatchMappingCommand
Method Summary |
protected java.lang.String |
concatName(java.util.List<java.lang.String> parsedName)
|
static Command |
create(MappingDomain domain,
Mapping mapping)
This creates a command that creates a new child mappings for the given mapping
by attempting to match by name input children with output children. |
void |
execute()
Calls Command.execute() for each command in the list. |
protected boolean |
match(java.lang.Object inputObject,
java.lang.Object outputObject,
java.util.Collection<java.lang.Object> mappedObjects)
|
Methods inherited from class org.eclipse.emf.common.command.CompoundCommand |
append, appendAndExecute, appendIfCanExecute, canUndo, dispose, getAffectedObjects, getCommandList, getDescription, getLabel, getMergedAffectedObjectsCollection, getMergedResultCollection, getResult, getResultIndex, isEmpty, redo, undo, unwrap |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NameMatchMappingCommand
public NameMatchMappingCommand(MappingDomain domain,
Mapping mapping)
create
public static Command create(MappingDomain domain,
Mapping mapping)
- This creates a command that creates a new child mappings for the given mapping
by attempting to match by name input children with output children.
match
protected boolean match(java.lang.Object inputObject,
java.lang.Object outputObject,
java.util.Collection<java.lang.Object> mappedObjects)
- Specified by:
match
in class MatchMappingCommand
concatName
protected java.lang.String concatName(java.util.List<java.lang.String> parsedName)
execute
public void execute()
- Description copied from class:
CompoundCommand
- Calls
Command.execute()
for each command in the list.
- Specified by:
execute
in interface Command
- Overrides:
execute
in class CompoundCommand