public class XcoreExporter extends ModelExporter
ModelExporter.EPackageExportInfo, ModelExporter.ExportData, ModelExporter.GenPackagesTreeIterator, ModelExporter.ReferencedGenPackageExportInfo
ModelConverter.EPackageConvertInfo, ModelConverter.ReferencedEPackageFilter, ModelConverter.ReferencedGenPackageConvertInfo
Modifier and Type | Field and Description |
---|---|
protected IBasicFormatter |
formatter |
directoryURI, ePackageToGenPackageMap, GENANNOTATION_KEY_DIRECTORY_URI, GENANNOTATION_SOURCE_PREFIX, GENANNOTATION_SOURCE_SELECTED_EPACKAGES, GENANNOTATION_SOURCE_SELECTED_REFERENCES, genBaseToDetailsMap, saveEPackageArtifactURI, saveExporter
ePackages, ePackageToInfoMap, externalGenModelList, externalGenModelResourceSet, genModel, referencedEPackageFilter, referencedEPackageFilterToConvert, referencedGenPackages, referencedGenPackageToInfoMap
Constructor and Description |
---|
XcoreExporter() |
Modifier and Type | Method and Description |
---|---|
protected void |
adjustGenModel() |
void |
dispose() |
protected java.lang.String |
doCheckEPackageArtifactLocation(java.lang.String location,
java.lang.String packageName) |
protected Diagnostic |
doExport(Monitor monitor,
ModelExporter.ExportData exportData)
Subclasses should overwrite this method, adding the code that performs the
actions required to export the model.
|
protected java.lang.String |
getDefaultArtifactLocation(EPackage ePackage) |
java.lang.String |
getID() |
protected URI |
getReferencedGenPackageArtifactURI(ModelExporter.ExportData exportData,
GenPackage genPackage) |
canConvert, checkEPackageArtifactLocation, computeArtifactURI, createEncodedURI, createEPackageInfo, createEPackagesList, createGenPackageConvertInfo, createReferencedEPackageFilterToConvert, createReferencedGenPackagesList, export, getArtifactURIs, getConverterGenAnnotationSource, getDefaultArtifactFileName, getDirectoryURI, getEPackageExportInfo, getEPackageToGenPackageMap, getExporterGenAnnotationDetails, getExporterNestedGenAnnotationDetails, getExporterNestedGenAnnotations, getGenBaseToGenAnnotationDetailsMap, getReferencedGenPackageExportInfo, isSaveEPackageArtifactURI, isSaveExporter, isValidEPackage, isValidReferencedGenPackage, loadGenModel, printExportData, save, saveEPackageArtifactURI, saveExporter, setDirectoryURI, setDirectoryURI, setGenModel, setSaveEPackageArtifactURI, setSaveExporter, validateDirectoryURI
clearEPackageConvertInfoCache, clearEPackagesCollections, clearReferenceGenPackageConvertInfoCache, computeEPackagesToConvert, computeValidReferencedGenPackages, createExternalGenModelResourceSet, createReferencedEPackageFilter, createResourceSet, filterReferencedEPackages, filterReferencedEPackagesToConvert, getEPackageConvertInfo, getEPackages, getEPackageToInfoMap, getExternalGenModels, getGenModel, getGenmodelSaveOptions, getGenModelSaveOptions, getReferencedGenPackages, getReferencedGenPackageToInfoMap, getReferenceGenPackageConvertInfo, getReferredEPackage, makeEPackageConvertDataUnique
public java.lang.String getID()
getID
in class ModelConverter
public void dispose()
dispose
in class ModelExporter
protected java.lang.String getDefaultArtifactLocation(EPackage ePackage)
getDefaultArtifactLocation
in class ModelExporter
protected java.lang.String doCheckEPackageArtifactLocation(java.lang.String location, java.lang.String packageName)
doCheckEPackageArtifactLocation
in class ModelExporter
protected Diagnostic doExport(Monitor monitor, ModelExporter.ExportData exportData) throws java.lang.Exception
ModelExporter
Subclasses should overwrite this method, adding the code that performs the actions required to export the model.
The Diagnostic
returned by this method should be used to provide
the user some information regarding a successfull export. If the
export fails, an exception should be thrown.
doExport
in class ModelExporter
Diagnostic
java.lang.Exception
protected URI getReferencedGenPackageArtifactURI(ModelExporter.ExportData exportData, GenPackage genPackage)
protected void adjustGenModel()
adjustGenModel
in class ModelExporter