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 Details

    • getId

      String getId()
      Returns:
      A String that identifies this format.
    • createSerializer

      ArtifactAstSerializer createSerializer(String version, Executor executor)
      Creates a serializer for this format.
      Parameters:
      version - The version of the serializer.
      executor - An Executor to 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 the ComponentGenerationInformation.
      Returns:
      The deserializer.
    • getAvailableVersions

      List<String> getAvailableVersions()
      Returns:
      The available versions of this format.
    • getLatestVersion

      String getLatestVersion()
      Returns:
      The latest available version of this format.