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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TypeRegistrycreateTypeRegistry(java.lang.String identifier)Creates a typeRegistry.voiddeserialize(java.io.File file)Deserializes the model from a XML file.IModelLoader<?>getModelLoader()Getter for the model loader.java.lang.Class<?>[]getRtVilClasses()Getter for all RtVil classes.TypeRegistrygetRtVilTypeRegistry()Getter for the RtVilTypeRegistry.java.lang.StringgetTypeRegistryIdentifier(TypeRegistry typeRegistry)Get the identifier for the type registry.voidserialize(java.io.File source, java.util.List<IModel> modelList)Method for serializing runtime VIL.
-
-
-
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 modelmodelList- 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
-
-