Top Description Methods
org.yaml.snakeyaml.constructor

public Interface Construct

Known Direct Implementers
org.yaml.snakeyaml.constructor.Constructor.ConstructMapping, org.yaml.snakeyaml.constructor.Constructor.ConstructYamlObject, org.yaml.snakeyaml.constructor.Constructor.ConstructSequence, org.yaml.snakeyaml.constructor.SafeConstructor.ConstructYamlSet, org.yaml.snakeyaml.constructor.SafeConstructor.ConstructYamlSeq, org.yaml.snakeyaml.constructor.SafeConstructor.ConstructYamlMap, org.yaml.snakeyaml.constructor.AbstractConstruct
Imports
org.yaml.snakeyaml.nodes.Node

Provide a way to construct a Java instance out of the composed Node. Support recursive objects if it is required. (create Native Data Structure out of Node Graph)
See Also
Chapter 3. Processing YAML Information

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

a complete Java instance
construct
(Node
composed Node
node
)

Construct a Java instance with all the properties injected when it is possible.

public void
construct2ndStep(Node
composed Node
node
,
Object
the instance constructed earlier by construct(Node node) for the provided Node
object
)

Apply the second step when constructing recursive structures.

Method Detail

constructback to summary
public Object construct(Node node)

Construct a Java instance with all the properties injected when it is possible.

Parameters
node:Node

composed Node

Returns:Object

a complete Java instance

construct2ndStepback to summary
public void construct2ndStep(Node node, Object object)

Apply the second step when constructing recursive structures. Because the instance is already created it can assign a reference to itself.

Parameters
node:Node

composed Node

object:Object

the instance constructed earlier by construct(Node node) for the provided Node