public class EMFSetPropertyDecorator extends SetProperty implements IEMFSetProperty
PROVISIONAL: This API is subject to arbitrary change, including renaming or removal.
| Constructor and Description |
|---|
EMFSetPropertyDecorator(ISetProperty delegate,
EStructuralFeature eStructuralFeature) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getElementType() |
EStructuralFeature |
getStructuralFeature()
Returns the descriptor of the
EStructuralFeature being observed. |
IObservableSet |
observe(java.lang.Object source) |
IObservableSet |
observe(Realm realm,
java.lang.Object source) |
IObservableSet |
observeDetail(IObservableValue master) |
IObservableFactory |
setFactory() |
IObservableFactory |
setFactory(Realm realm) |
java.lang.String |
toString() |
IEMFMapProperty |
values(EStructuralFeature feature)
Returns a master-detail combination of this property and the specified
value property.
|
IEMFMapProperty |
values(FeaturePath featurePath)
Returns a master-detail combination of this property and the specified
value property.
|
IEMFMapProperty |
values(IEMFValueProperty property)
Returns a master-detail combination of this property and the specified
value property.
|
public EMFSetPropertyDecorator(ISetProperty delegate,
EStructuralFeature eStructuralFeature)
delegate - eStructuralFeature - public java.lang.Object getElementType()
public IEMFMapProperty values(EStructuralFeature feature)
IEMFSetPropertyvalues in interface IEMFSetPropertyfeature - the value property to observe.IEMFSetProperty.values(IEMFValueProperty)public IEMFMapProperty values(FeaturePath featurePath)
IEMFSetPropertyvalues in interface IEMFSetPropertyfeaturePath - the value property to observe. May be nested e.g.
"parent.name"IEMFSetProperty.values(IEMFValueProperty)public IEMFMapProperty values(IEMFValueProperty property)
IEMFSetPropertyExample:
// Observes the set-typed "children" property of a Person object, // where the elements are Person objects IEMFSetProperty children = EMFProperties.set(MyPackage.Literals.PERSON_CHILDREN); // Observes the string-typed "name" property of a Person object IEMFValueProperty name = EMFProperties.value(MyPackage.Literals.PERSON_NAME); // Observes a map of children objects to their respective names. IEMFMapProperty childrenNames = children.values(name);
values in interface IEMFSetPropertyproperty - the detail property to observepublic EStructuralFeature getStructuralFeature()
IEMFPropertyEStructuralFeature being observed.getStructuralFeature in interface IEMFPropertyEStructuralFeature being observedpublic IObservableSet observe(java.lang.Object source)
public IObservableSet observe(Realm realm,
java.lang.Object source)
public IObservableFactory setFactory()
public IObservableFactory setFactory(Realm realm)
public IObservableSet observeDetail(IObservableValue master)
public java.lang.String toString()