|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.vub.cocompose.eclipse.model.datatypes.ModelElementsPropertySource
be.ac.vub.cocompose.eclipse.model.datatypes.ModelElementPropertySource
Eclipse property source for a ModelElement.
Constructor Summary | |
ModelElementPropertySource(ModelElement subject,
ModelElement value,
Class elementClass,
Object id,
String name)
Creates a PartOfPropertySource |
|
ModelElementPropertySource(ModelElement subject,
ModelElement value,
Namespace namespace,
Class elementClass,
Object id,
String name)
Creates a PartOfPropertySource |
Method Summary | |
protected List |
createPropertyDescriptors()
Creates the property descriptors list |
Object |
getPropertyValue(Object id)
|
ModelElement |
getValue()
Gets the value for this property. |
void |
resetPropertyValue(Object id)
|
void |
setPropertyValue(Object id,
Object value)
|
protected void |
setValue(ModelElement value)
Sets the value for this property. |
String |
toString()
|
Methods inherited from class be.ac.vub.cocompose.eclipse.model.datatypes.ModelElementsPropertySource |
addElement, createDescriptorsArray, createStringArray, getEditableValue, getFullName, getLog, getPossibleValues, getPropertyDescriptors, getSettings, getValues, getValueStrings, isPropertySet, removeElement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ModelElementPropertySource(ModelElement subject, ModelElement value, Namespace namespace, Class elementClass, Object id, String name)
subject
- the subject for which to set the property.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.public ModelElementPropertySource(ModelElement subject, ModelElement value, Class elementClass, Object id, String name)
subject
- the subject for which to set the property.value
- the current property value.elementClass
- the Class restriction for possible values.id
- the property id.name
- the property name to be displayed.Method Detail |
public Object getPropertyValue(Object id)
getPropertyValue
in interface IPropertySource
getPropertyValue
in class ModelElementsPropertySource
IPropertySource.getPropertyValue(java.lang.Object)
public void resetPropertyValue(Object id)
resetPropertyValue
in interface IPropertySource
resetPropertyValue
in class ModelElementsPropertySource
IPropertySource.resetPropertyValue(java.lang.Object)
public void setPropertyValue(Object id, Object value)
setPropertyValue
in interface IPropertySource
setPropertyValue
in class ModelElementsPropertySource
IPropertySource.setPropertyValue(java.lang.Object, java.lang.Object)
public String toString()
toString
in class ModelElementsPropertySource
Object.toString()
public ModelElement getValue()
protected List createPropertyDescriptors()
createPropertyDescriptors
in class ModelElementsPropertySource
protected void setValue(ModelElement value)
value
- the value for this property.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |