Interface ArtifactAstSerializerFormat
- All Known Implementing Classes:
JsonArtifactAstSerializerFormat
public interface ArtifactAstSerializerFormat
Represents a serialization/deserialization format for an
ArtifactAst.- Since:
- 1.3, 1.2, 1.1.4
-
Method Summary
Modifier and TypeMethodDescriptioncreateDeserializer(String version, boolean populateGenerationInformation) Creates a deserializer for this format.createSerializer(String version, Executor executor) Creates a serializer for this format.getId()
-
Method Details
-
getId
String getId()- Returns:
- A
Stringthat identifies this format.
-
createSerializer
Creates a serializer for this format.- Parameters:
version- The version of the serializer.executor- AnExecutorto use for the serialization work.- Returns:
- The serializer.
-
createDeserializer
InternalArtifactAstDeserializer createDeserializer(String version, boolean populateGenerationInformation) Creates a deserializer for this format.- Parameters:
version- The version of the serializer.populateGenerationInformation- Whether the deserializer must populate theComponentGenerationInformation.- Returns:
- The deserializer.
-
getAvailableVersions
- Returns:
- The available versions of this format.
-
getLatestVersion
String getLatestVersion()- Returns:
- The latest available version of this format.
-