EGF Engine
Release 0.1.0

org.eclipse.egf.mapping.data
Class MappingServices

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

public class MappingServices
extends Object

Provides services to get a mapped elements for given input.
The specified element must be an ENamedElement object.


Constructor Summary
MappingServices(String mappingRelativeFilePath_p)
          Constructor.
 
Method Summary
protected  Ecore2EcoreMappingRoot getEcore2EcoreMappingRoot()
          Load the Ecore2EcoreMappingRoot element from physical file.
 List<MappingElement> getMappingElements(EModelElement modelElement_p)
          Returns the mapping elements for given model element.
protected  List<MappingElement> getMappingElements(EModelElement modelElement_p,  mappings_p)
          Returns the mapped objects for given model element in specified mapping list.
protected  MappingElement getMappingElements(EModelElement modelElement_p,  sources_p,  targets_p)
          Get mapped objects for given element.
protected  MappingElement getMappingElements(EModelElement modelElement_p, Mapping mapping_p)
          Returns the mapping element for given model element for specified mapping.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappingServices

public MappingServices(String mappingRelativeFilePath_p)
Constructor.

Parameters:
mappingRelativeFilePath_p - File path relative to workspace or to the target platform.
It must start with pluginId. It is also recommended that both plugin id and plugin project names are the same.
As a convenience, the full path will refer to the plugin id.
Example : org.eclipse.egf/model/example.ecore is a path relative to the workspace that refers to the org.eclipse.egf plugin, having a model/example.ecore file in its project.
In Eclipse resource system, such a path is considered as an absolute one against the workspace root.
It's still referred to as a relative path, since the returned URL is absolute in the file system.
Method Detail

getMappingElements

public List<MappingElement> getMappingElements(EModelElement modelElement_p)
Returns the mapping elements for given model element.

Parameters:
modelElement_p -
Returns:
a not null list.

getMappingElements

protected List<MappingElement> getMappingElements(EModelElement modelElement_p,
                                                   mappings_p)
Returns the mapped objects for given model element in specified mapping list.

Parameters:
modelElement_p -
mappings_p -
Returns:
a not null list.

getMappingElements

protected MappingElement getMappingElements(EModelElement modelElement_p,
                                            Mapping mapping_p)
Returns the mapping element for given model element for specified mapping.

Parameters:
modelElement_p -
mapping_p -
Returns:
can be null if not found.

getMappingElements

protected MappingElement getMappingElements(EModelElement modelElement_p,
                                             sources_p,
                                             targets_p)
Get mapped objects for given element.

Parameters:
modelElement_p - element to lookup.
sources_p -
targets_p -
Returns:
null if not found.

getEcore2EcoreMappingRoot

protected Ecore2EcoreMappingRoot getEcore2EcoreMappingRoot()
Load the Ecore2EcoreMappingRoot element from physical file.

Returns:

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.