KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > oracle > toplink > essentials > platform > xml > XMLSchemaReference


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the "License"). You may not use this file except
5  * in compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * glassfish/bootstrap/legal/CDDLv1.0.txt or
9  * https://glassfish.dev.java.net/public/CDDLv1.0.html.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * HEADER in each file and include the License file at
15  * glassfish/bootstrap/legal/CDDLv1.0.txt. If applicable,
16  * add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your
18  * own identifying information: Portions Copyright [yyyy]
19  * [name of copyright owner]
20  */

21 // Copyright (c) 1998, 2005, Oracle. All rights reserved.
22
package oracle.toplink.essentials.platform.xml;
23
24
25 // JDK imports
26
import java.net.URL JavaDoc;
27
28 /**
29  * A schema reference is used to access a schema in order to validate a
30  * document.
31  */

32 public interface XMLSchemaReference {
33     public static final int COMPLEX_TYPE = 1;
34     public static final int SIMPLE_TYPE = 2;
35     public static final int ELEMENT = 3;
36     public static final int GROUP = 5;
37
38     /**
39      * Returns the path to be traversed for validation purposes.
40      *
41      * @return a string represented the path to be traversed
42      */

43     public String JavaDoc getSchemaContext();
44
45     /**
46      * Indicates if the schema reference references a simple type definition,
47      * complex type definition, element or group
48      *
49      * @return COMPLEX_TYPE=1, SIMPLE_TYPE=2, ELEMENT=3, GROUP=5
50      */

51     public int getType();
52
53     /**
54      * A URL which referenes the Schema.
55      *
56      * @return the schema URL
57      */

58     public URL JavaDoc getURL();
59 }
60
Popular Tags