KickJava   Java API By Example, From Geeks To Geeks.

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


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

17 package org.eclipse.emf.ecore.util;
18
19
20 import org.eclipse.emf.ecore.InternalEObject;
21
22
23 public class EDataTypeUniqueEList extends EDataTypeEList
24 {
25   public static class Unsettable extends EDataTypeEList.Unsettable
26   {
27     public Unsettable(Class JavaDoc dataClass, InternalEObject owner, int featureID)
28     {
29       super(dataClass, owner, featureID);
30     }
31
32     protected boolean isUnique()
33     {
34       return true;
35     }
36   }
37
38   public EDataTypeUniqueEList(Class JavaDoc dataClass, InternalEObject owner, int featureID)
39   {
40     super(dataClass, owner, featureID);
41   }
42
43   protected boolean isUnique()
44   {
45     return true;
46   }
47 }
48
Popular Tags