public class MappingNode extends CollectionNode
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) |
MappingNode(Tag tag,
List<NodeTuple> value,
Boolean flowStyle) |
Modifier and Type | Method and Description |
---|---|
NodeId |
getNodeId()
For error reporting.
|
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> merge) |
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, Boolean flowStyle)
public List<NodeTuple> getValue()
public void setMerged(boolean merged)
merged
- - true if map contains merge nodepublic boolean isMerged()
Copyright © 2008–2016. All rights reserved.