01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.pde.internal.core.schema;
11:
12: import java.io.Serializable;
13:
14: import org.eclipse.pde.internal.core.ischema.ISchema;
15: import org.eclipse.pde.internal.core.ischema.ISchemaType;
16:
17: public abstract class SchemaType implements ISchemaType, Serializable {
18: private String name;
19: transient private ISchema schema;
20:
21: public SchemaType(ISchema schema, String typeName) {
22: this .schema = schema;
23: name = typeName;
24: }
25:
26: public String getName() {
27: return name;
28: }
29:
30: public ISchema getSchema() {
31: return schema;
32: }
33:
34: public void setSchema(ISchema schema) {
35: this .schema = schema;
36: }
37:
38: public String toString() {
39: return name;
40: }
41: }
|