Uses of Class
com.github.tadukoo.parsing.fileformat.Node
Package
Description
Provides classes for making your own custom File Format, similar to YAML syntax
-
Uses of Node in com.github.tadukoo.parsing.fileformat
Modifier and TypeFieldDescriptionprivate Node
Node.child
The child Node to this oneprivate Node
Node.NodeBuilder.child
The childNode
to this oneprivate final Node
NodeVerificationCriteria.child
The expected child for the Nodeprivate Node
NodeVerificationCriteria.NodeVerificationCriteriaBuilder.child
The expected child for the Nodeprivate Node
Node.nextSibling
The next sibling Node to this oneprivate Node
Node.NodeBuilder.nextSibling
The next siblingNode
to this oneprivate final Node
NodeVerificationCriteria.nextSibling
The expected next sibling for the Nodeprivate Node
NodeVerificationCriteria.NodeVerificationCriteriaBuilder.nextSibling
The expected next sibling for the Nodeprivate final Node
NodeVerificationCriteria.node
The Node to be checkedprivate Node
NodeVerificationCriteria.NodeVerificationCriteriaBuilder.node
The Node to be checkedprivate Node
Node.NodeBuilder.parent
The parentNode
to this oneprivate Node
Node.parent
The parent Node to this oneprivate Node
NodeVerificationCriteria.NodeVerificationCriteriaBuilder.parent
The expected parent for the Nodeprivate final Node
NodeVerificationCriteria.parent
The expected parent for the Nodeprivate Node
Node.NodeBuilder.prevSibling
The previous siblingNode
to this oneprivate Node
Node.prevSibling
The previous sibling Node to this oneprivate Node
NodeVerificationCriteria.NodeVerificationCriteriaBuilder.prevSibling
The expected previous sibling for the Nodeprivate final Node
NodeVerificationCriteria.prevSibling
The expected previous sibling for the NodeModifier and TypeMethodDescriptionNode.NodeBuilder.build()
Builds a newNode
using the specified parametersstatic Node
TadFormatNodeHeader.createHeader
(FileFormat format, FileFormatSchema schema) Creates a Tad Format Header for the givenFileFormat
andFileFormatSchema
.Node.getChild()
NodeVerificationCriteria.getChild()
Node.getNextSibling()
NodeVerificationCriteria.getNextSibling()
NodeVerificationCriteria.getNode()
Node.getParent()
NodeVerificationCriteria.getParent()
Node.getPrevSibling()
NodeVerificationCriteria.getPrevSibling()
protected final Node
Loads the file given by the filepath as Nodes, returning the head Node of the actual content of the file (excluding the TadFormat Header).static Node
Node.loadFromFile
(String filepath) Loads the given file and creates a Node (and any children and siblings down the line) from the contents of the file.static Node
Node.loadFromList
(List<String> lines) Loads Nodes (including children + siblings) from the given List of lines and returns the head Node.static Node
Node.loadFromString
(String text) Loads Nodes (including children + siblings) from the given text.abstract Node
FileFormat.updateFile
(Node oldFile, String oldVersion, String newVersion) Updates a file of this format (given as the headNode
) from whatever old version it was to a newer version (using the given version strings).Modifier and TypeMethodDescriptionstatic boolean
FormatNodeVerification.assertChild
(com.github.tadukoo.util.logger.EasyLogger logger, Node node, Node child) Checks that the given child matches the child on the given Node.static boolean
FormatNodeVerification.assertNextSibling
(com.github.tadukoo.util.logger.EasyLogger logger, Node node, Node nextSibling) Checks that the given next sibling matches the next sibling on the given Node.static boolean
FormatNodeVerification.assertNullChild
(com.github.tadukoo.util.logger.EasyLogger logger, Node node) Checks that the child on the given Node is null.static boolean
FormatNodeVerification.assertNullNextSibling
(com.github.tadukoo.util.logger.EasyLogger logger, Node node) Checks that the next sibling on the given Node is null.static boolean
FormatNodeVerification.assertNullParent
(com.github.tadukoo.util.logger.EasyLogger logger, Node node) Checks that the parent on the given Node is null.static boolean
FormatNodeVerification.assertNullPrevSibling
(com.github.tadukoo.util.logger.EasyLogger logger, Node node) Checks that the previous sibling on the given Node is null.static boolean
FormatNodeVerification.assertParent
(com.github.tadukoo.util.logger.EasyLogger logger, Node node, Node parent) Checks that the given parent matches the parent on the given Node.static boolean
FormatNodeVerification.assertPrevSibling
(com.github.tadukoo.util.logger.EasyLogger logger, Node node, Node prevSibling) Checks that the given previous sibling matches the previous sibling on the given Node.Sets the expected child for the Node being checkedstatic String
TadFormatNodeHeader.getSchemaVersionString
(Node headNode) Grabs the Schema version string out of the Tad Format Node Header.Node.NodeBuilder.nextSibling
(Node nextSibling) NodeVerificationCriteria.NodeVerificationCriteriaBuilder.nextSibling
(Node nextSibling) Sets the expected next sibling for the Node being checkedSets the Node to be checkedSets the expected parent for the Node being checkedNode.NodeBuilder.prevSibling
(Node prevSibling) NodeVerificationCriteria.NodeVerificationCriteriaBuilder.prevSibling
(Node prevSibling) Sets the expected previous sibling for the Node being checkedprotected 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.void
Sets the child Node to this one.void
Node.setNextSibling
(Node sibling) Sets the next sibling Node to this one.void
Sets the parent Node to this one.void
Node.setPrevSibling
(Node sibling) Sets the previous sibling Node to this one.abstract Node
FileFormat.updateFile
(Node oldFile, String oldVersion, String newVersion) Updates a file of this format (given as the headNode
) from whatever old version it was to a newer version (using the given version strings).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.private 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.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.ModifierConstructorDescriptionprivate
Node
(String title, String data, int level, Node parent, Node child, Node prevSibling, Node nextSibling) Create a Node using all of the information to be stored in it.private
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 parameters