org.eclipse.emf.emfstore.internal.common.model.impl
Class ESModelElementIdImpl

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.common.api.AbstractAPIImpl<ESModelElementIdImpl,ModelElementId>
      extended by org.eclipse.emf.emfstore.internal.common.model.impl.ESModelElementIdImpl
All Implemented Interfaces:
ESModelElementId, ESUniqueIdentifier, InternalAPIDelegator<ESModelElementIdImpl,ModelElementId>

public class ESModelElementIdImpl
extends AbstractAPIImpl<ESModelElementIdImpl,ModelElementId>
implements ESModelElementId

Mapping between ESModelElementId and ModelElementId.

Author:
emueller

Constructor Summary
ESModelElementIdImpl(ModelElementId modelElementId)
          Constructor.
 
Method Summary
 boolean equals(Object obj)
          
 String getId()
          Returns the actual identifier as a string.
 int hashCode()
          
 void setId(String id)
          Sets the ID.
 
Methods inherited from class org.eclipse.emf.emfstore.internal.common.api.AbstractAPIImpl
toInternalAPI
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ESModelElementIdImpl

public ESModelElementIdImpl(ModelElementId modelElementId)
Constructor.

Parameters:
modelElementId - the ModelElementId to be wrapped
Method Detail

getId

public String getId()
Returns the actual identifier as a string.

Specified by:
getId in interface ESUniqueIdentifier
Returns:
the ID as a string
See Also:
ESUniqueIdentifier.getId()

setId

public void setId(String id)
Sets the ID.

Parameters:
id - the ID to be set

equals

public boolean equals(Object obj)

Overrides:
equals in class AbstractAPIImpl<ESModelElementIdImpl,ModelElementId>
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()

Overrides:
hashCode in class AbstractAPIImpl<ESModelElementIdImpl,ModelElementId>
See Also:
Object.hashCode()


Copyright © 2015. All Rights Reserved.