|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.yaml.snakeyaml.constructor.BaseConstructor
org.yaml.snakeyaml.constructor.SafeConstructor
org.yaml.snakeyaml.constructor.Constructor
public class Constructor
Construct a custom Java instance.
Nested Class Summary | |
---|---|
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. |
Field Summary |
---|
Fields inherited from class org.yaml.snakeyaml.constructor.SafeConstructor |
---|
undefinedConstructor |
Fields inherited from class org.yaml.snakeyaml.constructor.BaseConstructor |
---|
rootTag, yamlClassConstructors, yamlConstructors, yamlMultiConstructors |
Constructor Summary | |
---|---|
Constructor()
|
|
Constructor(java.lang.Class<? extends java.lang.Object> theRoot)
Create Constructor for the specified class as the root. |
|
Constructor(java.lang.String theRoot)
Create Constructor for a class which does not have to be in the classpath or for a definition from a Spring ApplicationContext. |
Method Summary | |
---|---|
TypeDescription |
addTypeDescription(TypeDescription definition)
Make YAML aware how to parse a custom Class. |
protected java.lang.Class<?> |
getClassForName(java.lang.String name)
|
protected java.lang.Class<?> |
getClassForNode(Node node)
|
Methods inherited from class org.yaml.snakeyaml.constructor.SafeConstructor |
---|
constructMapping2ndStep, constructSet2ndStep, flattenMapping |
Methods inherited from class org.yaml.snakeyaml.constructor.BaseConstructor |
---|
checkData, constructArray, constructArrayStep2, constructMapping, constructObject, constructScalar, constructSequence, constructSequenceStep2, constructSet, constructSet, createArray, createDefaultList, createDefaultMap, createDefaultSet, createDefaultSet, getConstructor, getData, getPropertyUtils, getSingleData, isExplicitPropertyUtils, setComposer, setPropertyUtils |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Constructor()
public Constructor(java.lang.Class<? extends java.lang.Object> theRoot)
theRoot
- - the class (usually JavaBean) to be constructedpublic Constructor(java.lang.String theRoot) throws java.lang.ClassNotFoundException
theRoot
- fully qualified class name of the root class (usually
JavaBean)
java.lang.ClassNotFoundException
Method Detail |
---|
public TypeDescription addTypeDescription(TypeDescription definition)
definition
- to be added to the Constructor
protected java.lang.Class<?> getClassForNode(Node node)
protected java.lang.Class<?> getClassForName(java.lang.String name) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |