1 /* 2 * Copyright 2000-2002,2004 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 org.apache.xerces.xni.parser; 18 19 /** 20 * The component manager manages a parser configuration and the components 21 * that make up that configuration. The manager notifies each component 22 * before parsing to allow the components to initialize their state; and 23 * also any time that a parser feature or property changes. 24 * <p> 25 * The methods of the component manager allow components to query features 26 * and properties that affect the operation of the component. 27 * 28 * @see XMLComponent 29 * 30 * @author Andy Clark, IBM 31 * 32 * @version $Id: XMLComponentManager.java,v 1.5 2004/02/24 23:15:56 mrglavas Exp $ 33 */ 34 public interface XMLComponentManager { 35 36 // 37 // XMLComponentManager methods 38 // 39 40 /** 41 * Returns the state of a feature. 42 * 43 * @param featureId The feature identifier. 44 * 45 * @throws XMLConfigurationException Thrown on configuration error. 46 */ 47 public boolean getFeature(String featureId) 48 throws XMLConfigurationException; 49 50 /** 51 * Returns the value of a property. 52 * 53 * @param propertyId The property identifier. 54 * 55 * @throws XMLConfigurationException Thrown on configuration error. 56 */ 57 public Object getProperty(String propertyId) 58 throws XMLConfigurationException; 59 60 } // interface XMLComponentManager 61