Class ParserConfigurationSettings

    • Field Detail

      • fRecognizedProperties

        protected ArrayList fRecognizedProperties
        Recognized properties.
      • fProperties

        protected HashMap fProperties
        Properties.
      • fRecognizedFeatures

        protected ArrayList fRecognizedFeatures
        Recognized features.
      • fFeatures

        protected HashMap fFeatures
        Features.
      • fParentSettings

        protected XMLComponentManager fParentSettings
        Parent parser configuration settings.
    • Constructor Detail

      • ParserConfigurationSettings

        public ParserConfigurationSettings()
        Default Constructor.
      • ParserConfigurationSettings

        public ParserConfigurationSettings​(XMLComponentManager parent)
        Constructs a parser configuration settings object with a parent settings object.
    • Method Detail

      • addRecognizedFeatures

        public void addRecognizedFeatures​(String[] featureIds)
        Allows a parser to add parser specific features to be recognized and managed by the parser configuration.
        Parameters:
        featureIds - An array of the additional feature identifiers to be recognized.
      • setFeature

        public void setFeature​(String featureId,
                               boolean state)
                        throws XMLConfigurationException
        Set the state of a feature. Set the state of any feature in a SAX2 parser. The parser might not recognize the feature, and if it does recognize it, it might not be able to fulfill the request.
        Parameters:
        featureId - The unique identifier (URI) of the feature.
        state - The requested state of the feature (true or false).
        Throws:
        XMLConfigurationException - If the requested feature is not known.
      • addRecognizedProperties

        public void addRecognizedProperties​(String[] propertyIds)
        Allows a parser to add parser specific properties to be recognized and managed by the parser configuration.
        Parameters:
        propertyIds - An array of the additional property identifiers to be recognized.
      • getFeature

        public boolean getFeature​(String featureId)
                           throws XMLConfigurationException
        Returns the state of a feature.
        Specified by:
        getFeature in interface XMLComponentManager
        Parameters:
        featureId - The feature identifier.
        Returns:
        true if the feature is supported
        Throws:
        XMLConfigurationException - Thrown for configuration error. In general, components should only throw this exception if it is really a critical error.
      • checkFeature

        protected void checkFeature​(String featureId)
                             throws XMLConfigurationException
        Check a feature. If feature is known and supported, this method simply returns. Otherwise, the appropriate exception is thrown.
        Parameters:
        featureId - The unique identifier (URI) of the feature.
        Throws:
        XMLConfigurationException - If the requested feature is not known.
      • checkProperty

        protected void checkProperty​(String propertyId)
                              throws XMLConfigurationException
        Check a property. If the property is known and supported, this method simply returns. Otherwise, the appropriate exception is thrown.
        Parameters:
        propertyId - The unique identifier (URI) of the property being set.
        Throws:
        XMLConfigurationException - If the requested feature is not known.