Uses of Class
com.github.tadukoo.parsing.fileformat.Node
Packages that use 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
Fields in com.github.tadukoo.parsing.fileformat declared as NodeModifier and TypeFieldDescriptionprivate NodeNode.childThe child Node to this oneprivate NodeNode.NodeBuilder.childThe childNodeto this oneprivate final NodeNodeVerificationCriteria.childThe expected child for the Nodeprivate NodeNodeVerificationCriteria.NodeVerificationCriteriaBuilder.childThe expected child for the Nodeprivate NodeNode.nextSiblingThe next sibling Node to this oneprivate NodeNode.NodeBuilder.nextSiblingThe next siblingNodeto this oneprivate final NodeNodeVerificationCriteria.nextSiblingThe expected next sibling for the Nodeprivate NodeNodeVerificationCriteria.NodeVerificationCriteriaBuilder.nextSiblingThe expected next sibling for the Nodeprivate final NodeNodeVerificationCriteria.nodeThe Node to be checkedprivate NodeNodeVerificationCriteria.NodeVerificationCriteriaBuilder.nodeThe Node to be checkedprivate NodeNode.NodeBuilder.parentThe parentNodeto this oneprivate NodeNode.parentThe parent Node to this oneprivate NodeNodeVerificationCriteria.NodeVerificationCriteriaBuilder.parentThe expected parent for the Nodeprivate final NodeNodeVerificationCriteria.parentThe expected parent for the Nodeprivate NodeNode.NodeBuilder.prevSiblingThe previous siblingNodeto this oneprivate NodeNode.prevSiblingThe previous sibling Node to this oneprivate NodeNodeVerificationCriteria.NodeVerificationCriteriaBuilder.prevSiblingThe expected previous sibling for the Nodeprivate final NodeNodeVerificationCriteria.prevSiblingThe expected previous sibling for the NodeMethods in com.github.tadukoo.parsing.fileformat that return NodeModifier and TypeMethodDescriptionNode.NodeBuilder.build()Builds a newNodeusing the specified parametersstatic NodeTadFormatNodeHeader.createHeader(FileFormat format, FileFormatSchema schema) Creates a Tad Format Header for the givenFileFormatandFileFormatSchema.Node.getChild()NodeVerificationCriteria.getChild()Node.getNextSibling()NodeVerificationCriteria.getNextSibling()NodeVerificationCriteria.getNode()Node.getParent()NodeVerificationCriteria.getParent()Node.getPrevSibling()NodeVerificationCriteria.getPrevSibling()protected final NodeLoads the file given by the filepath as Nodes, returning the head Node of the actual content of the file (excluding the TadFormat Header).static NodeNode.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 NodeNode.loadFromList(List<String> lines) Loads Nodes (including children + siblings) from the given List of lines and returns the head Node.static NodeNode.loadFromString(String text) Loads Nodes (including children + siblings) from the given text.abstract NodeFileFormat.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).Methods in com.github.tadukoo.parsing.fileformat with parameters of type NodeModifier and TypeMethodDescriptionstatic booleanFormatNodeVerification.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 booleanFormatNodeVerification.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 booleanFormatNodeVerification.assertNullChild(com.github.tadukoo.util.logger.EasyLogger logger, Node node) Checks that the child on the given Node is null.static booleanFormatNodeVerification.assertNullNextSibling(com.github.tadukoo.util.logger.EasyLogger logger, Node node) Checks that the next sibling on the given Node is null.static booleanFormatNodeVerification.assertNullParent(com.github.tadukoo.util.logger.EasyLogger logger, Node node) Checks that the parent on the given Node is null.static booleanFormatNodeVerification.assertNullPrevSibling(com.github.tadukoo.util.logger.EasyLogger logger, Node node) Checks that the previous sibling on the given Node is null.static booleanFormatNodeVerification.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 booleanFormatNodeVerification.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 StringTadFormatNodeHeader.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 voidFileFormat.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.voidSets the child Node to this one.voidNode.setNextSibling(Node sibling) Sets the next sibling Node to this one.voidSets the parent Node to this one.voidNode.setPrevSibling(Node sibling) Sets the previous sibling Node to this one.abstract NodeFileFormat.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 booleanFileFormatSchemaVerification.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 givenFileFormatSchemaor not.private static booleanFileFormatSchemaVerification.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 booleanTadFormatNodeHeader.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.Constructors in com.github.tadukoo.parsing.fileformat with parameters of type NodeModifierConstructorDescriptionprivateNode(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.privateNodeVerificationCriteria(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