Package org.yaml.snakeyaml.constructor
Class Constructor.ConstructMapping
- java.lang.Object
-
- org.yaml.snakeyaml.constructor.Constructor.ConstructMapping
-
- All Implemented Interfaces:
Construct
- Direct Known Subclasses:
CompactConstructor.ConstructCompactObject
- Enclosing class:
- Constructor
protected class Constructor.ConstructMapping extends Object implements Construct
Construct mapping instance (Map, JavaBean) when the runtime class is known.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedConstructMapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectconstruct(Node node)Construct JavaBean.voidconstruct2ndStep(Node node, Object object)Apply the second step when constructing recursive structures.protected ObjectconstructJavaBean2ndStep(MappingNode node, Object object)protected PropertygetProperty(Class<? extends Object> type, String name)
-
-
-
Method Detail
-
construct
public Object construct(Node node)
Construct JavaBean. If type safe collections are used please look atTypeDescription.
-
construct2ndStep
public void construct2ndStep(Node node, Object object)
Description copied from interface:ConstructApply the second step when constructing recursive structures. Because the instance is already created it can assign a reference to itself.- Specified by:
construct2ndStepin interfaceConstruct- Parameters:
node- composed Nodeobject- the instance constructed earlier byconstruct(Node node)for the provided Node
-
constructJavaBean2ndStep
protected Object constructJavaBean2ndStep(MappingNode node, Object object)
-
-