be.ac.vub.cocompose.eclipse.model.datatypes
Class MultiplicityPropertySource

java.lang.Object
  extended bybe.ac.vub.cocompose.eclipse.model.datatypes.MultiplicityPropertySource
All Implemented Interfaces:
IPropertySource

public class MultiplicityPropertySource
extends Object
implements IPropertySource

Eclipse Multiplicity property source.

Since:
0.2.0
Version:
0.2.0, 12/12/2003
Author:
Dennis Wagelaar

Field Summary
static String ID_LOWER
           
static String ID_UPPER
           
 
Constructor Summary
MultiplicityPropertySource(Multiplicity multiplicity)
          Creates a MultiplicityPropertySource.
 
Method Summary
 Object getEditableValue()
           
 IPropertyDescriptor[] getPropertyDescriptors()
           
 Object getPropertyValue(Object id)
          Gets the value of the given property.
 Multiplicity getValue()
          Gets the value of this property source.
 boolean isPropertySet(Object id)
           
 void resetPropertyValue(Object id)
           
 void setPropertyValue(Object id, Object value)
          Sets the value of the given property.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ID_LOWER

public static final String ID_LOWER
See Also:
Constant Field Values

ID_UPPER

public static final String ID_UPPER
See Also:
Constant Field Values
Constructor Detail

MultiplicityPropertySource

public MultiplicityPropertySource(Multiplicity multiplicity)
Creates a MultiplicityPropertySource.

Parameters:
multiplicity - - the subject multiplicity.
Method Detail

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)
Gets the value of the given property.

Specified by:
getPropertyValue in interface IPropertySource
Parameters:
id - - the property id.
Returns:
the property value or null.
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)
Sets the value of the given property.

Specified by:
setPropertyValue in interface IPropertySource
Parameters:
id - - the property id.
value - - the new value for the property.
See Also:
IPropertySource.setPropertyValue(java.lang.Object, java.lang.Object)

getValue

public Multiplicity getValue()
Gets the value of this property source.

Returns:
the property value.

toString

public String toString()
See Also:
Object.toString()