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
Modifier and TypeFieldDescriptionprotected final List<IItemPropertyDescriptor>
The list of property descriptors as returned bygetPropertyDescriptors()
.protected Object
Thevalue
for this property source. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(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
Thevalue
for 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
- thevalue
for 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:
getPropertyDescriptors
in 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:
getPropertyDescriptor
in interfaceIItemPropertySource
-
getEditableValue
- Specified by:
getEditableValue
in interfaceIItemPropertySource
-
toString
-