KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jface > internal > databinding > provisional > observable > mapping > MappingDiff


1 /*******************************************************************************
2  * Copyright (c) 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  ******************************************************************************/

11
12 package org.eclipse.jface.internal.databinding.provisional.observable.mapping;
13
14 import java.util.Set JavaDoc;
15
16 import org.eclipse.jface.internal.databinding.provisional.observable.IDiff;
17
18 /**
19  * @since 1.0
20  *
21  */

22 public abstract class MappingDiff implements IDiff {
23     /**
24      * @return the set of elements for which the mapping value has changed
25      */

26     public abstract Set JavaDoc getElements();
27
28     /**
29      * @return an array containing the affected indices.
30      */

31     public abstract int[] getAffectedIndices();
32
33     /**
34      * @param element
35      * @param indices
36      * @return the old values of the mapping for the given element at the given
37      * indices.
38      */

39     public abstract Object JavaDoc[] getOldMappingValues(Object JavaDoc element, int[] indices);
40
41     /**
42      * @param element
43      * @param indices
44      * @return the new value of the mapping for the given element
45      */

46     public abstract Object JavaDoc[] getNewMappingValues(Object JavaDoc element, int[] indices);
47 }
48
Popular Tags