KickJava   Java API By Example, From Geeks To Geeks.

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


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

17 package org.eclipse.emf.ecore.util;
18
19
20 import org.eclipse.emf.ecore.EObject;
21 import org.eclipse.emf.ecore.InternalEObject;
22
23
24 public class EObjectResolvingEList extends EObjectEList
25 {
26   public static class Unsettable extends EObjectEList.Unsettable
27   {
28     public Unsettable(Class JavaDoc dataClass, InternalEObject owner, int featureID)
29     {
30       super(dataClass, owner, featureID);
31     }
32
33     protected boolean hasProxies()
34     {
35       return true;
36     }
37     
38     protected Object JavaDoc resolve(int index, Object JavaDoc object)
39     {
40       // jdk 1.3 requires this explicity cast
41
return ((EcoreEList)this).resolve(index, (EObject)object);
42     }
43   }
44
45   public EObjectResolvingEList(Class JavaDoc dataClass, InternalEObject owner, int featureID)
46   {
47     super(dataClass, owner, featureID);
48   }
49
50   protected boolean hasProxies()
51   {
52     return true;
53   }
54   
55   protected Object JavaDoc resolve(int index, Object JavaDoc object)
56   {
57     // jdk 1.3 requires this explicity cast
58
return ((EcoreEList)this).resolve(index, (EObject)object);
59   }
60 }
61
Popular Tags