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 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 mappedObjects)
|
Methods inherited from class org.eclipse.emf.common.command.CompoundCommand |
append, appendAndExecute, appendIfCanExecute, canUndo, dispose, getAffectedObjects, getDescription, getLabel, getMergedAffectedObjectsCollection, getMergedResultCollection, getResult, 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 mappedObjects)
- Overrides:
match
in class MatchMappingCommand
concatName
protected java.lang.String concatName(java.util.List parsedName)
execute
public void execute()
- Description copied from class:
CompoundCommand
- Calls
Command.execute()
for each command in the list.
- Overrides:
execute
in class CompoundCommand