Uses of Class
com.github.tadukoo.parsing.fileformat.FileFormatSchema
Package
Description
Provides classes for making your own custom File Format, similar to YAML syntax
-
Uses of FileFormatSchema in com.github.tadukoo.parsing.fileformat
Modifier and TypeFieldDescriptionprivate final Map<String,
FileFormatSchema> FileFormat.schemas
A mapping of version strings toFileFormatSchema
sModifier and TypeMethodDescriptionfinal FileFormatSchema
Grabs theFileFormatSchema
for the given version string.Modifier and TypeMethodDescriptionprotected abstract Map<String,
FileFormatSchema> FileFormat.createSchemas
(com.github.tadukoo.util.logger.EasyLogger logger) Creates theFileFormatSchema
s for this FileFormat, mapping them by their respective version strings.Modifier and TypeMethodDescriptionstatic Node
TadFormatNodeHeader.createHeader
(FileFormat format, FileFormatSchema schema) Creates a Tad Format Header for the givenFileFormat
andFileFormatSchema
.private static Map<String,
FormatNode> FileFormatSchemaVerification.getFormatNodesMap
(FileFormatSchema schema) Creates a Map out of theFormatNode
s present in the givenFileFormatSchema
.private static FormatNode
TadFormatNodeHeader.getVersionNumNode
(com.github.tadukoo.util.logger.EasyLogger logger, FileFormatSchema schema) Creates aFormatNode
for the File Format Schema Version Number Node.private static FormatNode
TadFormatNodeHeader.getVersionStringNode
(com.github.tadukoo.util.logger.EasyLogger logger, FileFormatSchema schema) Creates aFormatNode
for the File Format Schema Version Node.protected final void
FileFormat.saveFile
(com.github.tadukoo.util.logger.EasyLogger logger, String filepath, Node headNode, FileFormatSchema schema) Saves the given headNode to the file specified by the given filepath, adding the Tad Format Header at the start of the file using the given schema and current FileFormat.static boolean
FileFormatSchemaVerification.verifyFileFormat
(com.github.tadukoo.util.logger.EasyLogger logger, FileFormat format, FileFormatSchema schema, String filepath) Checks if the file located at the given file path matches the givenFileFormatSchema
or not.static boolean
FileFormatSchemaVerification.verifyFileFormat
(com.github.tadukoo.util.logger.EasyLogger logger, FileFormat format, FileFormatSchema schema, String filepath, Node headNode) Checks if the given Nodes (given via the head Node) located (or to be located) at the given file path matches the givenFileFormatSchema
or not.static boolean
TadFormatNodeHeader.verifyTadFormatNode
(com.github.tadukoo.util.logger.EasyLogger logger, Node tadFormatNode, FileFormat format, FileFormatSchema schema) Verifies that the Tad Format Node is correct at the top of a file.