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.ischema;
11:
12: /**
13: * A base type interface. Schema type is associated
14: * with schema elements and attributes to define
15: * their grammar and/or valid value space.
16: * For simple types, 'getName()' method
17: * returns name of the type that defines
18: * initial value space (for example, "string", "boolean" etc.).
19: */
20: public interface ISchemaType {
21: /**
22: * Returns the logical name of this type.
23: * @return name of the type
24: */
25: public String getName();
26:
27: /**
28: * Returns the schema object in which this type is defined.
29: * @return the top-level schema object
30: */
31: public ISchema getSchema();
32:
33: public void setSchema(ISchema schema);
34: }
|