public class MgnlYamlConstructor
extends org.yaml.snakeyaml.constructor.Constructor
SnakeYAML constructor
.
Provides simple API for registering custom constructs bound to tags and tag prefixes. Exposes the factory method for producing the
constructs
by the node types (getConstructByNodeType(Node)
). Finally, MgnlYamlConstructor
allows to aggregate the dependencies encountered during YAML parsing (other YAML files, definitions etc).Modifier and Type | Class and Description |
---|---|
static class |
MgnlYamlConstructor.YamlConfigurationDependencyAggregator
Simple aggregator class which allows to collect a set of
YamlConfigurationDependency instances. |
org.yaml.snakeyaml.constructor.Constructor.ConstructMapping, org.yaml.snakeyaml.constructor.Constructor.ConstructScalar, org.yaml.snakeyaml.constructor.Constructor.ConstructSequence, org.yaml.snakeyaml.constructor.Constructor.ConstructYamlObject
org.yaml.snakeyaml.constructor.SafeConstructor.ConstructUndefined, org.yaml.snakeyaml.constructor.SafeConstructor.ConstructYamlBinary, org.yaml.snakeyaml.constructor.SafeConstructor.ConstructYamlBool, org.yaml.snakeyaml.constructor.SafeConstructor.ConstructYamlFloat, org.yaml.snakeyaml.constructor.SafeConstructor.ConstructYamlInt, org.yaml.snakeyaml.constructor.SafeConstructor.ConstructYamlMap, org.yaml.snakeyaml.constructor.SafeConstructor.ConstructYamlNull, org.yaml.snakeyaml.constructor.SafeConstructor.ConstructYamlOmap, org.yaml.snakeyaml.constructor.SafeConstructor.ConstructYamlPairs, org.yaml.snakeyaml.constructor.SafeConstructor.ConstructYamlSeq, org.yaml.snakeyaml.constructor.SafeConstructor.ConstructYamlSet, org.yaml.snakeyaml.constructor.SafeConstructor.ConstructYamlStr, org.yaml.snakeyaml.constructor.SafeConstructor.ConstructYamlTimestamp
Modifier and Type | Method and Description |
---|---|
protected void |
constructMapping2ndStep(org.yaml.snakeyaml.nodes.MappingNode node,
Map<Object,Object> mapping) |
org.yaml.snakeyaml.constructor.Construct |
getConstructByNodeType(org.yaml.snakeyaml.nodes.Node node) |
MgnlYamlConstructor.YamlConfigurationDependencyAggregator |
getDependencyAggregator() |
getClassForName, getClassForNode
constructSet2ndStep, flattenMapping, processDuplicateKeys
addTypeDescription, checkData, constructArray, constructArrayStep2, constructDocument, constructMapping, constructObject, constructObjectNoCheck, constructScalar, constructSequence, constructSequenceStep2, constructSet, constructSet, createArray, createDefaultList, createDefaultMap, createDefaultSet, finalizeConstruction, getConstructor, getData, getPropertyUtils, getSingleData, isAllowDuplicateKeys, isExplicitPropertyUtils, newInstance, newInstance, newInstance, newList, newMap, newSet, setAllowDuplicateKeys, setComposer, setPropertyUtils
public org.yaml.snakeyaml.constructor.Construct getConstructByNodeType(org.yaml.snakeyaml.nodes.Node node)
protected void constructMapping2ndStep(org.yaml.snakeyaml.nodes.MappingNode node, Map<Object,Object> mapping)
constructMapping2ndStep
in class org.yaml.snakeyaml.constructor.SafeConstructor
public MgnlYamlConstructor.YamlConfigurationDependencyAggregator getDependencyAggregator()
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.