KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > ecore > xmi > IllegalValueException


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

17 package org.eclipse.emf.ecore.xmi;
18
19 import org.eclipse.emf.ecore.EObject;
20 import org.eclipse.emf.ecore.EStructuralFeature;
21
22 public class IllegalValueException extends XMIException
23 {
24   protected transient EObject object;
25   protected transient EStructuralFeature feature;
26   protected transient Object JavaDoc value;
27   
28   public IllegalValueException
29     (EObject object, EStructuralFeature feature, Object JavaDoc value, Exception JavaDoc emfException, String JavaDoc location, int line, int column)
30   {
31     super("Value '" + value + "' is not legal.", emfException, location, line, column);
32     this.object = object;
33     this.feature = feature;
34     this.value = value;
35   }
36   
37   public EObject getObject()
38   {
39     return object;
40   }
41   
42   public EStructuralFeature getFeature()
43   {
44     return feature;
45   }
46   
47   public Object JavaDoc getValue()
48   {
49     return value;
50   }
51 }
52
Popular Tags