Class StandardConstructor
java.lang.Object
org.snakeyaml.engine.v2.constructor.BaseConstructor
org.snakeyaml.engine.v2.constructor.StandardConstructor
Construct standard Java classes
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConstruct scalar for format ${VARIABLE} replacing the template with the value from environment.classCreate Map instanceclassCreate the List implementation (configured in setting)classCreate Set instancesclassCreate String instances -
Field Summary
Fields inherited from class BaseConstructor
constructedObjects, settings, tagConstructors -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Objectprotected voidconstructMapping2ndStep(MappingNode node, Map<Object, Object> mapping) Fill the mapping with the data from provided nodeprotected voidconstructSet2ndStep(MappingNode node, Set<Object> set) Fill the Map with the data from the nodeprotected voidflattenMapping(MappingNode node) Flattening is not required because merge was removed from YAML 1.2 Only check duplicationsprotected voiddetect and process the duplicate key in mapping according to the configured settingMethods inherited from class BaseConstructor
construct, constructMapping, constructObject, constructObjectNoCheck, constructScalar, constructSequence, constructSequenceStep2, constructSet, constructSingleDocument, createEmptyListForNode, createEmptyMapFor, createEmptySetForNode, findConstructorFor, postponeMapFilling, postponeSetFilling
-
Constructor Details
-
StandardConstructor
Create- Parameters:
settings- - configuration options
-
-
Method Details
-
flattenMapping
Flattening is not required because merge was removed from YAML 1.2 Only check duplications- Parameters:
node- - mapping to check the duplications
-
processDuplicateKeys
detect and process the duplicate key in mapping according to the configured setting- Parameters:
node- - the source
-
constructKey
-
constructMapping2ndStep
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
Description copied from class:BaseConstructorFill the Map with the data from the node- Overrides:
constructSet2ndStepin classBaseConstructor- Parameters:
node- - the sourceset- - empty set to fill
-