Uses of Class
com.github.tadukoo.parsing.fileformat.FormatNode
Package
Description
Provides classes for making your own custom File Format, similar to YAML syntax
-
Uses of FormatNode in com.github.tadukoo.parsing.fileformat
Modifier and TypeFieldDescriptionprivate final FormatNode
NodeVerificationCriteria.format
The FormatNode that defines the expected formatprivate FormatNode
NodeVerificationCriteria.NodeVerificationCriteriaBuilder.format
The FormatNode that defines the expected formatModifier and TypeFieldDescriptionprivate final List<FormatNode>
FileFormatSchema.formatNodes
TheFormatNode
s that define this schemaModifier and TypeMethodDescriptionFormatNode.FormatNodeBuilder.build()
Builds a newFormatNode
with the specified parameters after checking for any errors.private static FormatNode
TadFormatNodeHeader.getFileFormatNode
(com.github.tadukoo.util.logger.EasyLogger logger, FileFormat format) Creates aFormatNode
for the File Format Node.NodeVerificationCriteria.getFormat()
private static FormatNode
TadFormatNodeHeader.getHeadFormatNode
(com.github.tadukoo.util.logger.EasyLogger logger) Creates aFormatNode
for the head Node of the Tad Format Header.private static FormatNode
TadFormatNodeHeader.getSchemaNode
(com.github.tadukoo.util.logger.EasyLogger logger) Creates aFormatNode
for the File Format Schema Node.private static FormatNode
TadFormatNodeHeader.getTadVersionNode
(com.github.tadukoo.util.logger.EasyLogger logger) Creates aFormatNode
for the Tad Format Version Node.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.Modifier and TypeMethodDescriptionFileFormatSchema.getFormatNodes()
private static Map<String,
FormatNode> FileFormatSchemaVerification.getFormatNodesMap
(FileFormatSchema schema) Creates a Map out of theFormatNode
s present in the givenFileFormatSchema
.Modifier and TypeMethodDescriptionNodeVerificationCriteria.NodeVerificationCriteriaBuilder.format
(FormatNode format) Sets the FormatNode, that defines the expected formatModifier and TypeMethodDescriptionprivate static boolean
FileFormatSchemaVerification.verifyNode
(com.github.tadukoo.util.logger.EasyLogger logger, Map<String, FormatNode> formatNodes, Node node, List<String> nodeNames, String filepath) Checks if the given Node (and any children and siblings down the line) matches the proper formatting passed in or not.ModifierConstructorDescriptionprivate
NodeVerificationCriteria
(com.github.tadukoo.util.logger.EasyLogger logger, String filepath, Node node, FormatNode format, boolean nullParent, boolean nullChild, boolean nullPrevSibling, boolean nullNextSibling, Node parent, Node child, Node prevSibling, Node nextSibling) Creates a new NodeVerificationCriteria object with the given parametersModifierConstructorDescriptionFileFormatSchema
(String versionString, int versionNum, String fileExtension, List<FormatNode> formatNodes) Constructs a FileFormatSchema with the given information.