286N/A/*
286N/A * reserved comment block
286N/A * DO NOT REMOVE OR ALTER!
286N/A */
286N/A/*
286N/A * Copyright 2002,2004 The Apache Software Foundation.
286N/A *
286N/A * Licensed under the Apache License, Version 2.0 (the "License");
286N/A * you may not use this file except in compliance with the License.
286N/A * You may obtain a copy of the License at
286N/A *
286N/A * http://www.apache.org/licenses/LICENSE-2.0
286N/A *
286N/A * Unless required by applicable law or agreed to in writing, software
286N/A * distributed under the License is distributed on an "AS IS" BASIS,
286N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
286N/A * See the License for the specific language governing permissions and
286N/A * limitations under the License.
286N/A */
286N/A
286N/Apackage com.sun.org.apache.xerces.internal.xni.grammars;
286N/A
286N/Aimport com.sun.org.apache.xerces.internal.xs.XSModel;
286N/A
286N/A/**
286N/A * Representing a schema grammar. It contains declaratoin/definitions from
286N/A * a certain namespace. When a grammar is preparsed, and its grammar type is
286N/A * XML Schema, it can be casted to this interface. Objects of this interface
286N/A * can be converted to XSModel, from which further information about components
286N/A * in this grammar can be obtained.
286N/A *
286N/A * @author Sandy Gao, IBM
286N/A *
286N/A */
286N/Apublic interface XSGrammar extends Grammar {
286N/A
286N/A /**
286N/A * Return an <code>XSModel</code> that represents components in this schema
286N/A * grammar and any schema grammars that are imported by this grammar
286N/A * directly or indirectly.
286N/A *
286N/A * @return an <code>XSModel</code> representing this schema grammar
286N/A */
286N/A public XSModel toXSModel();
286N/A
286N/A /**
286N/A * Return an <code>XSModel</code> that represents components in this schema
286N/A * grammar and the grammars in the <code>grammars</code>parameter,
286N/A * any schema grammars that are imported by them directly or indirectly.
286N/A *
286N/A * @return an <code>XSModel</code> representing these schema grammars
286N/A */
286N/A public XSModel toXSModel(XSGrammar[] grammars);
286N/A
286N/A} // interface XSGrammar