be.ac.vub.cocompose.eclipse.model.datatypes
Class ModelElementPropertySource
java.lang.Object
be.ac.vub.cocompose.eclipse.model.datatypes.ModelElementPropertySource
- All Implemented Interfaces:
- IPropertySource
- public class ModelElementPropertySource
- extends Object
- implements IPropertySource
Eclipse property source for the Concept part-of relationship.
- Since:
- 0.2.4
- Version:
- 0.2.4, 22/01/2004
- Author:
- Dennis Wagelaar
ModelElementPropertySource
public ModelElementPropertySource(ModelElement value,
Namespace namespace,
Class elementClass,
Object id,
String name)
- Creates a PartOfPropertySource
- Parameters:
value
- the current property value.namespace
- the Namespace in which to look for the property.elementClass
- the Class restriction for possible values.id
- the property id.name
- the property name to be displayed.
getEditableValue
public Object getEditableValue()
- Specified by:
getEditableValue
in interface IPropertySource
- See Also:
IPropertySource.getEditableValue()
getPropertyDescriptors
public IPropertyDescriptor[] getPropertyDescriptors()
- Specified by:
getPropertyDescriptors
in interface IPropertySource
- See Also:
IPropertySource.getPropertyDescriptors()
getPropertyValue
public Object getPropertyValue(Object id)
- Specified by:
getPropertyValue
in interface IPropertySource
- See Also:
IPropertySource.getPropertyValue(java.lang.Object)
isPropertySet
public boolean isPropertySet(Object id)
- Specified by:
isPropertySet
in interface IPropertySource
- See Also:
IPropertySource.isPropertySet(java.lang.Object)
resetPropertyValue
public void resetPropertyValue(Object id)
- Specified by:
resetPropertyValue
in interface IPropertySource
- See Also:
IPropertySource.resetPropertyValue(java.lang.Object)
setPropertyValue
public void setPropertyValue(Object id,
Object value)
- Specified by:
setPropertyValue
in interface IPropertySource
- See Also:
IPropertySource.setPropertyValue(java.lang.Object, java.lang.Object)
getModelElement
public ModelElement getModelElement()
- Gets the ModelElement.
- Returns:
- the ModelElement.
toString
public String toString()
- See Also:
Object.toString()