Package org.snakeyaml.engine.v2.nodes
Class MappingNode
- java.lang.Object
-
- org.snakeyaml.engine.v2.nodes.Node
-
- org.snakeyaml.engine.v2.nodes.CollectionNode<NodeTuple>
-
- org.snakeyaml.engine.v2.nodes.MappingNode
-
public class MappingNode extends CollectionNode<NodeTuple>
Represents a map.A map is a collection of unsorted key-value pairs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeTypegetNodeType()List<NodeTuple>getValue()Returns the entries of this map.booleanisMerged()voidsetMerged(boolean merged)voidsetValue(List<NodeTuple> mergedValue)StringtoString()-
Methods inherited from class org.snakeyaml.engine.v2.nodes.CollectionNode
getFlowStyle, setEndMark, setFlowStyle
-
Methods inherited from class org.snakeyaml.engine.v2.nodes.Node
equals, getAnchor, getBlockComments, getEndComments, getEndMark, getInLineComments, getProperty, getStartMark, getTag, hashCode, isRecursive, setAnchor, setBlockComments, setEndComments, setInLineComments, setProperty, setRecursive, setTag
-
-
-
-
Method Detail
-
getNodeType
public NodeType getNodeType()
- Specified by:
getNodeTypein classNode- Returns:
- scalar, sequence, mapping
-
getValue
public List<NodeTuple> getValue()
Returns the entries of this map.- Specified by:
getValuein classCollectionNode<NodeTuple>- Returns:
- List of entries.
-
setMerged
public void setMerged(boolean merged)
- Parameters:
merged- - true if map contains merge node
-
isMerged
public boolean isMerged()
- Returns:
- true if map contains merge node
-
-