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 java.lang.Object implements Construct
Construct mapping instance (Map, JavaBean) when the runtime class is
known.
-
Constructor Summary
Constructors Modifier Constructor Description protectedConstructMapping() -
Method Summary
Modifier and Type Method Description java.lang.Objectconstruct(Node node)Construct JavaBean.voidconstruct2ndStep(Node node, java.lang.Object object)Apply the second step when constructing recursive structures.protected java.lang.ObjectconstructJavaBean2ndStep(MappingNode node, java.lang.Object object)protected PropertygetProperty(java.lang.Class<? extends java.lang.Object> type, java.lang.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: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
-
getProperty
protected Property getProperty(java.lang.Class<? extends java.lang.Object> type, java.lang.String name)
-