org.eclipse.gmt.weaver.providers
Class ResourceIdentifierAdapter

java.lang.Object
  extended by org.eclipse.gmt.weaver.providers.ResourceIdentifierAdapter
All Implemented Interfaces:
org.eclipse.emf.common.notify.Adapter, IIdentifierAdapter

public class ResourceIdentifierAdapter
extends java.lang.Object
implements IIdentifierAdapter

Handles ID generation for an XMI resource.

Since:
2.0

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
org.eclipse.emf.common.notify.Adapter.Internal
 
Constructor Summary
ResourceIdentifierAdapter(org.eclipse.emf.ecore.resource.Resource resource)
           
 
Method Summary
 java.lang.Object getID()
          gets the id of the current object
 java.lang.Object getID2()
           
 org.eclipse.emf.common.notify.Notifier getTarget()
           
 boolean isAdapterForType(java.lang.Object type)
           
 void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
           
 void setID(java.lang.Object obj)
          sets the id of the current object calculating from the obj
 void setTarget(org.eclipse.emf.common.notify.Notifier newTarget)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceIdentifierAdapter

public ResourceIdentifierAdapter(org.eclipse.emf.ecore.resource.Resource resource)
Method Detail

setID

public void setID(java.lang.Object obj)
Description copied from interface: IIdentifierAdapter
sets the id of the current object calculating from the obj

Specified by:
setID in interface IIdentifierAdapter
Parameters:
obj - the object to do the calculations (is is commonly a String)

getID

public java.lang.Object getID()
Description copied from interface: IIdentifierAdapter
gets the id of the current object

Specified by:
getID in interface IIdentifierAdapter
Returns:
the object ID

getID2

public java.lang.Object getID2()

notifyChanged

public void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
Specified by:
notifyChanged in interface org.eclipse.emf.common.notify.Adapter

getTarget

public org.eclipse.emf.common.notify.Notifier getTarget()
Specified by:
getTarget in interface org.eclipse.emf.common.notify.Adapter

setTarget

public void setTarget(org.eclipse.emf.common.notify.Notifier newTarget)
Specified by:
setTarget in interface org.eclipse.emf.common.notify.Adapter

isAdapterForType

public boolean isAdapterForType(java.lang.Object type)
Specified by:
isAdapterForType in interface org.eclipse.emf.common.notify.Adapter