org.yaml.snakeyaml.nodes
Class MappingNode
java.lang.Object
org.yaml.snakeyaml.nodes.Node
org.yaml.snakeyaml.nodes.CollectionNode
org.yaml.snakeyaml.nodes.MappingNode
public class MappingNode
- extends CollectionNode
Represents a map.
A map is a collection of unsorted key-value pairs.
Methods inherited from class org.yaml.snakeyaml.nodes.Node |
equals, getEndMark, getStartMark, getTag, getType, hashCode, isResolved, isTwoStepsConstruction, setTag, setTwoStepsConstruction, setType, setUseClassConstructor, useClassConstructor |
MappingNode
public MappingNode(Tag tag,
boolean resolved,
List<NodeTuple> value,
Mark startMark,
Mark endMark,
Boolean flowStyle)
MappingNode
public MappingNode(Tag tag,
List<NodeTuple> value,
Boolean flowStyle)
getNodeId
public NodeId getNodeId()
- Description copied from class:
Node
- For error reporting.
- Specified by:
getNodeId
in class Node
- Returns:
- scalar, sequence, mapping
- See Also:
variable 'id' in PyYAML
getValue
public List<NodeTuple> getValue()
- Returns the entries of this map.
- Returns:
- List of entries.
setValue
public void setValue(List<NodeTuple> merge)
setKeyType
public void setKeyType(Class<? extends Object> keyType)
setValueType
public void setValueType(Class<? extends Object> valueType)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2008-2010. All Rights Reserved.