Package org.yaml.snakeyaml.nodes
Class MappingNode
Represents a map.
A map is a collection of unsorted key-value pairs.
-
Field Summary
Fields inherited from class org.yaml.snakeyaml.nodes.Node
endMark, resolved, useClassConstructor
-
Constructor Summary
ConstructorsConstructorDescriptionMappingNode
(Tag tag, boolean resolved, List<NodeTuple> value, Mark startMark, Mark endMark, DumperOptions.FlowStyle flowStyle) MappingNode
(Tag tag, List<NodeTuple> value, DumperOptions.FlowStyle flowStyle) -
Method Summary
Methods inherited from class org.yaml.snakeyaml.nodes.CollectionNode
getFlowStyle, setEndMark, setFlowStyle
Methods inherited from class org.yaml.snakeyaml.nodes.Node
equals, getAnchor, getBlockComments, getEndComments, getEndMark, getInLineComments, getStartMark, getTag, getType, hashCode, isTwoStepsConstruction, setAnchor, setBlockComments, setEndComments, setInLineComments, setTag, setTwoStepsConstruction, setType, setUseClassConstructor, useClassConstructor
-
Constructor Details
-
MappingNode
-
MappingNode
-
-
Method Details
-
getNodeId
Description copied from class:Node
For error reporting. -
getValue
Returns the entries of this map.- Specified by:
getValue
in classCollectionNode<NodeTuple>
- Returns:
- List of entries.
-
setValue
-
setOnlyKeyType
-
setTypes
-
toString
-
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
-