KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > mapping > MappedObjectState


1 /**
2  * <copyright>
3  *
4  * Copyright (c) 2002-2004 IBM Corporation and others.
5  * All rights reserved. This program and the accompanying materials
6  * are made available under the terms of the Eclipse Public License v1.0
7  * which accompanies this distribution, and is available at
8  * http://www.eclipse.org/legal/epl-v10.html
9  *
10  * Contributors:
11  * IBM - Initial API and implementation
12  *
13  * </copyright>
14  *
15  * $Id: MappedObjectState.java,v 1.2 2005/06/08 06:21:43 nickb Exp $
16  */

17 package org.eclipse.emf.mapping;
18
19
20 import java.util.Collection JavaDoc;
21
22 import org.eclipse.emf.edit.provider.IChangeNotifier;
23
24
25 /**
26  * This interface represents that state information that is available for each mapped object,
27  * i.e., each input or output object in the domain.
28  */

29 public interface MappedObjectState extends IChangeNotifier
30 {
31   /**
32    * This returns whether the mapped object is an input.
33    */

34   boolean isInput();
35
36   /**
37    * This is called to indicate that the mapped object is an input.
38    */

39   void setInput();
40
41   /**
42    * This returns whether the mapped object is an output.
43    */

44   boolean isOutput();
45
46   /**
47    * This is called to indicate that the mapped object is an output.
48    */

49   void setOutput();
50
51   /**
52    * This returns, if appropriate, the originating input object of the output object.
53    */

54   Object JavaDoc getOriginatingInput();
55
56   /**
57    * This sets the originating input object of the output object.
58    */

59   void setOriginatingInput(Object JavaDoc originatingInput);
60
61   /**
62    * This returns all the mappings the refer to the mapped object.
63    */

64   Collection JavaDoc getMappings();
65 }
66
67
68
Popular Tags