Package org.snakeyaml.engine.v2.nodes
Class MappingNode
Represents a map.
A map is a collection of unsorted key-value pairs.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
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
-
Field Details
-
value
-
-
Constructor Details
-
MappingNode
public MappingNode(Tag tag, boolean resolved, List<NodeTuple> value, FlowStyle flowStyle, Optional<Mark> startMark, Optional<Mark> endMark) Create- Parameters:
tag
- - tag of the noderesolved
- - true when the tag is implicitly resolvedvalue
- - the valueflowStyle
- - the flow style of the nodestartMark
- - startendMark
- - end
-
MappingNode
Create- Parameters:
tag
- - tag of the nodevalue
- - the valueflowStyle
- - the flow style of the node
-
-
Method Details
-
getNodeType
- Specified by:
getNodeType
in classNode
- Returns:
- scalar, sequence, mapping
-
getValue
Returns the entries of this map.- Specified by:
getValue
in classCollectionNode<NodeTuple>
- Returns:
- List of entries.
-
setValue
Applications may need to replace the content (Spring Boot). Merging was removed, but it may be implemented.- Parameters:
merged
- - merged data to replace the internal value
-
toString
-