de.tu_berlin.cs.tfs.muvitorkit.properties
Class EObjectPropertySource

java.lang.Object
  extended by de.tu_berlin.cs.tfs.muvitorkit.properties.EObjectPropertySource
All Implemented Interfaces:
IPropertySource

public class EObjectPropertySource
extends Object
implements IPropertySource

This class is intended to be a generic property source for all the objects in the application's model. It currently only supports String and boolean types, and doesn't support reset or nested properties. It uses information in the EMF EAttribute and EDataType classes to get the id, display name, and type information.

Rating red

Constructor Summary
EObjectPropertySource(EObject obj)
           
 
Method Summary
 Object getEditableValue()
           
 IPropertyDescriptor[] getPropertyDescriptors()
           
 Object getPropertyValue(Object idobj)
           
 boolean isPropertySet(Object id)
           
 void resetPropertyValue(Object id)
           
 void setPropertyValue(Object id, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EObjectPropertySource

public EObjectPropertySource(EObject obj)
Method Detail

getEditableValue

public Object getEditableValue()
Specified by:
getEditableValue in interface IPropertySource

getPropertyDescriptors

public IPropertyDescriptor[] getPropertyDescriptors()
Specified by:
getPropertyDescriptors in interface IPropertySource

getPropertyValue

public Object getPropertyValue(Object idobj)
Specified by:
getPropertyValue in interface IPropertySource

isPropertySet

public boolean isPropertySet(Object id)
Specified by:
isPropertySet in interface IPropertySource

resetPropertyValue

public void resetPropertyValue(Object id)
Specified by:
resetPropertyValue in interface IPropertySource

setPropertyValue

public void setPropertyValue(Object id,
                             Object value)
Specified by:
setPropertyValue in interface IPropertySource