public class Document
extends Object
-
Constructor Summary
Constructors
| Constructor |
Description |
Document(File file) |
Creates a document from a file.
|
Document(String path) |
Creates a document from the given path.
|
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
public Document(
File file)
Creates a document from a file.
- Parameters:
file - The file of the MiniML file.
-
Creates a document from the given path.
- Parameters:
path - The path to the MiniML file.
-
Method Details
-
Returns this document's root.
- Returns:
- This document's root.
-
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.