EGF Engine
Release 0.1.0

org.eclipse.egf.mapping.data
Class MappingElement

java.lang.Object
  extended by org.eclipse.egf.mapping.data.MappingElement

public class MappingElement
extends Object

A MappingElement is a data holder. It stores both sources and targets for a specified EModelElement instance in a mapping request.
Sources contain the specified EModelElement instance and its sibling EModelElement elements if any.
Targets contain the result of the mapping request.

See Also:
MappingServices

Constructor Summary
MappingElement()
           
 
Method Summary
 void addSources(Collection<EObject> sources_p)
          Add given sources to this mapping element.
 void addTargets(Collection<EObject> targets_p)
          Add given targets to this mapping element.
 Collection<EObject> getSources()
          Return the specified EModelElement in a mapping request and it sibling elements if any.
 Collection<EObject> getTargets()
          Return the result of a mapping request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappingElement

public MappingElement()
Method Detail

addSources

public void addSources(Collection<EObject> sources_p)
Add given sources to this mapping element.

Parameters:
sources_p -

addTargets

public void addTargets(Collection<EObject> targets_p)
Add given targets to this mapping element.

Parameters:
targets_p -

getSources

public Collection<EObject> getSources()
Return the specified EModelElement in a mapping request and it sibling elements if any.

Returns:
a not null Collection.

getTargets

public Collection<EObject> getTargets()
Return the result of a mapping request.

Returns:
a not null Collection.

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.