Package net.pwall.yaml
Class YAMLDocument
java.lang.Object
net.pwall.yaml.YAMLDocument
- All Implemented Interfaces:
Serializable
A parsed YAML document.
- Author:
- Peter Wall
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionYAMLDocument(YAMLNode rootNode) Construct aYAMLDocumentwith the supplied root node and default version numbersYAMLDocument(YAMLNode rootNode, int majorVersion, int minorVersion) Construct aYAMLDocumentwith the supplied root node, major version number and minor version number -
Method Summary
Modifier and TypeMethodDescriptionintGet the major version number.intGet the minor version number.Get the root node of the document.
-
Field Details
-
defaultMajorVersion
public static final int defaultMajorVersion- See Also:
-
defaultMinorVersion
public static final int defaultMinorVersion- See Also:
-
-
Constructor Details
-
YAMLDocument
Construct aYAMLDocumentwith the supplied root node, major version number and minor version number- Parameters:
rootNode- The root nodemajorVersion- The major version numberminorVersion- The minor version number
-
YAMLDocument
Construct aYAMLDocumentwith the supplied root node and default version numbers- Parameters:
rootNode- The root node
-
-
Method Details
-
getRootNode
Get the root node of the document.- Returns:
- the root node
-
getMajorVersion
public int getMajorVersion()Get the major version number.- Returns:
- the major version number
-
getMinorVersion
public int getMinorVersion()Get the minor version number.- Returns:
- the minor version number
-