Class MappingNode
Represents a map.
A map is a collection of unsorted key-value pairs.
-
Field Summary
Fields inherited from class 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 CollectionNode
getFlowStyle, setEndMark, setFlowStyleMethods inherited from class 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
-
getValue
Returns the entries of this map.- Specified by:
getValuein 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
-