KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > core > ischema > ISchemaType


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.ischema;
12
13 /**
14  * A base type interface. Schema type is associated
15  * with schema elements and attributes to define
16  * their grammar and/or valid value space.
17  * For simple types, 'getName()' method
18  * returns name of the type that defines
19  * initial value space (for example, "string", "boolean" etc.).
20  */

21 public interface ISchemaType {
22 /**
23  * Returns the logical name of this type.
24  * @return name of the type
25  */

26 public String JavaDoc getName();
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 }
35
Popular Tags