CompactConstructor
, CustomClassLoaderConstructor
public class Constructor extends SafeConstructor
Modifier and Type | Class | 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.ConstructYamlTimestamp
composer, rootTag, typeDefinitions, typeTags, yamlClassConstructors, yamlConstructors, yamlMultiConstructors
undefinedConstructor
Constructor | Description |
---|---|
Constructor() |
|
Constructor(Class<? extends Object> theRoot) |
Create Constructor for the specified class as the root.
|
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(TypeDescription theRoot) |
|
Constructor(TypeDescription theRoot,
Collection<TypeDescription> moreTDs) |
Modifier and Type | Method | Description |
---|---|---|
protected Class<?> |
getClassForName(String name) |
|
protected Class<?> |
getClassForNode(Node node) |
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
constructMapping2ndStep, constructSet2ndStep, flattenMapping, processDuplicateKeys
public Constructor()
public Constructor(Class<? extends Object> theRoot)
theRoot
- - the class (usually JavaBean) to be constructedpublic Constructor(TypeDescription theRoot)
public Constructor(TypeDescription theRoot, Collection<TypeDescription> moreTDs)
public Constructor(String theRoot) throws ClassNotFoundException
theRoot
- fully qualified class name of the root class (usually
JavaBean)ClassNotFoundException
- if cannot be loaded by the classloaderprotected Class<?> getClassForName(String name) throws ClassNotFoundException
ClassNotFoundException
Copyright © 2008–2018. All rights reserved.