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