public class ParserConfigurationSettings
extends java.lang.Object
implements org.apache.xerces.xni.parser.XMLComponentManager
 This class can be constructed with a "parent" settings object
 (in the form of an XMLComponentManager) that allows
 parser configuration settings to be "chained" together.
| Modifier and Type | Field and Description | 
|---|---|
| protected java.util.HashMap | fFeaturesFeatures. | 
| protected org.apache.xerces.xni.parser.XMLComponentManager | fParentSettingsParent parser configuration settings. | 
| protected java.util.HashMap | fPropertiesProperties. | 
| protected java.util.ArrayList | fRecognizedFeaturesRecognized features. | 
| protected java.util.ArrayList | fRecognizedPropertiesRecognized properties. | 
| protected static java.lang.String | PARSER_SETTINGS | 
| Constructor and Description | 
|---|
| ParserConfigurationSettings()Default Constructor. | 
| ParserConfigurationSettings(org.apache.xerces.xni.parser.XMLComponentManager parent)Constructs a parser configuration settings object with a
 parent settings object. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addRecognizedFeatures(java.lang.String[] featureIds)Allows a parser to add parser specific features to be recognized
 and managed by the parser configuration. | 
| void | addRecognizedProperties(java.lang.String[] propertyIds)Allows a parser to add parser specific properties to be recognized
 and managed by the parser configuration. | 
| protected void | checkFeature(java.lang.String featureId)Check a feature. | 
| protected void | checkProperty(java.lang.String propertyId)Check a property. | 
| boolean | getFeature(java.lang.String featureId)Returns the state of a feature. | 
| java.lang.Object | getProperty(java.lang.String propertyId)Returns the value of a property. | 
| void | setFeature(java.lang.String featureId,
          boolean state)Set the state of a feature. | 
| void | setProperty(java.lang.String propertyId,
           java.lang.Object value)setProperty | 
protected static final java.lang.String PARSER_SETTINGS
protected java.util.ArrayList fRecognizedProperties
protected java.util.HashMap fProperties
protected java.util.ArrayList fRecognizedFeatures
protected java.util.HashMap fFeatures
protected org.apache.xerces.xni.parser.XMLComponentManager fParentSettings
public ParserConfigurationSettings()
public ParserConfigurationSettings(org.apache.xerces.xni.parser.XMLComponentManager parent)
public void addRecognizedFeatures(java.lang.String[] featureIds)
featureIds - An array of the additional feature identifiers 
                   to be recognized.public void setFeature(java.lang.String featureId,
              boolean state)
                throws org.apache.xerces.xni.parser.XMLConfigurationException
featureId - The unique identifier (URI) of the feature.state - The requested state of the feature (true or false).org.apache.xerces.xni.parser.XMLConfigurationException - If the
            requested feature is not known.public void addRecognizedProperties(java.lang.String[] propertyIds)
propertyIds - An array of the additional property identifiers 
                    to be recognized.public void setProperty(java.lang.String propertyId,
               java.lang.Object value)
                 throws org.apache.xerces.xni.parser.XMLConfigurationException
propertyId - value - org.apache.xerces.xni.parser.XMLConfigurationException - If the
            requested feature is not known.public boolean getFeature(java.lang.String featureId)
                   throws org.apache.xerces.xni.parser.XMLConfigurationException
getFeature in interface org.apache.xerces.xni.parser.XMLComponentManagerfeatureId - The feature identifier.org.apache.xerces.xni.parser.XMLConfigurationException - Thrown for configuration error.
                                   In general, components should
                                   only throw this exception if
                                   it is really
                                   a critical error.public java.lang.Object getProperty(java.lang.String propertyId)
                             throws org.apache.xerces.xni.parser.XMLConfigurationException
getProperty in interface org.apache.xerces.xni.parser.XMLComponentManagerpropertyId - The property identifier.org.apache.xerces.xni.parser.XMLConfigurationException - Thrown for configuration error.
                                   In general, components should
                                   only throw this exception if
                                   it is really
                                   a critical error.protected void checkFeature(java.lang.String featureId)
                     throws org.apache.xerces.xni.parser.XMLConfigurationException
featureId - The unique identifier (URI) of the feature.org.apache.xerces.xni.parser.XMLConfigurationException - If the
            requested feature is not known.protected void checkProperty(java.lang.String propertyId)
                      throws org.apache.xerces.xni.parser.XMLConfigurationException
propertyId - The unique identifier (URI) of the property
                   being set.org.apache.xerces.xni.parser.XMLConfigurationException - If the
            requested feature is not known.Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.