| 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. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | Constructor(Class<? extends Object>
- the class to create (to be the root of the YAML document) theRoot, LoaderOptions - options loadingConfig)Create |
| public | Constructor(TypeDescription
- the root class to create theRoot, LoaderOptions options loadingConfig)Create |
| public | Constructor(TypeDescription
- the class (usually JavaBean) to be constructed theRoot, Collection<TypeDescription> - collection of classes used by the root class moreTDs, LoaderOptions - configuration loadingConfig)Create with all possible arguments |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| private static Class | |
| protected Class | |
| protected Class |
| Constructor | back to summary |
|---|---|
| public Constructor(LoaderOptions loadingConfig) Create with options
| |
| Constructor | back to summary |
|---|---|
| public Constructor(Class<? extends Object> theRoot, LoaderOptions loadingConfig) Create
| |
| Constructor | back to summary |
|---|---|
| public Constructor(TypeDescription theRoot, LoaderOptions loadingConfig) Create
| |
| Constructor | back to summary |
|---|---|
| public Constructor(TypeDescription theRoot, Collection<TypeDescription> moreTDs, LoaderOptions loadingConfig) Create with all possible arguments
| |
| Constructor | back to summary |
|---|---|
| public Constructor(String theRoot, LoaderOptions loadingConfig) throws ClassNotFoundException Create
| |
| check | back to summary |
|---|---|
| private static String check(String s) | |
| checkRoot | back to summary |
|---|---|
| private static Class Ugly Java way to check the argument in the constructor | |
| getClassForName | back to summary |
|---|---|
| protected Class | |
| getClassForNode | back to summary |
|---|---|
| protected Class | |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: constructed JavaBeannode where the keys are property names (they can only be node)Strings)
and values are objects to be createdImplements org. |
| public void | construct2ndStep(Node
composed Node node, Object the instance constructed earlier by object)construct(Node node) for the
provided NodeImplements org. |
| protected Object | |
| protected Property | |
| private Object |
| ConstructMapping | back to summary |
|---|---|
| protected ConstructMapping() | |
| construct | back to summary |
|---|---|
| public Object construct(Node node) Implements org. Construct JavaBean. If type safe collections are used please look at
| |
| construct2ndStep | back to summary |
|---|---|
| public void construct2ndStep(Node node, Object object) Implements org. Doc from org. Apply the second step when constructing recursive structures. Because the instance is already created it can assign a reference to itself.
| |
| constructJavaBean2ndStep | back to summary |
|---|---|
| protected Object constructJavaBean2ndStep(MappingNode node, Object object) | |
| getProperty | back to summary |
|---|---|
| protected Property getProperty(Class<? extends Object> type, String name) | |
| newInstance | back to summary |
|---|---|
| private Object newInstance(TypeDescription memberDescription, String propertyName, Node node) | |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public Object | construct(Node
composed Node nnode)Implements org. |
| private Object |
| ConstructScalar | back to summary |
|---|---|
| protected ConstructScalar() | |
| construct | back to summary |
|---|---|
| public Object construct(Node nnode) Implements org. Doc from org. Construct a Java instance with all the properties injected when it is possible. | |
| constructStandardJavaInstance | back to summary |
|---|---|
private Object constructStandardJavaInstance(Class<T> type, ScalarNode node)
| |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public Object | construct(Node
composed Node node)Implements org. |
| public void | construct2ndStep(Node
composed Node node, Object the instance constructed earlier by object)construct(Node node) for the
provided NodeImplements org. |
| private Class |
| ConstructSequence | back to summary |
|---|---|
| protected ConstructSequence() | |
| construct | back to summary |
|---|---|
| public Object construct(Node node) Implements org. Doc from org. Construct a Java instance with all the properties injected when it is possible.
| |
| construct2ndStep | back to summary |
|---|---|
| public void construct2ndStep(Node node, Object object) Implements org. Doc from org. Apply the second step when constructing recursive structures. Because the instance is already created it can assign a reference to itself.
| |
| wrapIfPrimitive | back to summary |
|---|---|
| private Class | |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public Object | construct(Node
composed Node node)Implements org. |
| public void | construct2ndStep(Node
composed Node node, Object the instance constructed earlier by object)construct(Node node) for the
provided NodeImplements org. |
| private Construct |
| ConstructYamlObject | back to summary |
|---|---|
| protected ConstructYamlObject() | |
| construct | back to summary |
|---|---|
| public Object construct(Node node) Implements org. Doc from org. Construct a Java instance with all the properties injected when it is possible. | |
| construct2ndStep | back to summary |
|---|---|
| public void construct2ndStep(Node node, Object object) Implements org. Doc from org. Apply the second step when constructing recursive structures. Because the instance is already created it can assign a reference to itself. | |
| getConstructor | back to summary |
|---|---|
| private Construct getConstructor(Node node) | |