Class CompactConstructor.ConstructCompactObject
- java.lang.Object
-
- org.yaml.snakeyaml.constructor.Constructor.ConstructMapping
-
- org.yaml.snakeyaml.extensions.compactnotation.CompactConstructor.ConstructCompactObject
-
- All Implemented Interfaces:
Construct
- Enclosing class:
- CompactConstructor
public class CompactConstructor.ConstructCompactObject extends Constructor.ConstructMapping
Custom ConstructMapping
-
-
Constructor Summary
Constructors Constructor Description ConstructCompactObject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
construct(Node node)
Construct JavaBean.void
construct2ndStep(Node node, Object object)
Apply the second step when constructing recursive structures.-
Methods inherited from class org.yaml.snakeyaml.constructor.Constructor.ConstructMapping
constructJavaBean2ndStep, getProperty
-
-
-
-
Method Detail
-
construct2ndStep
public void construct2ndStep(Node node, Object object)
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
- Overrides:
construct2ndStep
in classConstructor.ConstructMapping
- Parameters:
node
- composed Nodeobject
- the instance constructed earlier byconstruct(Node node)
for the provided Node
-
construct
public Object construct(Node node)
Description copied from class:Constructor.ConstructMapping
Construct JavaBean. If type safe collections are used please look atTypeDescription
.- Specified by:
construct
in interfaceConstruct
- Overrides:
construct
in classConstructor.ConstructMapping
- Parameters:
node
- node where the keys are property names (they can only beString
s) and values are objects to be created- Returns:
- constructed JavaBean
-
-