Class BasicCommandXmlExporter
- java.lang.Object
-
- com._1c.g5.v8.dt.md.export.xml.impl.BasicCommandXmlExporter
-
-
Field Summary
-
Fields inherited from interface com._1c.g5.v8.dt.export.xml.IExporter
EXPORTER_TRACE_OPTION
-
-
Constructor Summary
Constructors Constructor Description BasicCommandXmlExporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Path
getOutputPath(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature, Version version)
Get path to export object.Path
getOutputPath(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature, String fileExtension, Version version)
Get path to export object.boolean
isAppropriate(Version version, org.eclipse.emf.ecore.EObject eObject)
Determines exporter corresponds to the file and version.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.
-
-
-
Method Detail
-
isAppropriate
public boolean isAppropriate(Version version, org.eclipse.emf.ecore.EObject eObject)
Description copied from interface:IExporter
Determines exporter corresponds to the file and version.- Specified by:
isAppropriate
in interfaceIExporter
- 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.
-
getOutputPath
public Path getOutputPath(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature, Version version)
Description copied from interface:IExporter
Get path to export object.- Specified by:
getOutputPath
in interfaceIExporter
- Parameters:
eObject
- the export object, notnull
feature
- the reference to child object, can benull
version
- the 1C:Runtime version, cannot benull
- Returns:
- the export path for this object or
null
if exporter not support this object
-
getOutputPath
public Path getOutputPath(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature, String fileExtension, Version version)
Description copied from interface:IExporter
Get path to export object.- Specified by:
getOutputPath
in interfaceIExporter
- Parameters:
eObject
- the export object, notnull
feature
- the reference to child object, can benull
fileExtension
- the output file extension, can benull
version
- the 1C:Runtime version, cannot benull
- Returns:
- the export path for this object or
null
if exporter not support this object
-
-