|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.insolina.ydom.YamlDocument
public class YamlDocument
This class represents the Yaml document. An instance can be created either with a String containing the fully qualified name of the Yaml file, or a Java File object representing the Yaml file.
Constructor Summary | |
---|---|
YamlDocument(java.io.File file)
Load the Yaml document using a Java File object. |
|
YamlDocument(java.lang.String file)
Load the Yaml document using the fully qualified name of the Yaml file. |
Method Summary | |
---|---|
java.util.List<YamlNode> |
getChildren()
Return the children of the document's root node. |
YamlNode |
getRootNode()
Return the root node of the Yaml document. |
void |
print()
Print out a string representation of the document structure. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public YamlDocument(java.lang.String file) throws YamlDomException
file
- String
YamlDomException
public YamlDocument(java.io.File file) throws YamlDomException
file
- File
YamlDomException
Method Detail |
---|
public java.util.List<YamlNode> getChildren()
public YamlNode getRootNode()
public void print()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |