org.yaml.snakeyaml.constructor
Interface Construct
-
- All Known Implementing Classes:
- AbstractConstruct, CompactConstructor.ConstructCompactObject, SafeConstructor.ConstructUndefined, SafeConstructor.ConstructYamlBinary, SafeConstructor.ConstructYamlBool, SafeConstructor.ConstructYamlFloat, SafeConstructor.ConstructYamlInt, SafeConstructor.ConstructYamlMap, SafeConstructor.ConstructYamlNull, SafeConstructor.ConstructYamlNumber, SafeConstructor.ConstructYamlOmap, SafeConstructor.ConstructYamlPairs, SafeConstructor.ConstructYamlSeq, SafeConstructor.ConstructYamlSet, SafeConstructor.ConstructYamlStr, SafeConstructor.ConstructYamlTimestamp
public interface ConstructProvide 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
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description java.lang.Objectconstruct(Node node)Construct a Java instance with all the properties injected when it is possible.voidconstruct2ndStep(Node node, java.lang.Object object)Apply the second step when constructing recursive structures.
-
-
-
Method Detail
-
construct
java.lang.Object construct(Node node)
Construct a Java instance with all the properties injected when it is possible.- Parameters:
node- composed Node- Returns:
- a complete Java instance
-
construct2ndStep
void construct2ndStep(Node node, java.lang.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- composed Nodeobject- the instance constructed earlier byconstruct(Node node)for the provided Node
-
-
DataMelt 3.0 © DataMelt by jWork.ORG