KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > org > apache > xerces > internal > jaxp > validation > XMLSchema


1 /*
2  * Copyright 2005 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package com.sun.org.apache.xerces.internal.jaxp.validation;
18
19 import com.sun.org.apache.xerces.internal.xni.grammars.XMLGrammarPool;
20
21 /**
22  * <p>Implementation of Schema for W3C XML Schemas.</p>
23  *
24  * @author Michael Glavassevich, IBM
25  * @version $Id: XMLSchema.java,v 1.1.4.1 2005/09/05 11:46:34 sunithareddy Exp $
26  */

27 final class XMLSchema extends AbstractXMLSchema {
28     
29     /** The grammar pool is immutable */
30     private final XMLGrammarPool fGrammarPool;
31     
32     /** Constructor */
33     public XMLSchema(XMLGrammarPool grammarPool) {
34         fGrammarPool = grammarPool;
35     }
36     
37     /*
38      * XSGrammarPoolContainer methods
39      */

40     
41     /**
42      * <p>Returns the grammar pool contained inside the container.</p>
43      *
44      * @return the grammar pool contained inside the container
45      */

46     public XMLGrammarPool getGrammarPool() {
47         return fGrammarPool;
48     }
49
50     /**
51      * <p>Returns whether the schema components contained in this object
52      * can be considered to be a fully composed schema and should be
53      * used to exclusion of other schema components which may be
54      * present elsewhere.</p>
55      *
56      * @return whether the schema components contained in this object
57      * can be considered to be a fully composed schema
58      */

59     public boolean isFullyComposed() {
60         return true;
61     }
62     
63 } // XMLSchema
64
Popular Tags