Class XMLReaderBasedParser

    • Field Detail

      • compulsoryXmlFeatureSettings

        private static final java.util.Set<RioSetting<java.lang.Boolean>> compulsoryXmlFeatureSettings
    • Constructor Detail

      • XMLReaderBasedParser

        protected XMLReaderBasedParser​(ValueFactory f)
    • Method Detail

      • getCompulsoryXmlPropertySettings

        public java.util.Collection<RioSetting<?>> getCompulsoryXmlPropertySettings()
        Returns a collection of settings that will always be set as XML parser properties using XMLReader.setProperty(String, Object)

        Subclasses can override this to specify more supported settings.

        Returns:
        A collection of RioSettings that indicate which properties will always be setup using XMLReader.setProperty(String, Object).
      • getCompulsoryXmlFeatureSettings

        public java.util.Collection<RioSetting<java.lang.Boolean>> getCompulsoryXmlFeatureSettings()
        Returns a collection of settings that will always be set as XML parser features using XMLReader.setFeature(String, boolean).

        Subclasses can override this to specify more supported settings.

        Returns:
        A collection of RioSettings that indicate which boolean settings will always be setup using XMLReader.setFeature(String, boolean).
      • getOptionalXmlPropertySettings

        public java.util.Collection<RioSetting<?>> getOptionalXmlPropertySettings()
        Returns a collection of settings that will be used, if set in AbstractRDFParser.getParserConfig(), as XML parser properties using XMLReader.setProperty(String, Object)

        Subclasses can override this to specify more supported settings.

        Returns:
        A collection of RioSettings that indicate which properties can be setup using XMLReader.setProperty(String, Object).
      • getOptionalXmlFeatureSettings

        public java.util.Collection<RioSetting<java.lang.Boolean>> getOptionalXmlFeatureSettings()
        Returns a collection of settings that will be used, if set in AbstractRDFParser.getParserConfig(), as XML parser features using XMLReader.setFeature(String, boolean).

        Subclasses can override this to specify more supported settings.

        Returns:
        A collection of RioSettings that indicate which boolean settings can be setup using XMLReader.setFeature(String, boolean).
      • getXMLReader

        protected org.xml.sax.XMLReader getXMLReader()
                                              throws org.xml.sax.SAXException
        Creates an XML Reader configured using the current parser settings.
        Returns:
        a configured XMLReader
        Throws:
        org.xml.sax.SAXException - if an error occurs during configuration.