Package org.yaml.snakeyaml.nodes
Class MappingNode
Represents a map.
A map is a collection of unsorted key-value pairs.
-
Field Summary
FieldsFields 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, Boolean flowStyle) Deprecated.MappingNode
(Tag tag, boolean resolved, List<NodeTuple> value, Mark startMark, Mark endMark, DumperOptions.FlowStyle flowStyle) MappingNode
(Tag tag, List<NodeTuple> value, Boolean flowStyle) Deprecated.MappingNode
(Tag tag, List<NodeTuple> value, DumperOptions.FlowStyle flowStyle) -
Method Summary
Methods inherited from class org.yaml.snakeyaml.nodes.CollectionNode
getFlowStyle, setEndMark, setFlowStyle, setFlowStyle
Methods inherited from class org.yaml.snakeyaml.nodes.Node
equals, getAnchor, getEndMark, getStartMark, getTag, getType, hashCode, isResolved, isTwoStepsConstruction, setAnchor, setTag, setTwoStepsConstruction, setType, setUseClassConstructor, useClassConstructor
-
Field Details
-
value
-
merged
private boolean merged
-
-
Constructor Details
-
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
-