KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ant > internal > ui > dtd > ISchema


1 /*******************************************************************************
2  * Copyright (c) 2002, 2005 Object Factory Inc.
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  * Object Factory Inc. - Initial implementation
10  *******************************************************************************/

11 package org.eclipse.ant.internal.ui.dtd;
12
13 public interface ISchema {
14
15     /**
16      * Find element by name.
17      * @param qname Element name.
18      * @return element or null if no such element.
19      */

20     IElement getElement(String JavaDoc qname);
21     
22     /**
23      * @return IElement[] of all visible elements.
24      */

25     IElement[] getElements();
26     
27     /**
28      * @return Exception thrown by parser when schema was built or <code>null</code> if none.
29      * Note that the exception does not necessarily mean the schema is
30      * incomplete.
31      */

32     Exception JavaDoc getErrorException();
33 }
34
Popular Tags