| 1 |
/** |
| 2 |
* Copyright (c) 2008 Matthew Hall and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v2.0 |
| 5 |
* which accompanies this distribution, and is available at |
| 6 |
* http://www.eclipse.org/legal/epl-v20.html |
| 7 |
* |
| 8 |
* Contributors: |
| 9 |
* Matthew Hall - initial API and implementation (bug 195222) |
| 10 |
* Tom Schindl <[email protected]> - port to EMF in 262160 |
| 11 |
*/ |
| 12 |
package org.eclipse.emf.databinding.edit; |
| 13 |
|
| 14 |
import java.util.Map; |
| 15 |
|
| 16 |
import org.eclipse.core.databinding.property.map.IMapProperty; |
| 17 |
import org.eclipse.emf.databinding.FeaturePath; |
| 18 |
import org.eclipse.emf.databinding.IEMFMapProperty; |
| 19 |
import org.eclipse.emf.databinding.IEMFValueProperty; |
| 20 |
import org.eclipse.emf.ecore.EStructuralFeature; |
| 21 |
|
| 22 |
|
| 23 |
/** |
| 24 |
* <p><b>PROVISIONAL:</b> This API is subject to arbitrary change, including renaming or removal.</p> |
| 25 |
* |
| 26 |
* An {@link IMapProperty} extension interface with convenience methods for |
| 27 |
* creating nested {@link EStructuralFeature} properties. |
| 28 |
* |
| 29 |
* @since 2.5 |
| 30 |
* @noextend This interface is not intended to be extended by clients. |
| 31 |
* @noimplement This interface is not intended to be implemented by clients. |
| 32 |
*/ |
| 33 |
public interface IEMFEditMapProperty extends IEMFEditProperty, IEMFMapProperty |
| 34 |
{ |
| 35 |
|
| 36 |
/** |
| 37 |
* Returns a master-detail combination of this property and the specified |
| 38 |
* nested value feature. |
| 39 |
* |
| 40 |
* @param featurePath |
| 41 |
* the nested value feature to observe |
| 42 |
* @return a master-detail combination of this property and the specified |
| 43 |
* nested value feature. |
| 44 |
* @see #values(IEMFEditValueProperty) |
| 45 |
*/ |
| 46 |
public IEMFEditMapProperty values(FeaturePath featurePath); |
| 47 |
|
| 48 |
/** |
| 49 |
* Returns a master-detail combination of this property and the specified |
| 50 |
* value feature. |
| 51 |
* |
| 52 |
* @param feature |
| 53 |
* the value feature to observe |
| 54 |
* @return a master-detail combination of this property and the specified |
| 55 |
* nested value feature. |
| 56 |
* @see #values(IEMFEditValueProperty) |
| 57 |
*/ |
| 58 |
public IEMFEditMapProperty values(EStructuralFeature feature); |
| 59 |
|
| 60 |
/** |
| 61 |
* Returns a master-detail combination of this property and the specified |
| 62 |
* value property. The returned property will observe the specified value |
| 63 |
* property for all {@link Map#values() values} observed by this map |
| 64 |
* property, mapping from this map property's {@link Map#keySet() key set} |
| 65 |
* to the specified value property's value for each element in the master |
| 66 |
* property's {@link Map#values() values} collection. |
| 67 |
* |
| 68 |
* @param property |
| 69 |
* the detail property to observe |
| 70 |
* @return a master-detail combination of this property and the specified |
| 71 |
* value property. |
| 72 |
*/ |
| 73 |
public IEMFEditMapProperty values(IEMFEditValueProperty property); |
| 74 |
|
| 75 |
public IEMFEditMapProperty values(IEMFValueProperty property); |
| 76 |
} |