org.eclipse.emf.emfstore.common.model
Interface ESSingletonIdResolver

All Known Implementing Classes:
EDatatypeIdResolver, ETypeIdResolver

public interface ESSingletonIdResolver

Interface for mapping ESModelElementIds to singleton objects and vice versa.

Author:
emueller

Method Summary
 org.eclipse.emf.ecore.EObject getSingleton(ESModelElementId singletonId)
          Returns the singleton which belongs to the given ESModelElementId.
 ESModelElementId getSingletonModelElementId(org.eclipse.emf.ecore.EObject singleton)
          Returns the ID for the given singleton EObject.
 boolean isSingleton(org.eclipse.emf.ecore.EObject eObject)
          Determines whether the given EObject is a singleton.
 

Method Detail

getSingletonModelElementId

ESModelElementId getSingletonModelElementId(org.eclipse.emf.ecore.EObject singleton)
Returns the ID for the given singleton EObject.

Parameters:
singleton - the singleton EObject whose ESModelElementId should get retrieved
Returns:
the ESModelElementId of the the singleton object or null if the given EObject is not a singleton or if it is null

getSingleton

org.eclipse.emf.ecore.EObject getSingleton(ESModelElementId singletonId)
Returns the singleton which belongs to the given ESModelElementId.

Parameters:
singletonId - a ESModelElementId
Returns:
the singleton EObject that belongs to the given ESModelElementId

isSingleton

boolean isSingleton(org.eclipse.emf.ecore.EObject eObject)
Determines whether the given EObject is a singleton.

Parameters:
eObject - the EObject to check
Returns:
true, if the given EObject is a singleton


Copyright © 2015. All Rights Reserved.