public class MappingNode extends CollectionNode<NodeTuple>
A map is a collection of unsorted key-value pairs.
endMark, resolved, useClassConstructor
Constructor and Description |
---|
MappingNode(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) |
Modifier and Type | Method and Description |
---|---|
NodeId |
getNodeId() |
List<NodeTuple> |
getValue()
Returns the entries of this map.
|
boolean |
isMerged() |
void |
setMerged(boolean merged) |
void |
setOnlyKeyType(Class<? extends Object> keyType) |
void |
setTypes(Class<? extends Object> keyType,
Class<? extends Object> valueType) |
void |
setValue(List<NodeTuple> mergedValue) |
String |
toString() |
getFlowStyle, setEndMark, setFlowStyle
equals, getEndMark, getStartMark, getTag, getType, hashCode, isResolved, isTwoStepsConstruction, setTag, setTwoStepsConstruction, setType, setUseClassConstructor, useClassConstructor
public MappingNode(Tag tag, boolean resolved, List<NodeTuple> value, Mark startMark, Mark endMark, DumperOptions.FlowStyle flowStyle)
public MappingNode(Tag tag, List<NodeTuple> value, DumperOptions.FlowStyle flowStyle)
@Deprecated public MappingNode(Tag tag, boolean resolved, List<NodeTuple> value, Mark startMark, Mark endMark, Boolean flowStyle)
@Deprecated public MappingNode(Tag tag, List<NodeTuple> value, Boolean flowStyle)
public NodeId getNodeId()
public List<NodeTuple> getValue()
getValue
in class CollectionNode<NodeTuple>
public void setMerged(boolean merged)
merged
- - true if map contains merge nodepublic boolean isMerged()
Copyright © 2008–2019. All rights reserved.