Package com._1c.g5.v8.dt.export.xml
Class BaseXmlExportFileSystemSupport
- java.lang.Object
-
- com._1c.g5.v8.dt.export.xml.BaseXmlExportFileSystemSupport
-
- All Implemented Interfaces:
IExportFileSystemSupport
- Direct Known Subclasses:
ExportMdFilesSupport
,ExportModuleFileSystemSupport
,ExportRightsFilesSupport
,ExportXdtoFileSystemSupport
public abstract class BaseXmlExportFileSystemSupport extends Object implements IExportFileSystemSupport
1C:Enterprise original XML hierarchy files support
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
DOT_XML_EXT
XML file extension constant ".xml"protected static String
EXT
Name of Extension folder constant "Ext"static Map<org.eclipse.emf.ecore.EClass,String>
TOP_OBJECT_FOLDER_NAMES
Map of top object metadata classes to XML folder names
-
Constructor Summary
Constructors Constructor Description BaseXmlExportFileSystemSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IExternalPropertyManager
getExternalPropertyManager(org.eclipse.emf.ecore.EObject referenceObject)
GetsIExternalPropertyManager
in specified BM contextprotected Path
getMdObjectTargetDirectory(MdObject mdObject)
Path to common target folder for specified metadata object-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com._1c.g5.v8.dt.export.IExportFileSystemSupport
getFileName, getFileName
-
-
-
-
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
-
EXT
protected static final String EXT
Name of Extension folder constant "Ext"- See Also:
- Constant Field Values
-
DOT_XML_EXT
protected static final String DOT_XML_EXT
XML file extension constant ".xml"- See Also:
- Constant Field Values
-
-
Method Detail
-
getMdObjectTargetDirectory
protected Path getMdObjectTargetDirectory(MdObject mdObject)
Path to common target folder for specified metadata objectNote this is base implementation of suppor for original XML hierarchy actual for metadata object since 1C:Designer v8.3.6 hierarchical export.
Examples:
Subclass must determine the final position of exported file relative of top object metadata directory- 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 benull
- Returns:
- path to common target folder, never
null
-
getExternalPropertyManager
protected IExternalPropertyManager getExternalPropertyManager(org.eclipse.emf.ecore.EObject referenceObject)
GetsIExternalPropertyManager
in specified BM context- Parameters:
referenceObject
- attached to target BM, cannot benull
- Returns:
- instance of
IExternalPropertyManager
, nevernull
-
-