Package com._1c.g5.v8.dt.moxel.util
Class V8MoxelSerializer
- java.lang.Object
- 
- com._1c.g5.v8.dt.moxel.util.V8MoxelSerializer
 
- 
 public class V8MoxelSerializer extends Object Spreadsheet document xml serializer
- 
- 
Constructor SummaryConstructors Constructor Description V8MoxelSerializer()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static SpreadsheetDocumentdeserializeXML(InputStream inputStream, org.eclipse.emf.ecore.resource.Resource resource, Version runtimeVersion, CompatibilityMode compatibilityMode, Map<UUID,TypeItem> userDefinedTypes)Load spreadsheet document from xml.static Map<String,TypeItem>loadTypes(org.eclipse.emf.ecore.resource.Resource resource, org.eclipse.xtext.scoping.IGlobalScopeProvider globalScopeProvider, IIndexSlicePredicateService slicePredicateService)LoadsTypeItems and creates a map where key is the TypeItem.name and value is the type item object itself.static voidserializeXML(SpreadsheetDocument sheet, Version runtimeVersion, CompatibilityMode compatibilityMode, String lineSeparator, LazyUriEncoder uriEncoder, OutputStream outputStream)WritesSpreadsheetDocumentto XMLstatic voidserializeXML(SpreadsheetDocument sheet, OutputStream outputStream)WritesSpreadsheetDocumentto XMLstatic voidserializeXML(SpreadsheetDocument sheet, OutputStream outputStream, Version runtimeVersion, CompatibilityMode compatibilityMode, String lineSeparator)WritesSpreadsheetDocumentto XML
 
- 
- 
- 
Method Detail- 
deserializeXMLpublic static SpreadsheetDocument deserializeXML(InputStream inputStream, org.eclipse.emf.ecore.resource.Resource resource, Version runtimeVersion, CompatibilityMode compatibilityMode, Map<UUID,TypeItem> userDefinedTypes) Load spreadsheet document from xml.- Parameters:
- inputStream-- InputStream, must not be- null
- resource-- Resource, may be- nullin case non-standalone document
- runtimeVersion- current runtime version, must not be- null
- compatibilityMode- current- CompatibilityMode, can be- nullif there is no information about it
- types- the loaded types, cannot be- null.
- userDefinedTypes- the loaded user defined types, cannot be- null.
- Returns:
- SpreadsheetDocument
 
 - 
serializeXMLpublic static void serializeXML(SpreadsheetDocument sheet, Version runtimeVersion, CompatibilityMode compatibilityMode, String lineSeparator, LazyUriEncoder uriEncoder, OutputStream outputStream) WritesSpreadsheetDocumentto XML- Parameters:
- sheet-- SpreadsheetDocumentfor serialization, cannot be- null
- runtimeVersion- actual- Versionof the project corresponding to the document, cannot be- null
- compatibilityMode- current- CompatibilityMode, can be- nullif there is no information about it
- lineSeparator- the line separator to use, cannot be- null
- uriEncoder- actual- LazyUriEncoderfor getting text for unresolved refrences, cannot be- null
- outputStream- stream for writing, cannot be- null
 
 - 
serializeXMLpublic static void serializeXML(SpreadsheetDocument sheet, OutputStream outputStream) WritesSpreadsheetDocumentto XML- Parameters:
- sheet-- SpreadsheetDocumentfor serialization, cannot be- null
- outputStream- stream for writing, cannot be- null
 
 - 
serializeXMLpublic static void serializeXML(SpreadsheetDocument sheet, OutputStream outputStream, Version runtimeVersion, CompatibilityMode compatibilityMode, String lineSeparator) WritesSpreadsheetDocumentto XML- Parameters:
- sheet-- SpreadsheetDocumentfor serialization, cannot be- null
- outputStream- stream for writing, cannot be- null
- runtimeVersion- target version of the runtime, cannot be- null
- compatibilityMode- current- CompatibilityMode, can be- nullif there is no information about it
- lineSeparator- the line separator to use, cannot be- null
 
 - 
loadTypespublic static Map<String,TypeItem> loadTypes(org.eclipse.emf.ecore.resource.Resource resource, org.eclipse.xtext.scoping.IGlobalScopeProvider globalScopeProvider, IIndexSlicePredicateService slicePredicateService) LoadsTypeItems and creates a map where key is the TypeItem.name and value is the type item object itself.- Parameters:
- resource- the- Resource, cannot be- null.
- globalScopeProvider- the- IGlobalScopeProviderinstance, cannot be- null.
- slicePredicateService- the- IIndexSlicePredicateServiceinstance, cannot be- null.
- Returns:
- a types by type name map, never null.
 
 
- 
 
-