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 22package com.sun.org.apache.xerces.internal.jaxp.validation; 23 24import com.sun.org.apache.xerces.internal.xni.grammars.XMLGrammarPool; 25 26/** 27 * <p>A container for grammar pools which only contain schema grammars.</p> 28 * 29 * @author Michael Glavassevich, IBM 30 */ 31public interface XSGrammarPoolContainer { 32 33 /** 34 * <p>Returns the grammar pool contained inside the container.</p> 35 * 36 * @return the grammar pool contained inside the container 37 */ 38 public XMLGrammarPool getGrammarPool(); 39 40 /** 41 * <p>Returns whether the schema components contained in this object 42 * can be considered to be a fully composed schema and should be 43 * used to the exclusion of other schema components which may be 44 * present elsewhere.</p> 45 * 46 * @return whether the schema components contained in this object 47 * can be considered to be a fully composed schema 48 */ 49 public boolean isFullyComposed(); 50 51 /** 52 * Returns the initial value of a feature for validators created 53 * using this grammar pool container or null if the validators 54 * should use the default value. 55 */ 56 public Boolean getFeature(String featureId); 57 58 /* 59 * Set a feature on the schema 60 */ 61 public void setFeature(String featureId, boolean state); 62 63 /** 64 * Returns the initial value of a property for validators created 65 * using this grammar pool container or null if the validators 66 * should use the default value. 67 */ 68 public Object getProperty(String propertyId); 69 70 /* 71 * Set a property on the schema 72 */ 73 public void setProperty(String propertyId, Object state); 74 75} 76