Class XmlExporterExtensionManager
- java.lang.Object
-
- com._1c.g5.v8.dt.md.export.xml.impl.XmlExporterExtensionManager
-
- All Implemented Interfaces:
IXmlExporterExtensionManager
public class XmlExporterExtensionManager extends Object implements IXmlExporterExtensionManager
Implementation of theIXmlExporterExtensionManager
that performs processing of the xml export requests
-
-
Constructor Summary
Constructors Constructor Description XmlExporterExtensionManager()
Constucts the extension manager
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copyTemplateWithLineFeedConversion(IExporter exporter, org.eclipse.emf.ecore.EObject eObject, IExportContext exportContext, IExportArtifactBuilder artifactBuilder, Path source, Path target, LineFeedConverter.ConvertOption... options)
Overrides the copying procedureboolean
overridesTemplateCopying(org.eclipse.emf.ecore.EObject eObject, IExportContext exportContext)
Checks if there are extensions that are able to override the default behavior of data copying of the template exporter.void
registerExtension(IXmlExporterExtension extension)
Registers the clientIXmlExporterExtension
-
-
-
Method Detail
-
copyTemplateWithLineFeedConversion
public void copyTemplateWithLineFeedConversion(IExporter exporter, org.eclipse.emf.ecore.EObject eObject, IExportContext exportContext, IExportArtifactBuilder artifactBuilder, Path source, Path target, LineFeedConverter.ConvertOption... options)
Description copied from interface:IXmlExporterExtensionManager
Overrides the copying procedure- Specified by:
copyTemplateWithLineFeedConversion
in interfaceIXmlExporterExtensionManager
- Parameters:
exporter
- The current exporter. May not benull
eObject
- The template EObject. May not benull
exportContext
- Current export context. May not benull
artifactBuilder
- The artifact builder. May not benull
source
- The path of the source file residing on the local file system. May not benull
target
- The path of the target file inside the artifact. May not benull
options
- The conversion options. May benull
or empty
-
overridesTemplateCopying
public boolean overridesTemplateCopying(org.eclipse.emf.ecore.EObject eObject, IExportContext exportContext)
Description copied from interface:IXmlExporterExtensionManager
Checks if there are extensions that are able to override the default behavior of data copying of the template exporter. See theFlowchartXmlExporter.work(org.eclipse.emf.ecore.EObject, com._1c.g5.v8.dt.export.xml.IExportContext, com._1c.g5.v8.dt.export.IExportArtifactBuilder, org.eclipse.core.runtime.IProgressMonitor)
orTemplateXmlExporter.work(org.eclipse.emf.ecore.EObject, com._1c.g5.v8.dt.export.xml.IExportContext, com._1c.g5.v8.dt.export.IExportArtifactBuilder, org.eclipse.core.runtime.IProgressMonitor)
for more information- Specified by:
overridesTemplateCopying
in interfaceIXmlExporterExtensionManager
- Parameters:
eObject
- The template EObject. May not benull
exportContext
- Current export context. May not benull
- Returns:
- True if the extension is able to override the copying procedure
-
registerExtension
public void registerExtension(IXmlExporterExtension extension)
Description copied from interface:IXmlExporterExtensionManager
Registers the clientIXmlExporterExtension
- Specified by:
registerExtension
in interfaceIXmlExporterExtensionManager
- Parameters:
extension
- The extension to register. May not benull
-
-