org.eclipse.weaver.providers
Class XMIIdentifierAdapter

java.lang.Object
  extended byorg.eclipse.weaver.providers.XMIIdentifierAdapter
All Implemented Interfaces:
IIdentifierAdapter

public class XMIIdentifierAdapter
extends java.lang.Object
implements IIdentifierAdapter

Handles ID generation for an XMI resource.

Since:
1.1
Author:
- Marcos Didonet Del Fabro (LINA Labs, INRIA team)
- Guillaume Gueltas (Sodifrance)

Constructor Summary
XMIIdentifierAdapter(EObject target)
           
 
Method Summary
 java.lang.Object getID()
          gets the id of the current object
 Notifier getTarget()
           
 boolean isAdapterForType(java.lang.Object type)
           
 void notifyChanged(Notification notification)
           
 void setID(java.lang.Object obj)
          sets the id of the current object calculating from the obj
 void setTarget(Notifier newTarget)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMIIdentifierAdapter

public XMIIdentifierAdapter(EObject target)
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

notifyChanged

public void notifyChanged(Notification notification)

getTarget

public Notifier getTarget()

setTarget

public void setTarget(Notifier newTarget)

isAdapterForType

public boolean isAdapterForType(java.lang.Object type)