Class StandardConstructor
- java.lang.Object
-
- org.snakeyaml.engine.v2.constructor.BaseConstructor
-
- org.snakeyaml.engine.v2.constructor.StandardConstructor
-
public class StandardConstructor extends BaseConstructor
Construct standard Java classes
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classStandardConstructor.ConstructEnvConstruct scalar for format ${VARIABLE} replacing the template with the value from environment.classStandardConstructor.ConstructYamlMapCreate Map instanceclassStandardConstructor.ConstructYamlSeqCreate the List implementation (configured in setting)classStandardConstructor.ConstructYamlSetCreate Set instancesclassStandardConstructor.ConstructYamlStrCreate String instances
-
Field Summary
-
Fields inherited from class org.snakeyaml.engine.v2.constructor.BaseConstructor
settings, tagConstructors
-
-
Constructor Summary
Constructors Constructor Description StandardConstructor(LoadSettings settings)Create
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconstructMapping2ndStep(org.snakeyaml.engine.v2.nodes.MappingNode node, Map<Object,Object> mapping)Fill the mapping with the data from provided nodeprotected voidconstructSet2ndStep(org.snakeyaml.engine.v2.nodes.MappingNode node, Set<Object> set)Fill the Map with the data from the nodeprotected voidflattenMapping(org.snakeyaml.engine.v2.nodes.MappingNode node)Flattening is not required because merge was removed from YAML 1.2 Only check duplicationsprotected voidprocessDuplicateKeys(org.snakeyaml.engine.v2.nodes.MappingNode node)detect and process the duplicate key in mapping according to the configured setting-
Methods inherited from class org.snakeyaml.engine.v2.constructor.BaseConstructor
construct, constructMapping, constructObject, constructObjectNoCheck, constructScalar, constructSequence, constructSequenceStep2, constructSet, constructSingleDocument, createEmptyListForNode, createEmptyMapFor, createEmptySetForNode, findConstructorFor, postponeMapFilling, postponeSetFilling
-
-
-
-
Constructor Detail
-
StandardConstructor
public StandardConstructor(LoadSettings settings)
Create- Parameters:
settings- - configuration options
-
-
Method Detail
-
flattenMapping
protected void flattenMapping(org.snakeyaml.engine.v2.nodes.MappingNode node)
Flattening is not required because merge was removed from YAML 1.2 Only check duplications- Parameters:
node- - mapping to check the duplications
-
processDuplicateKeys
protected void processDuplicateKeys(org.snakeyaml.engine.v2.nodes.MappingNode node)
detect and process the duplicate key in mapping according to the configured setting- Parameters:
node- - the source
-
constructMapping2ndStep
protected void constructMapping2ndStep(org.snakeyaml.engine.v2.nodes.MappingNode node, Map<Object,Object> mapping)Description copied from class:BaseConstructorFill the mapping with the data from provided node- Overrides:
constructMapping2ndStepin classBaseConstructor- Parameters:
node- - the sourcemapping- - empty map to be filled
-
constructSet2ndStep
protected void constructSet2ndStep(org.snakeyaml.engine.v2.nodes.MappingNode node, Set<Object> set)Description copied from class:BaseConstructorFill the Map with the data from the node- Overrides:
constructSet2ndStepin classBaseConstructor- Parameters:
node- - the sourceset- - empty set to fill
-
-