Class ChartSerializer

    • Constructor Detail

      • ChartSerializer

        public ChartSerializer()
    • Method Detail

      • serializeChart

        public void serializeChart​(Dendrogram chart,
                                   org.eclipse.xtext.scoping.IGlobalScopeProvider scopeProvider,
                                   Version version,
                                   IOutPersistenceStorage storage,
                                   boolean withoutStyleItem)
        Serializes Dendrogram
        Parameters:
        chart - - Dendrogram for serialization, can't be null
        scopeProvider - actual IGlobalScopeProvider for resolving platform colors, fonts, borders, lines, can't be null
        version - runtime version of the configuration, can't be null
        currentLanguageCode - actual configuration language code, can't be null
        storage - - IOutPersistenceStorage - output storage, can't be null
        withoutStyleItem - true if we need replace StyleItem in serialization to concrete value, false otherwise
      • deserializeChart

        public Dendrogram deserializeChart​(Dendrogram chart,
                                           org.eclipse.xtext.scoping.IGlobalScopeProvider scopeProvider,
                                           Version runtimeVersion,
                                           String currentLanguageCode,
                                           IInPersistenceStorage storage)
        Deserializes Dendrogram
        Parameters:
        chart - - Dendrogram for deserialization, can't be null
        scopeProvider - actual IGlobalScopeProvider for resolving platform colors, fonts, borders, lines, can't be null
        version - runtime version of the configuration, can't be null
        currentLanguageCode - actual configuration language code, can't be null
        storage - - IInPersistenceStorage - input storage, can't be null
        Returns:
        deserialized dendogram, never null
      • serializeChart

        public void serializeChart​(GanttChart chart,
                                   org.eclipse.xtext.scoping.IGlobalScopeProvider scopeProvider,
                                   Version version,
                                   IOutPersistenceStorage storage,
                                   boolean withoutStyleItem)
        Serializes GanttChart
        Parameters:
        chart - - Chart for serialization, can't be null
        scopeProvider - actual IGlobalScopeProvider for resolving platform colors, fonts, borders, lines, can't be null
        version - runtime version of the configuration, can't be null
        currentLanguageCode - actual configuration language code, can't be null
        storage - - IOutPersistenceStorage - output storage, can't be null
        withoutStyleItem - true if we need replace StyleItem in serialization to concrete value, false otherwise
      • deserializeChart

        public GanttChart deserializeChart​(GanttChart chart,
                                           org.eclipse.xtext.scoping.IGlobalScopeProvider scopeProvider,
                                           Version runtimeVersion,
                                           String currentLanguageCode,
                                           IInPersistenceStorage storage)
        Deserializes GanttChart
        Parameters:
        chart - - GanttChart for deserialization, can't be null
        scopeProvider - actual IGlobalScopeProvider for resolving platform colors, fonts, borders, lines, can't be null
        version - runtime version of the configuration, can't be null
        currentLanguageCode - actual configuration language code, can't be null
        storage - - IInPersistenceStorage - input storage, can't be null
        Returns:
        deserialized chart, never null
      • serializeChart

        public void serializeChart​(Chart chart,
                                   org.eclipse.xtext.scoping.IGlobalScopeProvider scopeProvider,
                                   Version version,
                                   IOutPersistenceStorage storage,
                                   boolean withoutStyleItem)
        Serializes Chart
        Parameters:
        chart - - Chart for serialization, can't be null
        scopeProvider - actual IGlobalScopeProvider for resolving platform colors, fonts, borders, lines, can't be null
        version - runtime version of the configuration, can't be null
        currentLanguageCode - actual configuration language code, can't be null
        storage - - IOutPersistenceStorage - output storage, can't be null
        withoutStyleItem - true if we need replace StyleItem in serialization to concrete value, false otherwise
      • deserializeChart

        public Chart deserializeChart​(Chart chart,
                                      org.eclipse.xtext.scoping.IGlobalScopeProvider scopeProvider,
                                      Version runtimeVersion,
                                      String currentLanguageCode,
                                      IInPersistenceStorage storage)
        Deserializes Chart
        Parameters:
        chart - - Chart for deserialization, can't be null
        scopeProvider - actual IGlobalScopeProvider for resolving platform colors, fonts, borders, lines, can't be null
        version - runtime version of the configuration, can't be null
        currentLanguageCode - actual configuration language code, can't be null
        storage - - IInPersistenceStorage - input storage, can't be null
        Returns:
        deserialized chart, never null