Class BaseXmlExportFileSystemSupport

    • Field Detail

      • TOP_OBJECT_FOLDER_NAMES

        public static final Map<org.eclipse.emf.ecore.EClass,​String> TOP_OBJECT_FOLDER_NAMES
        Map of top object metadata classes to XML folder names
    • Constructor Detail

      • BaseXmlExportFileSystemSupport

        public BaseXmlExportFileSystemSupport()
    • Method Detail

      • getMdObjectTargetDirectory

        protected Path getMdObjectTargetDirectory​(MdObject mdObject)
        Path to common target folder for specified metadata object

        Note this is base implementation of suppor for original XML hierarchy actual for metadata object since 1C:Designer v8.3.6 hierarchical export.
        Subclass must determine the final position of exported file relative of top object metadata directory

        Examples:
        • Configuration -> empty path (root folder)
        • Catalog.Catalog1 -> "Catalogs/"
        • Catalog.Catalog1.Forms.Form1 -> "Catalogs/Catalog1/Forms/"
        • CommonForm.CommonForm1 -> "CommonForms/"
        • Subsystem.Subsystem1.Subsystem.Subsystem2 -> "Subsystems/Subsystem1/Subsystems/"
        • Table.Table1 -> "ExternalDataSources/ExternalDataSources1/Tables/"
        Parameters:
        mdObject - the metadata object, cannot be null
        Returns:
        path to common target folder, never null