Class AnnotationItemProviderAdapterFactory.Group
java.lang.Object
org.eclipse.emf.cdo.etypes.provider.annotation.AnnotationItemProviderAdapterFactory.Group
- All Implemented Interfaces:
IItemPropertySource
- Enclosing class:
- AnnotationItemProviderAdapterFactory
public static final class AnnotationItemProviderAdapterFactory.Group
extends Object
implements IItemPropertySource
A convenient implementation of a property source with an explicit list of property descriptors that can be
populated after construction.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<IItemPropertyDescriptor>The list of property descriptors as returned bygetPropertyDescriptors().protected ObjectThevaluefor this property source. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(IItemPropertyDescriptor propertyDescriptor) Adds the given property descriptor to theproperty descriptors.getEditableValue(Object object) getPropertyDescriptor(Object object, Object propertyID) Returns the underlying list of property descriptors.getPropertyDescriptors(Object object) toString()
-
Field Details
-
propertyValue
Thevaluefor this property source. -
itemPropertyDescriptors
The list of property descriptors as returned bygetPropertyDescriptors().
-
-
Constructor Details
-
Group
Creates an instance that wraps the given property value.- Parameters:
propertyValue- thevaluefor this property source.
-
-
Method Details
-
add
Adds the given property descriptor to theproperty descriptors.- Parameters:
propertyDescriptor- the property descriptor to add.
-
getPropertyDescriptors
This implementation simply delegates to
getPropertyDescriptors().- Specified by:
getPropertyDescriptorsin interfaceIItemPropertySource
-
getPropertyDescriptors
Returns the underlying list of property descriptors. This list can be directly modified by the caller.- Returns:
- the underlying list of property descriptors.
-
getPropertyDescriptor
- Specified by:
getPropertyDescriptorin interfaceIItemPropertySource
-
getEditableValue
- Specified by:
getEditableValuein interfaceIItemPropertySource
-
toString
-