< prev index next >

src/com/sun/org/apache/xerces/internal/xni/grammars/XMLGrammarPool.java

Print this page
rev 2127 : 8162572: Update License Header for all JAXP sources
Reviewed-by: lancea
   1 /*
   2  * reserved comment block
   3  * DO NOT REMOVE OR ALTER!
   4  */
   5 /*
   6  * Copyright 2000-2002,2004 The Apache Software Foundation.
   7  *
   8  * Licensed under the Apache License, Version 2.0 (the "License");
   9  * you may not use this file except in compliance with the License.
  10  * You may obtain a copy of the License at

  11  *
  12  *      http://www.apache.org/licenses/LICENSE-2.0
  13  *
  14  * Unless required by applicable law or agreed to in writing, software
  15  * distributed under the License is distributed on an "AS IS" BASIS,
  16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17  * See the License for the specific language governing permissions and
  18  * limitations under the License.
  19  */

  20 package com.sun.org.apache.xerces.internal.xni.grammars;
  21 
  22 /**
  23  * <p> This interface specifies how the parser and the application
  24  * interact with respect to Grammar objects that the application
  25  * possesses--either by having precompiled them or by having stored them
  26  * from a previous validation of an instance document.  It makes no
  27  * assumptions about the kind of Grammar involved, or about how the
  28  * application's storage mechanism works.</p>
  29  *
  30  * <p>The interaction works as follows:
  31  * <ul>
  32  * <li>When a validator considers a document, it is expected to request
  33  * grammars of the type it can handle from this object using the
  34  * <code>retrieveInitialGrammarSet</code> method. </li>
  35  * <li>If it requires a grammar
  36  * not in this set, it will request it from this Object using the
  37  * <code>retrieveGrammar</code> method.  </li>
  38  * <li> After successfully validating an
  39  * instance, the validator should make any new grammars it has compiled


   1 /*
   2  * reserved comment block
   3  * DO NOT REMOVE OR ALTER!
   4  */
   5 /*
   6  * Licensed to the Apache Software Foundation (ASF) under one or more
   7  * contributor license agreements.  See the NOTICE file distributed with
   8  * this work for additional information regarding copyright ownership.
   9  * The ASF licenses this file to You under the Apache License, Version 2.0
  10  * (the "License"); you may not use this file except in compliance with
  11  * the License.  You may obtain a copy of the License at
  12  *
  13  *      http://www.apache.org/licenses/LICENSE-2.0
  14  *
  15  * Unless required by applicable law or agreed to in writing, software
  16  * distributed under the License is distributed on an "AS IS" BASIS,
  17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18  * See the License for the specific language governing permissions and
  19  * limitations under the License.
  20  */
  21 
  22 package com.sun.org.apache.xerces.internal.xni.grammars;
  23 
  24 /**
  25  * <p> This interface specifies how the parser and the application
  26  * interact with respect to Grammar objects that the application
  27  * possesses--either by having precompiled them or by having stored them
  28  * from a previous validation of an instance document.  It makes no
  29  * assumptions about the kind of Grammar involved, or about how the
  30  * application's storage mechanism works.</p>
  31  *
  32  * <p>The interaction works as follows:
  33  * <ul>
  34  * <li>When a validator considers a document, it is expected to request
  35  * grammars of the type it can handle from this object using the
  36  * <code>retrieveInitialGrammarSet</code> method. </li>
  37  * <li>If it requires a grammar
  38  * not in this set, it will request it from this Object using the
  39  * <code>retrieveGrammar</code> method.  </li>
  40  * <li> After successfully validating an
  41  * instance, the validator should make any new grammars it has compiled


< prev index next >