EGF Engine
Release 0.1.0

org.eclipse.egf.model.internal.data
Class ModelElement

java.lang.Object
  extended by MinimalEObjectImpl.Container
      extended by org.eclipse.egf.model.internal.data.ModelElement
Direct Known Subclasses:
NamedModelElementWithIdImpl

public abstract class ModelElement
extends MinimalEObjectImpl.Container

Base class for every EGF model element.


Constructor Summary
ModelElement()
           
 
Method Summary
 void addPropertyChangeListener(String propertyName_p, PropertyChangeListener listener_p)
          Do nothing.
protected  String generateId()
          Generate a unique business id.
 Object getAdapter(Class adapterType_p)
           
protected  IFactoryComponentLoadingHelper getFactoryComponentLoadingHelper()
          Get factory component loading helper.
 IFactoryComponentReader getFactoryComponentReader()
          Get the factory component reader that has been used to collect data for this object.
abstract  String getId()
          Get the business id of current element.
abstract  String getName()
          Get a readable name of current element.
 void removePropertyChangeListener(String propertyName_p, PropertyChangeListener listener_p)
          Do nothing.
 void setAdapter(Class<?> type_p, Object instance_p)
          Set given object which is an instance of the given class type associated with given object.
 void setFactoryComponentReader(IFactoryComponentReader reader_p)
          Set the factory component reader that has been used to collect data for this object.
abstract  void setId(String id_p)
          Set given business id.
abstract  void setName(String name_p)
          Set given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelElement

public ModelElement()
Method Detail

generateId

protected String generateId()
Generate a unique business id.

Returns:

getId

public abstract String getId()
Get the business id of current element.

Returns:

setId

public abstract void setId(String id_p)
Set given business id.

Parameters:
id_p -

getName

public abstract String getName()
Get a readable name of current element.

Returns:

setName

public abstract void setName(String name_p)
Set given name.

Parameters:
name_p -

getAdapter

public Object getAdapter(Class adapterType_p)
See Also:
org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)

setAdapter

public void setAdapter(Class<?> type_p,
                       Object instance_p)
Set given object which is an instance of the given class type associated with given object.


setFactoryComponentReader

public void setFactoryComponentReader(IFactoryComponentReader reader_p)
Set the factory component reader that has been used to collect data for this object.

Parameters:
reader_p -

getFactoryComponentReader

public IFactoryComponentReader getFactoryComponentReader()
Get the factory component reader that has been used to collect data for this object.

Returns:
a reader

getFactoryComponentLoadingHelper

protected IFactoryComponentLoadingHelper getFactoryComponentLoadingHelper()
Get factory component loading helper.

Returns:

addPropertyChangeListener

public void addPropertyChangeListener(String propertyName_p,
                                      PropertyChangeListener listener_p)
Do nothing.


removePropertyChangeListener

public void removePropertyChangeListener(String propertyName_p,
                                         PropertyChangeListener listener_p)
Do nothing.


EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.