Class FileFormatSchema

java.lang.Object
com.github.tadukoo.parsing.fileformat.FileFormatSchema

public class FileFormatSchema extends Object
Represents the definition of a FileFormat. The reason this is a separate class is to allow for a FileFormat to update and maintain its old versions to allow for updating from one schema to another.
Version:
0.1-Alpha-SNAPSHOT
Author:
Logan Ferree (Tadukoo)
  • Field Details

    • versionString

      private final String versionString
      The version string of this schema
    • versionNum

      private final int versionNum
      The version number of this schema
    • fileExtension

      private final String fileExtension
      The file extension on files using this schema
    • formatNodes

      private final List<FormatNode> formatNodes
      The FormatNodes that define this schema
  • Constructor Details

    • FileFormatSchema

      public FileFormatSchema(String versionString, int versionNum, String fileExtension, List<FormatNode> formatNodes)
      Constructs a FileFormatSchema with the given information.
      Parameters:
      versionString - The version string of this schema
      versionNum - The version number of this schema
      fileExtension - The file extension on files using this schema
      formatNodes - The FormatNodes that define this schema
  • Method Details

    • getVersionString

      public String getVersionString()
      Returns:
      The version string of this schema
    • getVersionNum

      public int getVersionNum()
      Returns:
      The version number of this schema
    • getFileExtension

      public String getFileExtension()
      Returns:
      The file extension on files using this schema
    • getFormatNodes

      public List<FormatNode> getFormatNodes()
      Returns:
      The List of FormatNodes that define this schema