01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package org.apache.xerces.xni.parser;
19:
20: /**
21: * The component manager manages a parser configuration and the components
22: * that make up that configuration. The manager notifies each component
23: * before parsing to allow the components to initialize their state; and
24: * also any time that a parser feature or property changes.
25: * <p>
26: * The methods of the component manager allow components to query features
27: * and properties that affect the operation of the component.
28: *
29: * @see XMLComponent
30: *
31: * @author Andy Clark, IBM
32: *
33: * @version $Id: XMLComponentManager.java 447244 2006-09-18 05:20:40Z mrglavas $
34: */
35: public interface XMLComponentManager {
36:
37: //
38: // XMLComponentManager methods
39: //
40:
41: /**
42: * Returns the state of a feature.
43: *
44: * @param featureId The feature identifier.
45: *
46: * @throws XMLConfigurationException Thrown on configuration error.
47: */
48: public boolean getFeature(String featureId)
49: throws XMLConfigurationException;
50:
51: /**
52: * Returns the value of a property.
53: *
54: * @param propertyId The property identifier.
55: *
56: * @throws XMLConfigurationException Thrown on configuration error.
57: */
58: public Object getProperty(String propertyId)
59: throws XMLConfigurationException;
60:
61: } // interface XMLComponentManager
|