org.eclipse.ocl.examples.pivot.utilities
Class AliasAdapter
java.lang.Object
org.eclipse.emf.common.notify.impl.AdapterImpl
org.eclipse.ocl.examples.pivot.utilities.AliasAdapter
- All Implemented Interfaces:
- org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Adapter.Internal
public class AliasAdapter
- extends org.eclipse.emf.common.notify.impl.AdapterImpl
An AliasAdapter extends a Resource to provide a set of aliases for elements,
typically packages, contained within that Resource. Use of an alias as the moniker
for a package simplifies the moniker and avoids prefix variation for monikers
computed for alternate domains.
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter |
org.eclipse.emf.common.notify.Adapter.Internal |
Fields inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl |
target |
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl |
getTarget, notifyChanged, setTarget, unsetTarget |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AliasAdapter
public AliasAdapter()
findAdapter
public static AliasAdapter findAdapter(org.eclipse.emf.ecore.resource.Resource resource)
getAdapter
public static AliasAdapter getAdapter(org.eclipse.emf.ecore.resource.Resource resource)
getAlias
public static java.lang.String getAlias(org.eclipse.emf.ecore.EObject eElement)
getAliasMap
public java.util.Map<org.eclipse.emf.ecore.EObject,java.lang.String> getAliasMap()
isAdapterForType
public boolean isAdapterForType(java.lang.Object type)
- Specified by:
isAdapterForType
in interface org.eclipse.emf.common.notify.Adapter
- Overrides:
isAdapterForType
in class org.eclipse.emf.common.notify.impl.AdapterImpl