Class V8MoxelSerializer


  • public class V8MoxelSerializer
    extends Object
    Spreadsheet document xml serializer
    • Constructor Detail

      • V8MoxelSerializer

        public V8MoxelSerializer()
    • Method Detail

      • deserializeXML

        public static SpreadsheetDocument deserializeXML​(InputStream inputStream,
                                                         org.eclipse.emf.ecore.resource.Resource resource,
                                                         Version runtimeVersion,
                                                         CompatibilityMode compatibilityMode,
                                                         Map<String,​TypeItem> types,
                                                         Map<UUID,​TypeItem> userDefinedTypes)
        Load spreadsheet document from xml.
        Parameters:
        inputStream - InputStream, must not be null
        resource - Resource, may be null in case non-standalone document
        runtimeVersion - current runtime version, must not be null
        compatibilityMode - current CompatibilityMode, can be null if there is no information about it
        types - the loaded types, cannot be null.
        userDefinedTypes - the loaded user defined types, cannot be null.
        Returns:
        SpreadsheetDocument
      • loadTypes

        public static Map<String,​TypeItem> loadTypes​(org.eclipse.emf.ecore.resource.Resource resource,
                                                           org.eclipse.xtext.scoping.IGlobalScopeProvider globalScopeProvider,
                                                           IIndexSlicePredicateService slicePredicateService)
        Loads TypeItems 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 IGlobalScopeProvider instance, cannot be null.
        slicePredicateService - the IIndexSlicePredicateService instance, cannot be null.
        Returns:
        a types by type name map, never null.
      • loadUserDefinedTypes

        public static Map<UUID,​TypeItem> loadUserDefinedTypes​(org.eclipse.emf.ecore.resource.Resource resource,
                                                                    org.eclipse.xtext.scoping.IGlobalScopeProvider globalScopeProvider)
        Loads user defined TypeItems and creates a map where key is the UUID of the user defined type and value is the type item object itself.
        Parameters:
        resource - the Resource, cannot be null.
        globalScopeProvider - the IGlobalScopeProvider instance, cannot be null.
        Returns:
        a types by UUID map, never null.