public class EMFEditValuePropertyDecorator extends ValueProperty implements IEMFEditValueProperty
PROVISIONAL: This API is subject to arbitrary change, including renaming or removal.
| Constructor and Description |
|---|
EMFEditValuePropertyDecorator(EditingDomain editingDomain,
IValueProperty delegate,
EStructuralFeature eStructuralFeature) |
| Modifier and Type | Method and Description |
|---|---|
EditingDomain |
getEditingDomain() |
EStructuralFeature |
getStructuralFeature()
Returns the descriptor of the
EStructuralFeature being observed. |
java.lang.Object |
getValueType() |
IEMFEditListProperty |
list(EStructuralFeature feature)
Returns a master-detail combination of this property and the specified
list feature.
|
IEMFEditListProperty |
list(IEMFEditListProperty property)
Returns a master-detail combination of this property and the specified
list property.
|
IEMFEditListProperty |
list(IEMFListProperty property)
Returns a master-detail combination of this property and the specified
list property.
|
IEMFEditMapProperty |
map(EStructuralFeature feature)
Returns a master-detail combination of this property and the specified
map feature.
|
IEMFEditMapProperty |
map(IEMFEditMapProperty property)
Returns a master-detail combination of this property and the specified
map property.
|
IEMFEditMapProperty |
map(IEMFMapProperty property)
Returns a master-detail combination of this property and the specified
map property.
|
IObservableValue |
observe(java.lang.Object source) |
IObservableValue |
observe(Realm realm,
java.lang.Object source) |
IObservableList |
observeDetail(IObservableList master) |
IObservableMap |
observeDetail(IObservableMap master) |
IObservableMap |
observeDetail(IObservableSet master) |
IObservableValue |
observeDetail(IObservableValue master) |
IEMFEditSetProperty |
set(EStructuralFeature feature)
Returns a master-detail combination of this property and the specified
set property.
|
IEMFEditSetProperty |
set(IEMFEditSetProperty property)
Returns a master-detail combination of this property and the specified
set property.
|
IEMFSetProperty |
set(IEMFSetProperty property)
Returns a master-detail combination of this property and the specified
set property.
|
java.lang.String |
toString() |
IEMFEditValueProperty |
value(EStructuralFeature feature)
Returns a master-detail combination of this property and the specified
value feature.
|
IEMFEditValueProperty |
value(FeaturePath featurePath)
Returns a master-detail combination of this property and the specified
nested value feature.
|
IEMFEditValueProperty |
value(IEMFEditValueProperty property)
Returns a master-detail combination of this property and the specified
value property.
|
IEMFEditValueProperty |
value(IEMFValueProperty property)
Returns a master-detail combination of this property and the specified
value property.
|
IObservableFactory |
valueFactory() |
IObservableFactory |
valueFactory(Realm realm) |
public EMFEditValuePropertyDecorator(EditingDomain editingDomain, IValueProperty delegate, EStructuralFeature eStructuralFeature)
editingDomain - delegate - eStructuralFeature - public EStructuralFeature getStructuralFeature()
IEMFPropertyEStructuralFeature being observed.getStructuralFeature in interface IEMFPropertyEStructuralFeature being observedpublic java.lang.Object getValueType()
public IEMFEditValueProperty value(EStructuralFeature feature)
IEMFEditValuePropertyvalue in interface IEMFEditValuePropertyvalue in interface IEMFValuePropertyfeature - the nested value property to observe.IEMFEditValueProperty.value(IEMFEditValueProperty)public IEMFEditValueProperty value(FeaturePath featurePath)
IEMFEditValuePropertyvalue in interface IEMFEditValuePropertyvalue in interface IEMFValuePropertyfeaturePath - the nested value property to observe.IEMFEditValueProperty.value(IEMFEditValueProperty)public IEMFEditValueProperty value(IEMFEditValueProperty property)
IEMFEditValuePropertyExample:
// Observes the Node-typed "parent" property of a Node object IEMFValueProperty parent = EMFProperties.value(MyPackage.Literals.NODE_PARENT); // Observes the string-typed "name" property of a Node object IEMFValueProperty name = EMFProperties.value(MyPackage.Literals.NODE_NAME); // Observes the name of the parent of a Node object. IEMFValueProperty parentName = parent.value(name);
value in interface IEMFEditValuePropertyproperty - the detail property to observepublic IEMFEditListProperty list(EStructuralFeature feature)
IEMFEditValuePropertylist in interface IEMFEditValuePropertylist in interface IEMFValuePropertyfeature - the list feature to observeIEMFEditValueProperty.list(IEMFEditListProperty)public IEMFEditListProperty list(IEMFEditListProperty property)
IEMFEditValuePropertyExample:
// Observes the Node-typed "parent" property of a Node object. IEMFValueProperty parent = EMFProperties.value(MyPackage.Literals.NODE_PARENT); // Observes the List-typed "children" property of a Node object // where the elements are Node objects IEMFListProperty children = EMFProperties.list(MyPackage.Literals.NODE_CHILDREN); // Observes the children of the parent (siblings) of a Node object. IEMFListProperty siblings = parent.list(children);
list in interface IEMFEditValuePropertyproperty - the detail property to observepublic IEMFEditSetProperty set(EStructuralFeature feature)
IEMFEditValuePropertyset in interface IEMFEditValuePropertyset in interface IEMFValuePropertyfeature - the set feature to observeIEMFValueProperty.set(IEMFSetProperty)public IEMFEditSetProperty set(IEMFEditSetProperty property)
IEMFEditValuePropertyExample:
// Observes the Node-typed "parent" property of a Node object. IEMFValueProperty parent = EMFProperties.value(MyPackage.Literals.NODE__PARENT); // Observes the Set-typed "children" property of a Node object // where the elements are Node objects IEMFSetProperty children = EMFProperties.set(MyPackage.Literals.NODE__CHILDREN); // Observes the children of the parent (siblings) of a Node object. IEMFSetProperty siblings = parent.set(children);
set in interface IEMFEditValuePropertyproperty - the detail property to observepublic IEMFEditMapProperty map(EStructuralFeature feature)
IEMFEditValuePropertymap in interface IEMFEditValuePropertymap in interface IEMFValuePropertyfeature - the map property to observeIEMFEditValueProperty.map(IEMFEditMapProperty)public IEMFEditMapProperty map(IEMFEditMapProperty property)
IEMFEditValuePropertyExample:
// Observes the Contact-typed "supervisor" property of a // Contact class IEMFValueProperty supervisor = EMFProperties.value(MyPackage.Literals.CONTACT_SUPERVISOR); // Observes the property "phoneNumbers" of a Contact object--a property mapping // from PhoneNumberType to PhoneNumber "set-typed "children", IEMFMapProperty phoneNumbers = EMFProperties.map(MyPackage.Literals.CONTACT_PHONENUMBERS); // Observes the phone numbers of a contact's supervisor: IEMFMapProperty supervisorPhoneNumbers = supervisor.map(phoneNumbers);
map in interface IEMFEditValuePropertyproperty - the detail property to observepublic IObservableValue observe(java.lang.Object source)
public IObservableValue observe(Realm realm,
java.lang.Object source)
public IObservableFactory valueFactory()
public IObservableFactory valueFactory(Realm realm)
public IObservableValue observeDetail(IObservableValue master)
public IObservableList observeDetail(IObservableList master)
public IObservableMap observeDetail(IObservableSet master)
public IObservableMap observeDetail(IObservableMap master)
public java.lang.String toString()
public EditingDomain getEditingDomain()
getEditingDomain in interface IEMFEditPropertypublic IEMFEditListProperty list(IEMFListProperty property)
IEMFValuePropertyExample:
// Observes the Node-typed "parent" property of a Node object. IEMFValueProperty parent = EMFProperties.value(MyPackage.Literals.NODE_PARENT); // Observes the List-typed "children" property of a Node object // where the elements are Node objects IEMFListProperty children = EMFProperties.list(MyPackage.Literals.NODE_CHILDREN); // Observes the children of the parent (siblings) of a Node object. IEMFListProperty siblings = parent.list(children);
list in interface IEMFEditValuePropertylist in interface IEMFValuePropertyproperty - the detail property to observepublic IEMFEditMapProperty map(IEMFMapProperty property)
IEMFValuePropertyExample:
// Observes the Contact-typed "supervisor" property of a // Contact class IEMFValueProperty supervisor = EMFProperties.value(MyPackage.Literals.CONTACT_SUPERVISOR); // Observes the property "phoneNumbers" of a Contact object--a property mapping // from PhoneNumberType to PhoneNumber "set-typed "children", IEMFMapProperty phoneNumbers = EMFProperties.map(MyPackage.Literals.CONTACT_PHONENUMBERS); // Observes the phone numbers of a contact's supervisor: IEMFMapProperty supervisorPhoneNumbers = supervisor.map(phoneNumbers);
map in interface IEMFEditValuePropertymap in interface IEMFValuePropertyproperty - the detail property to observepublic IEMFEditValueProperty value(IEMFValueProperty property)
IEMFValuePropertyExample:
// Observes the Node-typed "parent" property of a Node object IEMFValueProperty parent = EMFProperties.value(MyPackage.Literals.NODE_PARENT); // Observes the string-typed "name" property of a Node object IEMFValueProperty name = EMFProperties.value(MyPackage.Literals.NODE_NAME); // Observes the name of the parent of a Node object. IEMFValueProperty parentName = parent.value(name);
value in interface IEMFEditValuePropertyvalue in interface IEMFValuePropertyproperty - the detail property to observepublic IEMFSetProperty set(IEMFSetProperty property)
IEMFValuePropertyExample:
// Observes the Node-typed "parent" property of a Node object. IEMFValueProperty parent = EMFProperties.value(MyPackage.Literals.NODE__PARENT); // Observes the Set-typed "children" property of a Node object // where the elements are Node objects IEMFSetProperty children = EMFProperties.set(MyPackage.Literals.NODE__CHILDREN); // Observes the children of the parent (siblings) of a Node object. IEMFSetProperty siblings = parent.set(children);
set in interface IEMFValuePropertyproperty - the detail property to observe