Interface BundleNode

    • Method Detail

      • registerBundle

        String registerBundle​(Map<String,​String> publicIDToSystemIDMapping)
        Registers the standard bundle node in the map.

        The implementation class must add to the map an entry with the key equal to the public ID of the DTD and the value the system ID.

        Parameters:
        publicIDToSystemIDMapping - map prepared by the caller
        versionUpgrades - The list of upgrades from older versions
        Returns:
        top-level element name for the standard descriptor
      • registerRuntimeBundle

        Map<String,​Class<?>> registerRuntimeBundle​(Map<String,​String> publicIDToSystemIDMapping,
                                                         Map<String,​List<Class<?>>> versionUpgrades)
        Registers all appropriate runtime bundle nodes for this standard node into the map.

        The implementation class must add to the map one entry for each associated runtime descriptor node, with the entry key equal to the public ID of the runtime DTD and the value the system ID of the runtime DTD. The implementation must also return a map containing one entry for each associated runtime node, with the entry key equal to the top-level element name for the runtime descriptor and the entry value equal to the class of the runtime node.

        Parameters:
        publicIDToSystemIDMapping -
        versionUpgrades - The list of upgrades from older versions to the latest schema
        Returns:
        map from top-level runtime descriptor element name to the corresponding runtime node class
      • elementsAllowingEmptyValue

        Collection<String> elementsAllowingEmptyValue()
        Returns the element names related to the standard or related runtime nodes for which the parser should allow empty values.
      • elementsPreservingWhiteSpace

        Collection<String> elementsPreservingWhiteSpace()
        Returns the element names related to the standard or related runtime nodes for which the parser should preserve whitespace.