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
Construct mapping instance (Map, JavaBean) when the runtime class is known.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConstruct JavaBean.void
construct2ndStep
(Node node, Object object) Apply the second step when constructing recursive structures.protected Object
constructJavaBean2ndStep
(MappingNode node, Object object) protected Property
getProperty
(Class<? extends Object> type, String name)
-
Constructor Details
-
ConstructMapping
protected ConstructMapping()
-
-
Method Details
-
construct
Construct JavaBean. If type safe collections are used please look atTypeDescription
. -
construct2ndStep
Description copied from interface:Construct
Apply the second step when constructing recursive structures. Because the instance is already created it can assign a reference to itself.- Specified by:
construct2ndStep
in interfaceConstruct
- Parameters:
node
- composed Nodeobject
- the instance constructed earlier byconstruct(Node node)
for the provided Node
-
constructJavaBean2ndStep
-
getProperty
-