org.eclipse.emf.databinding.internal
Class EMFMultiListProperty

java.lang.Object
  extended by org.eclipse.core.databinding.property.list.ListProperty
      extended by org.eclipse.core.databinding.property.list.MultiListProperty
          extended by org.eclipse.emf.databinding.internal.EMFMultiListProperty
All Implemented Interfaces:
org.eclipse.core.databinding.property.IProperty, org.eclipse.core.databinding.property.list.IListProperty, IEMFListProperty, IEMFProperty

public class EMFMultiListProperty
extends org.eclipse.core.databinding.property.list.MultiListProperty
implements IEMFListProperty

PROVISIONAL: This API is subject to arbitrary change, including renaming or removal.

Since:
2.5

Constructor Summary
EMFMultiListProperty(IEMFListProperty[] properties)
          Create new property
 
Method Summary
 EStructuralFeature getStructuralFeature()
          Returns the descriptor of the EStructuralFeature being observed.
 IEMFListProperty values(EStructuralFeature feature)
          Returns a master-detail combination of this property and the specified value property.
 IEMFListProperty values(FeaturePath featurePath)
          Returns a master-detail combination of this property and the specified value nested feature.
 IEMFListProperty values(IEMFValueProperty property)
          Returns a master-detail combination of this property and the specified value property.
 
Methods inherited from class org.eclipse.core.databinding.property.list.MultiListProperty
getElementType, observe
 
Methods inherited from class org.eclipse.core.databinding.property.list.ListProperty
listFactory, listFactory, observe, observeDetail, values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.core.databinding.property.list.IListProperty
getElementType, listFactory, listFactory, observe, observe, observeDetail, values
 

Constructor Detail

EMFMultiListProperty

public EMFMultiListProperty(IEMFListProperty[] properties)
Create new property

Parameters:
properties -
Method Detail

values

public IEMFListProperty values(EStructuralFeature feature)
Description copied from interface: IEMFListProperty
Returns a master-detail combination of this property and the specified value property.

Specified by:
values in interface IEMFListProperty
Parameters:
feature - the feature
Returns:
a nested combination of this property and the specified nested feature.

values

public IEMFListProperty values(FeaturePath featurePath)
Description copied from interface: IEMFListProperty
Returns a master-detail combination of this property and the specified value nested feature.

Specified by:
values in interface IEMFListProperty
Parameters:
featurePath - the nested feature to observe
Returns:
a nested combination of this property and the specified nested feature.
See Also:
IEMFListProperty.values(IEMFValueProperty)

values

public IEMFListProperty values(IEMFValueProperty property)
Description copied from interface: IEMFListProperty
Returns a master-detail combination of this property and the specified value property. The returned property will observe the specified value property for all elements observed by this list property.

Example:

 // Observes the list-typed "children" property of a Person object,
 // where the elements are Person objects
 IEMFListProperty children = EMFProperties
                .list(MyPackage.Literals.PERSON_CHILDREN);
 // Observes the string-typed "name" property of a Person object
 IEMFValueProperty name = EMFProperties.value(MyPackage.Literals.PERSON_NAME);
 // Observes the names of children of a Person object.
 IEMFListProperty childrenNames = children.values(name);
 

Specified by:
values in interface IEMFListProperty
Parameters:
property - the detail property to observe
Returns:
a master-detail combination of this property and the specified value property.

getStructuralFeature

public EStructuralFeature getStructuralFeature()
Description copied from interface: IEMFProperty
Returns the descriptor of the EStructuralFeature being observed.

Specified by:
getStructuralFeature in interface IEMFProperty
Returns:
the EStructuralFeature being observed

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.