KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > ecore > util > InternalEList


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: InternalEList.java,v 1.3 2005/06/08 06:20:10 nickb Exp $
16  */

17 package org.eclipse.emf.ecore.util;
18
19
20 import java.util.Iterator JavaDoc;
21 import java.util.List JavaDoc;
22 import java.util.ListIterator JavaDoc;
23
24 import org.eclipse.emf.common.notify.NotificationChain;
25 import org.eclipse.emf.common.util.EList;
26
27
28 public interface InternalEList extends EList
29 {
30   /**
31    * Returns the unresolved value.
32    */

33   Object JavaDoc basicGet(int index);
34
35   /**
36    * Returns an unmodifiable list that yields unresolved values.
37    */

38   List JavaDoc basicList();
39
40   /**
41    * Returns an iterator that yields unresolved values.
42    */

43   Iterator JavaDoc basicIterator();
44
45   /**
46    * Returns a list iterator that yields unresolved values.
47    */

48   ListIterator JavaDoc basicListIterator();
49
50   /**
51    * Returns a list iterator that yields unresolved values.
52    */

53   ListIterator JavaDoc basicListIterator(int index);
54
55   /**
56    * Removes the object with without updating the inverse.
57    */

58   NotificationChain basicRemove(Object JavaDoc object, NotificationChain notifications);
59
60   /**
61    * Adds the object without updating the inverse.
62    */

63   NotificationChain basicAdd(Object JavaDoc object, NotificationChain notifications);
64
65   /**
66    * Adds the object without verifying uniqueness.
67    */

68   void addUnique(Object JavaDoc object);
69
70   /**
71    * Adds the object without verifying uniqueness.
72    */

73   void addUnique(int index, Object JavaDoc object);
74
75   /**
76    * Sets the object without verifying uniqueness.
77    */

78   Object JavaDoc setUnique(int index, Object JavaDoc object);
79
80   /**
81    * Additional API for unsettable lists.
82    */

83   interface Unsettable extends InternalEList
84   {
85     /**
86      * Returns whether a value is held by the feature of the object.
87      * @return whether a value is held by the feature of the object.
88      * @see org.eclipse.emf.ecore.EObject#eIsSet(org.eclipse.emf.ecore.EStructuralFeature)
89      */

90     boolean isSet();
91   
92     /**
93      * Unsets the value held by the feature of the object.
94      * @see org.eclipse.emf.ecore.EObject#eUnset(org.eclipse.emf.ecore.EStructuralFeature)
95      */

96     void unset();
97   }
98 }
99
Popular Tags