org.eclipse.emf.mapping.command
Class TypeMatchMappingCommand

java.lang.Object
  extended by org.eclipse.emf.common.command.AbstractCommand
      extended by org.eclipse.emf.common.command.CompoundCommand
          extended by org.eclipse.emf.mapping.command.MatchMappingCommand
              extended by org.eclipse.emf.mapping.command.TypeMatchMappingCommand
All Implemented Interfaces:
Command

public class TypeMatchMappingCommand
extends MatchMappingCommand


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.command.AbstractCommand
AbstractCommand.NonDirtying
 
Field Summary
 
Fields inherited from class org.eclipse.emf.mapping.command.MatchMappingCommand
DESCRIPTION, domain, LABEL, mappedInputs, mapping
 
Fields inherited from class org.eclipse.emf.common.command.CompoundCommand
commandList, LAST_COMMAND_ALL, MERGE_COMMAND_ALL, resultIndex
 
Fields inherited from class org.eclipse.emf.common.command.AbstractCommand
description, isExecutable, isPrepared, label
 
Constructor Summary
TypeMatchMappingCommand(MappingDomain domain, Mapping mapping)
           
 
Method Summary
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 type input children with output children.
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.mapping.command.MatchMappingCommand
matchChildren, prepare, toString
 
Methods inherited from class org.eclipse.emf.common.command.CompoundCommand
append, appendAndExecute, appendIfCanExecute, canUndo, dispose, execute, getAffectedObjects, getCommandList, getDescription, getLabel, getMergedAffectedObjectsCollection, getMergedResultCollection, getResult, getResultIndex, isEmpty, redo, undo, unwrap
 
Methods inherited from class org.eclipse.emf.common.command.AbstractCommand
canExecute, chain, setDescription, setLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypeMatchMappingCommand

public TypeMatchMappingCommand(MappingDomain domain,
                               Mapping mapping)
Method Detail

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 type 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

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.