Package org.eclipse.emf.cdo.etypes.provider.annotation

# Klasse AnnotationItemProviderAdapterFactory.ModeledItemPropertyDescriptorDecorator

java.lang.Object
org.eclipse.emf.edit.provider.ItemPropertyDescriptorDecorator
org.eclipse.emf.cdo.etypes.provider.annotation.AnnotationItemProviderAdapterFactory.ModeledItemPropertyDescriptorDecorator

Alle implementierten Schnittstellen:
  `IItemPropertyDescriptor`, `IItemPropertyDescriptor.ValueHandlerProvider`, `IPropertyEditorFactory.Provider`

Umschließende Klasse:
  `AnnotationItemProviderAdapterFactory`

public static class AnnotationItemProviderAdapterFactory.ModeledItemPropertyDescriptorDecorator extends ItemPropertyDescriptorDecorator
An item property descriptor decorator implementation used by `AnnotationItemProviderAdapterFactory.createPropertyDescriptorDecorator` to create an `assistant`-aware decorator. It is reusable in overrides of AnnotationItemProviderAdapterFactory.createPropertyDescriptorDecorator.

## Verschachtelte Klassen - Übersicht

## Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.emf.edit.provider.IItemPropertyDescriptor

`IItemPropertyDescriptor.OverrideableCommandOwner, IItemPropertyDescriptor.ValueHandler, IItemPropertyDescriptor.ValueHandlerProvider`

## Feldübersicht

Felder
Modifizierer und Typ
Feld
Beschreibung
`protected final Annotation`
`annotation`
The annotation modeled by the modeled object.
`protected final BasicAnnotationValidator.Assistant`
`assistant`
The assistant used for `value conversion`.
`protected final EditingDomain`
`domain`
The editing domain of the annotation.
`protected final EStructuralFeature`
`eStructuralFeature`
The `feature` of a property of the modeled object.
`protected final String`
`key`
The `key` of a property of the modeled object.

### Von Klasse geerbte Felder org.eclipse.emf.edit.provider.ItemPropertyDescriptorDecorator

`itemPropertyDescriptor, object`

## Konstruktorübersicht

Konstruktoren
Konstruktor
Beschreibung
`ModeledItemPropertyDescriptorDecorator(IItemPropertyDescriptor propertyDescriptor, EObject eObject, String key, EStructuralFeature eStructuralFeature, Annotation annotation, ResourceLocator resourceLocator, EditingDomain domain, BasicAnnotationValidator.Assistant assistant)`

## Methodenübersicht

Modifizierer und Typ
Methode
Beschreibung
`boolean`
`canSetProperty(Object object)`
`boolean`
`isPropertySet(Object thisObject)`
`boolean`
`isPropertyUnsettable(Object object)`
`void`
`resetPropertyValue(Object thisObject)`
`void`
`setPropertyValue(Object object, Object value)`

### Von Klasse geerbte Methoden org.eclipse.emf.edit.provider.ItemPropertyDescriptorDecorator

`getCategory, getChoiceOfValues, getDecoratedItemPropertyDescriptor, getDecoratedObject, getDescription, getDisplayName, getEditorFactory, getFeature, getFilterFlags, getHelpContextIds, getId, getLabelProvider, getPropertyValue, getValueHandler, isChoiceArbitrary, isCompatibleWith, isMany, isMultiLine, isSortChoices`

### Von Klasse geerbte Methoden java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Felddetails

### key

protected final String key
The `key` of a property of the modeled object.

### eStructuralFeature

protected final EStructuralFeature eStructuralFeature
The `feature` of a property of the modeled object.

### annotation

protected final Annotation annotation
The annotation modeled by the modeled object.

### domain

protected final EditingDomain domain
The editing domain of the annotation.

### assistant

protected final BasicAnnotationValidator.Assistant assistant
The assistant used for `value conversion`.

## Konstruktordetails

### ModeledItemPropertyDescriptorDecorator

public ModeledItemPropertyDescriptorDecorator(IItemPropertyDescriptor propertyDescriptor, EObject eObject, String key, EStructuralFeature eStructuralFeature, Annotation annotation, ResourceLocator resourceLocator, EditingDomain domain, BasicAnnotationValidator.Assistant assistant)

## Methodendetails

### canSetProperty

public boolean canSetProperty(Object object)

This implementation checks whether the resource of the `annotation` is `read-only` in `domain`.

Angegeben von:
  `canSetProperty` in Schnittstelle `IItemPropertyDescriptor`
Setzt außer Kraft:
  `canSetProperty` in Klasse `ItemPropertyDescriptorDecorator`

### isPropertySet

public boolean isPropertySet(Object thisObject)

This implementation checks if the key has a non-null value in the `annotation` details.

Angegeben von:
  `isPropertySet` in Schnittstelle `IItemPropertyDescriptor`
Setzt außer Kraft:
  `isPropertySet` in Klasse `ItemPropertyDescriptorDecorator`

### isPropertyUnsettable

public boolean isPropertyUnsettable(Object object)

This implementation checks if the key has a `null` value in the `annotation` details and the `value of the property` is non-null. Returning `true` for this allows the properties view to set the implicit value explicitly via the tool bar button.

Angegeben von:
  `isPropertyUnsettable` in Schnittstelle `IItemPropertyDescriptor.ValueHandlerProvider`
Setzt außer Kraft:
  `isPropertyUnsettable` in Klasse `ItemPropertyDescriptorDecorator`

### resetPropertyValue

public void resetPropertyValue(Object thisObject)

This implementation removes the detail corresponding to the `key` from the `annotation`.

Angegeben von:
  `resetPropertyValue` in Schnittstelle `IItemPropertyDescriptor`
Setzt außer Kraft:
  `resetPropertyValue` in Klasse `ItemPropertyDescriptorDecorator`

### setPropertyValue

public void setPropertyValue(Object object, Object value)

This implementation `converts` the value to a literal and either updates the key's existing entry's value or create a new entry for the key and value.

Angegeben von:
  `setPropertyValue` in Schnittstelle `IItemPropertyDescriptor`
Setzt außer Kraft:
  `setPropertyValue` in Klasse `ItemPropertyDescriptorDecorator`