Class XmlConfiguration

    • Field Detail

      • XINCLUDE_FIXUP_LANGUAGE

        private static final java.lang.String XINCLUDE_FIXUP_LANGUAGE
        See Also:
        Constant Field Values
      • XINCLUDE_FIXUP_BASE_URIS

        private static final java.lang.String XINCLUDE_FIXUP_BASE_URIS
        See Also:
        Constant Field Values
      • VERBOSE_CLASSES

        private static final java.lang.String[] VERBOSE_CLASSES
      • rootElement

        private org.w3c.dom.Element rootElement
      • strict

        private boolean strict
      • schemaResource

        private java.lang.String schemaResource
    • Method Detail

      • newDocumentBuilder

        static javax.xml.parsers.DocumentBuilder newDocumentBuilder​(boolean xIncludeAware)
                                                             throws javax.xml.parsers.ParserConfigurationException
        Creates a new DocumentBuilder suitable for parsing a configuration file.
        Parameters:
        xIncludeAware - enabled XInclude
        Returns:
        a new DocumentBuilder
        Throws:
        javax.xml.parsers.ParserConfigurationException
      • disableDtdProcessing

        private static void disableDtdProcessing​(javax.xml.parsers.DocumentBuilderFactory factory)
      • setFeature

        private static void setFeature​(javax.xml.parsers.DocumentBuilderFactory factory,
                                       java.lang.String featureName,
                                       boolean value)
      • enableXInclude

        private static void enableXInclude​(javax.xml.parsers.DocumentBuilderFactory factory)
        Enables XInclude for the given DocumentBuilderFactory
        Parameters:
        factory - a DocumentBuilderFactory
      • constructHierarchy

        private void constructHierarchy​(Node node,
                                        org.w3c.dom.Element element)
      • getType

        private java.lang.String getType​(org.w3c.dom.Element element)
      • processAttributes

        private java.util.Map<java.lang.String,​java.lang.String> processAttributes​(Node node,
                                                                                         org.w3c.dom.Element element)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object