Class PersistenceNode

    • Constructor Detail

      • PersistenceNode

        public PersistenceNode()
        This is the default constructor which is also called from other constructors of this class. Inside this constructor, we clear the handlers set up by super classes' constructors because they are not applicable in the context of PersistenceNode because unlike standard Java EE schemas, persistence.xsd does not include javaee_5.xsd for things like description, version etc.
    • Method Detail

      • registerBundle

        public String registerBundle​(Map<String,​String> publicIDToSystemIDMapping)
        Description copied from interface: BundleNode
        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
        Returns:
        top-level element name for the standard descriptor
      • registerRuntimeBundle

        public Map<String,​Class<?>> registerRuntimeBundle​(Map<String,​String> publicIDToDTD,
                                                                Map<String,​List<Class<?>>> versionUpgrades)
        Description copied from interface: BundleNode
        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.

        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
      • getDocType

        public String getDocType()
        Returns:
        the DOCTYPE that should be written to the XML file
      • getSystemID

        public String getSystemID()
        Returns:
        the SystemID of the XML file
      • getNameSpace

        public String getNameSpace()
      • getSystemIDs

        public List<String> getSystemIDs()
        Returns:
        the list of SystemID of the XML schema supported
      • getSpecVersion

        public String getSpecVersion()
        Returns:
        the default spec version level this node complies to