Class MetadataXmlExporter
- java.lang.Object
-
- com._1c.g5.v8.dt.export.xml.BasicExporter
-
- com._1c.g5.v8.dt.md.export.xml.impl.MetadataXmlExporter
-
- All Implemented Interfaces:
IExporter
public class MetadataXmlExporter extends BasicExporter
Class exporter for Metadata Objects to xml
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.export.xml.BasicExporter
debugTrace
-
Fields inherited from interface com._1c.g5.v8.dt.export.xml.IExporter
EXPORTER_TRACE_OPTION
-
-
Constructor Summary
Constructors Constructor Description MetadataXmlExporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.core.runtime.IStatus
export(MdObject mdObject, Path path, IExportContext exportContext, IExportArtifactBuilder artifactBuilder)
boolean
isAppropriate(Version version, org.eclipse.emf.ecore.EObject eObject)
Default implementation checks whether registered extporter qualifier qualifies the provided arguments.org.eclipse.core.runtime.IStatus
work(org.eclipse.emf.ecore.EObject eObject, IExportContext exportContext, IExportArtifactBuilder artifactBuilder, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Method to build export of file in target folder.protected void
write(MdObject mdObject, IExportContext exportContext, MetadataDocumentWriter writer)
-
Methods inherited from class com._1c.g5.v8.dt.export.xml.BasicExporter
getOutputPath, getOutputPath, getOutputPath, getOutputPath
-
-
-
-
Method Detail
-
isAppropriate
public boolean isAppropriate(Version version, org.eclipse.emf.ecore.EObject eObject)
Description copied from class:BasicExporter
Default implementation checks whether registered extporter qualifier qualifies the provided arguments.- Specified by:
isAppropriate
in interfaceIExporter
- Overrides:
isAppropriate
in classBasicExporter
- Parameters:
version
- the version of 1C:Enterprise notnull
eObject
- the object for export notnull
- Returns:
- true if exporter can do work to this file and version, false if not
-
work
public org.eclipse.core.runtime.IStatus work(org.eclipse.emf.ecore.EObject eObject, IExportContext exportContext, IExportArtifactBuilder artifactBuilder, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Description copied from interface:IExporter
Method to build export of file in target folder.- Parameters:
eObject
- the object for export, notnull
exportContext
- the static data for export, notnull
artifactBuilder
- the artifact builder, notnull
progressMonitor
- ui process monitor, notnull
- Returns:
IStatus
of export work result, nevernull
-
export
protected org.eclipse.core.runtime.IStatus export(MdObject mdObject, Path path, IExportContext exportContext, IExportArtifactBuilder artifactBuilder)
-
write
protected void write(MdObject mdObject, IExportContext exportContext, MetadataDocumentWriter writer) throws XMLStreamException, ExportException
- Throws:
XMLStreamException
ExportException
-
-