Interface ISerializerPlugin<M extends IModel>

  • Type Parameters:
    M -

    public interface ISerializerPlugin<M extends IModel>
    Interface for the SerializerPlugin that adds the functionality of serializing runtime VIL.
    Author:
    Sass
    • Method Detail

      • serialize

        void serialize​(java.io.File source,
                       java.util.List<IModel> modelList)
        Method for serializing runtime VIL.
        Parameters:
        source - Source folder of the model
        modelList - list containing all loaded models
      • deserialize

        void deserialize​(java.io.File file)
        Deserializes the model from a XML file.
        Parameters:
        file - The XML file containing the model.
      • getTypeRegistryIdentifier

        java.lang.String getTypeRegistryIdentifier​(TypeRegistry typeRegistry)
        Get the identifier for the type registry.
        Parameters:
        typeRegistry - typeRegistry
        Returns:
        identifier as string
      • createTypeRegistry

        TypeRegistry createTypeRegistry​(java.lang.String identifier)
        Creates a typeRegistry.
        Parameters:
        identifier - identifier of the type registry
        Returns:
        created TypeRegistry
      • getModelLoader

        IModelLoader<?> getModelLoader()
        Getter for the model loader.
        Returns:
        the model loader of the plugin
      • getRtVilTypeRegistry

        TypeRegistry getRtVilTypeRegistry()
        Getter for the RtVilTypeRegistry.
        Returns:
        the RtVilTypeRegistry
      • getRtVilClasses

        java.lang.Class<?>[] getRtVilClasses()
        Getter for all RtVil classes.
        Returns:
        array with specific rtvil classes