Class FileFormatSchema
java.lang.Object
com.github.tadukoo.parsing.fileformat.FileFormatSchema
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 Summary
Modifier and TypeFieldDescriptionprivate final String
The file extension on files using this schemaprivate final List<FormatNode>
TheFormatNode
s that define this schemaprivate final int
The version number of this schemaprivate final String
The version string of this schema -
Constructor Summary
ConstructorDescriptionFileFormatSchema
(String versionString, int versionNum, String fileExtension, List<FormatNode> formatNodes) Constructs a FileFormatSchema with the given information. -
Method Summary
Modifier and TypeMethodDescriptionint
-
Field Details
-
versionString
The version string of this schema -
versionNum
private final int versionNumThe version number of this schema -
fileExtension
The file extension on files using this schema -
formatNodes
TheFormatNode
s 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 schemaversionNum
- The version number of this schemafileExtension
- The file extension on files using this schemaformatNodes
- TheFormatNode
s that define this schema
-
-
Method Details
-
getVersionString
- Returns:
- The version string of this schema
-
getVersionNum
public int getVersionNum()- Returns:
- The version number of this schema
-
getFileExtension
- Returns:
- The file extension on files using this schema
-
getFormatNodes
- Returns:
- The List of
FormatNode
s that define this schema
-