org.insolina.ydom
Class YamlCollection

java.lang.Object
  extended by org.insolina.ydom.YamlNode
      extended by org.insolina.ydom.YamlCollection
Direct Known Subclasses:
MappingNode, SequenceNode

public abstract class YamlCollection
extends YamlNode

The abstract base class for the YamlNodes that represent collections.


Constructor Summary
protected YamlCollection()
           
 
Method Summary
 void addChild(YamlNode node)
          Add a child node to this collection.
 java.util.List<YamlNode> getChildren()
          Return the children of this YamlNode
 
Methods inherited from class org.insolina.ydom.YamlNode
print
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YamlCollection

protected YamlCollection()
Method Detail

addChild

public void addChild(YamlNode node)
Add a child node to this collection.

Parameters:
node - YamlNode

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