KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > core > schema > SchemaType


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.pde.internal.core.schema;
12
13 import java.io.Serializable JavaDoc;
14
15 import org.eclipse.pde.internal.core.ischema.ISchema;
16 import org.eclipse.pde.internal.core.ischema.ISchemaType;
17
18 public abstract class SchemaType implements ISchemaType, Serializable JavaDoc {
19     private String JavaDoc name;
20     transient private ISchema schema;
21
22 public SchemaType(ISchema schema, String JavaDoc typeName) {
23     this.schema = schema;
24     name = typeName;
25 }
26 public String JavaDoc getName() {
27     return name;
28 }
29 public ISchema getSchema() {
30     return schema;
31 }
32
33 public void setSchema(ISchema schema) {
34     this.schema = schema;
35 }
36
37 public String JavaDoc toString() {
38     return name;
39 }
40 }
41
Popular Tags