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
FieldsModifier and TypeFieldDescriptionprivate final StringThe file extension on files using this schemaprivate final List<FormatNode>TheFormatNodes that define this schemaprivate final intThe version number of this schemaprivate final StringThe version string of this schema -
Constructor Summary
ConstructorsConstructorDescriptionFileFormatSchema(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
TheFormatNodes 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- TheFormatNodes 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
FormatNodes that define this schema
-