Package miniml

Class Document

java.lang.Object
miniml.Document

public class Document
extends Object
  • Constructor Details

    • Document

      public Document​(File file)
      Creates a document from a file.
      Parameters:
      file - The file of the MiniML file.
    • Document

      public Document​(String path)
      Creates a document from the given path.
      Parameters:
      path - The path to the MiniML file.
  • Method Details

    • getRoot

      public Node getRoot()
      Returns this document's root.
      Returns:
      This document's root.
    • createNode

      public Node createNode​(String name, Node parent)
      Creates a new node in this document.
      Parameters:
      name - The name of the new node.
      parent - The parent of the new node.
      Returns:
      The newly created node.