public interface IEMFEditValueProperty extends IEMFEditProperty, IEMFValueProperty
PROVISIONAL: This API is subject to arbitrary change, including renaming or removal.
AnIValueProperty
extension interface with convenience methods for
creating nested EStructuralFeature
properties and does changes through the EditingDomain
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
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.
|
getEditingDomain
set
getStructuralFeature
IEMFEditValueProperty value(FeaturePath featurePath)
value
in interface IEMFValueProperty
featurePath
- the nested value property to observe.value(IEMFEditValueProperty)
IEMFEditValueProperty value(EStructuralFeature feature)
value
in interface IEMFValueProperty
feature
- the nested value property to observe.value(IEMFEditValueProperty)
IEMFEditValueProperty value(IEMFEditValueProperty property)
Example:
// 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);
property
- the detail property to observeIEMFEditListProperty list(EStructuralFeature feature)
list
in interface IEMFValueProperty
feature
- the list feature to observelist(IEMFEditListProperty)
IEMFEditListProperty list(IEMFEditListProperty property)
Example:
// 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);
property
- the detail property to observeIEMFEditMapProperty map(EStructuralFeature feature)
map
in interface IEMFValueProperty
feature
- the map property to observemap(IEMFEditMapProperty)
IEMFEditMapProperty map(IEMFEditMapProperty property)
Example:
// 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);
property
- the detail property to observeIEMFEditListProperty list(IEMFListProperty property)
IEMFValueProperty
Example:
// 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 IEMFValueProperty
property
- the detail property to observeIEMFEditMapProperty map(IEMFMapProperty property)
IEMFValueProperty
Example:
// 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 IEMFValueProperty
property
- the detail property to observeIEMFEditValueProperty value(IEMFValueProperty property)
IEMFValueProperty
Example:
// 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 IEMFValueProperty
property
- the detail property to observeIEMFEditSetProperty set(EStructuralFeature feature)
set
in interface IEMFValueProperty
feature
- the set feature to observeIEMFValueProperty.set(IEMFSetProperty)
IEMFEditSetProperty set(IEMFEditSetProperty property)
Example:
// 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);
property
- the detail property to observe