public class Constructor extends SafeConstructor
| Modifier and Type | Class and Description |
|---|---|
protected class |
Constructor.ConstructMapping
Construct mapping instance (Map, JavaBean) when the runtime class is known.
|
protected class |
Constructor.ConstructScalar
Construct scalar instance when the runtime class is known.
|
protected class |
Constructor.ConstructSequence
Construct sequence (List, Array, or immutable object) when the runtime class is known.
|
protected class |
Constructor.ConstructYamlObject
Construct an instance when the runtime class is not known but a global tag with a class name is
defined.
|
SafeConstructor.ConstructUndefined, SafeConstructor.ConstructYamlBinary, SafeConstructor.ConstructYamlBool, SafeConstructor.ConstructYamlFloat, SafeConstructor.ConstructYamlInt, SafeConstructor.ConstructYamlMap, SafeConstructor.ConstructYamlNull, SafeConstructor.ConstructYamlOmap, SafeConstructor.ConstructYamlPairs, SafeConstructor.ConstructYamlSeq, SafeConstructor.ConstructYamlSet, SafeConstructor.ConstructYamlStr, SafeConstructor.ConstructYamlTimestampundefinedConstructorcomposer, loadingConfig, NOT_INSTANTIATED_OBJECT, rootTag, typeDefinitions, typeTags, yamlClassConstructors, yamlConstructors, yamlMultiConstructors| Constructor and Description |
|---|
Constructor()
Deprecated.
use options
|
Constructor(Class<? extends Object> theRoot)
Create Constructor for the specified class as the root.
|
Constructor(Class<? extends Object> theRoot,
LoaderOptions loadingConfig)
Create
|
Constructor(LoaderOptions loadingConfig)
Create with options
|
Constructor(String theRoot)
Create Constructor for a class which does not have to be in the classpath or for a definition
from a Spring ApplicationContext.
|
Constructor(String theRoot,
LoaderOptions loadingConfig)
Create
|
Constructor(TypeDescription theRoot)
Deprecated.
use options
|
Constructor(TypeDescription theRoot,
Collection<TypeDescription> moreTDs,
LoaderOptions loadingConfig)
Create with all possible arguments
|
Constructor(TypeDescription theRoot,
LoaderOptions loadingConfig)
Create
|
| Modifier and Type | Method and Description |
|---|---|
protected Class<?> |
getClassForName(String name) |
protected Class<?> |
getClassForNode(Node node) |
constructMapping2ndStep, constructSet2ndStep, createLongOrBigInteger, flattenMapping, flattenMapping, processDuplicateKeys, processDuplicateKeysaddTypeDescription, checkData, constructArray, constructArrayStep2, constructDocument, constructMapping, constructObject, constructObjectNoCheck, constructScalar, constructSequence, constructSequenceStep2, constructSet, constructSet, createArray, createDefaultList, createDefaultMap, createDefaultSet, finalizeConstruction, getConstructor, getData, getPropertyUtils, getSingleData, isAllowDuplicateKeys, isEnumCaseSensitive, isExplicitPropertyUtils, isWrappedToRootException, newInstance, newInstance, newInstance, newList, newMap, newSet, postponeMapFilling, postponeSetFilling, setAllowDuplicateKeys, setComposer, setEnumCaseSensitive, setPropertyUtils, setWrappedToRootException@Deprecated public Constructor()
public Constructor(LoaderOptions loadingConfig)
loadingConfig - - configpublic Constructor(Class<? extends Object> theRoot)
theRoot - - the class (usually JavaBean) to be constructedpublic Constructor(Class<? extends Object> theRoot, LoaderOptions loadingConfig)
theRoot - - the class to create (to be the root of the YAML document)loadingConfig - - options@Deprecated public Constructor(TypeDescription theRoot)
theRoot - - the root class to createpublic Constructor(TypeDescription theRoot, LoaderOptions loadingConfig)
theRoot - - the root class to createloadingConfig - optionspublic Constructor(TypeDescription theRoot, Collection<TypeDescription> moreTDs, LoaderOptions loadingConfig)
theRoot - - the class (usually JavaBean) to be constructedmoreTDs - - collection of classes used by the root classloadingConfig - - configurationpublic Constructor(String theRoot) throws ClassNotFoundException
theRoot - fully qualified class name of the root class (usually JavaBean)ClassNotFoundException - if it cannot be loaded by the classloaderpublic Constructor(String theRoot, LoaderOptions loadingConfig) throws ClassNotFoundException
theRoot - - the main class to crateloadingConfig - - optionsClassNotFoundException - if something goes wrongprotected Class<?> getClassForName(String name) throws ClassNotFoundException
ClassNotFoundExceptionCopyright © 2008–2022. All rights reserved.