KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > ecore > xmi > impl > NameInfoImpl


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

17 package org.eclipse.emf.ecore.xmi.impl;
18
19 import org.eclipse.emf.ecore.xmi.NameInfo;
20
21
22 /**
23  * Implementation of the {@link NameInfo} interface.
24  */

25 public class NameInfoImpl implements NameInfo
26 {
27   protected String JavaDoc localPart;
28   protected String JavaDoc qualifiedName;
29   protected String JavaDoc namespaceURI;
30   
31   public String JavaDoc getLocalPart()
32   {
33     return localPart;
34   }
35   
36   public String JavaDoc getNamespaceURI()
37   {
38     return namespaceURI;
39   }
40
41   public String JavaDoc getQualifiedName()
42   {
43     return qualifiedName;
44   }
45   
46   public void setLocalPart(String JavaDoc name)
47   {
48     this.localPart = name;
49   }
50   
51   public void setNamespaceURI(String JavaDoc uri)
52   {
53     this.namespaceURI = uri;
54   }
55  
56   public void setQualifiedName(String JavaDoc name)
57   {
58     this.qualifiedName = name;
59   }
60   
61 }
62
Popular Tags