Class ModuleExporter
- java.lang.Object
-
- com._1c.g5.v8.dt.export.xml.BasicExporter
-
- com._1c.g5.v8.dt.bsl.export.xml.impl.ModuleExporter
-
- All Implemented Interfaces:
IExporter
public class ModuleExporter extends BasicExporter
Exporter for modules
-
-
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 ModuleExporter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
getModuleFileExtension(Module module)
Returns bsl module file extension byModule
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.-
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
-
getModuleFileExtension
public static String getModuleFileExtension(Module module) throws IOException
Returns bsl module file extension byModule
- Parameters:
module
- Module instance, cannot benull
- Returns:
- file extension, cannot be
null
- Throws:
IOException
-
-