org.eclipse.emf.emfstore.internal.ecore
Class ETypeIdResolver

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.ecore.ETypeIdResolver
All Implemented Interfaces:
ESSingletonIdResolver

public class ETypeIdResolver
extends Object
implements ESSingletonIdResolver


Constructor Summary
ETypeIdResolver()
          Constructor.
 
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 eDataType)
          Determines whether the given EObject is a singleton.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ETypeIdResolver

public ETypeIdResolver()
Constructor.

Method Detail

getSingleton

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

Specified by:
getSingleton in interface ESSingletonIdResolver
Parameters:
singletonId - a ESModelElementId
Returns:
the singleton EObject that belongs to the given ESModelElementId
See Also:
ESSingletonIdResolver.getSingleton(org.eclipse.emf.emfstore.common.model.ESModelElementId)

getSingletonModelElementId

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

Specified by:
getSingletonModelElementId in interface ESSingletonIdResolver
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
See Also:
ESSingletonIdResolver.getSingletonModelElementId(org.eclipse.emf.ecore.EObject)

isSingleton

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

Specified by:
isSingleton in interface ESSingletonIdResolver
Parameters:
eDataType - the EObject to check
Returns:
true, if the given EObject is a singleton
See Also:
ESSingletonIdResolver.isSingleton(org.eclipse.emf.ecore.EObject)


Copyright © 2015. All Rights Reserved.