org.insolina.ydom
Class ScalarNode

java.lang.Object
  extended by org.insolina.ydom.YamlNode
      extended by org.insolina.ydom.ScalarNode

public class ScalarNode
extends YamlNode

This class represents a simple scalar value in the Yaml document. Usually this is a String.


Constructor Summary
ScalarNode(java.lang.Object value)
          Create an immutable ScalarNode
 
Method Summary
 java.util.List<YamlNode> getChildren()
          Return the children of this YamlNode
 java.lang.Object getValue()
           
 void print()
          Print out the String value of the ScalarNode.
 java.lang.String toString()
          Return the String value of the ScalarNode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScalarNode

public ScalarNode(java.lang.Object value)
Create an immutable ScalarNode

Parameters:
value -
Method Detail

getValue

public java.lang.Object getValue()
Returns:
Object the value

getChildren

public java.util.List<YamlNode> getChildren()
Description copied from class: YamlNode
Return the children of this YamlNode

Specified by:
getChildren in class YamlNode
Returns:
List of YamlNode

print

public void print()
Print out the String value of the ScalarNode.

Specified by:
print in class YamlNode

toString

public java.lang.String toString()
Return the String value of the ScalarNode.

Overrides:
toString in class java.lang.Object