| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| protected Composer | composer
No graph creator |
| pack-priv final Map | |
| private boolean | |
| private boolean | |
| protected LoaderOptions | loadingConfig
options |
| private final ArrayList | |
| protected static final Object | NOT_INSTANTIATED_OBJECT
An instance returned by newInstance methods when instantiation has not been performed. |
| private PropertyUtils | |
| private final Set | |
| protected Tag | rootTag
the tag for the root node |
| private final ArrayList | |
| protected final Map | typeDefinitions
Mapping from a class to its manager |
| protected final Map | typeTags
register classes for tags |
| private boolean | |
| protected final Map | yamlClassConstructors
It maps the node kind to the Construct implementation. |
| protected final Map | yamlConstructors
It maps the (explicit or implicit) tag to the Construct implementation. |
| protected final Map | yamlMultiConstructors
It maps the (explicit or implicit) tag to the Construct implementation. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public TypeDescription | Returns: the previous value associated withdefinition, or null if
there was no mapping for definition.to be added to the Constructor definition)Make YAML aware how to parse a custom Class. |
| public boolean | Returns: true when there are more YAML documents in the streamCheck if more documents available |
| protected Object | |
| protected Object | Returns: filled array- the source node, Object - the destination array)Fill array from node |
| protected final Object | |
| protected Map | |
| protected void | constructMapping2ndStep(MappingNode
- source node, Map<Object, Object> - map to fill mapping)Fill provided Map with constructed data |
| protected Object | Returns: Java instanceNode to be constructed node)Construct object from the specified Node. |
| protected Object | Returns: constructed instance- the source node)Construct object from the specified Node without the check if it was already created. |
| protected String | |
| protected List | Returns: filled List- the source node)Create List and fill it with data |
| protected void | constructSequenceStep2(SequenceNode
- the source node, Collection<Object> - data to fill collection)Fill the provided collection with the data from the Node |
| protected Set | |
| protected Set | |
| protected void | |
| protected Object | |
| protected List | |
| protected Map | |
| protected Set | |
| private void | |
| protected Object | |
| protected Construct | Returns: Construct implementation for the specified nodeNode to construct an instance fromGet the constructor to construct the Node. |
| public Object | |
| public LoaderOptions | |
| public final PropertyUtils | |
| public Object | Returns: constructed instancethe class of the instance being created type)Ensure that the stream contains a single document and construct it |
| public boolean | |
| public boolean | |
| public final boolean | |
| public boolean | |
| protected Object | |
| protected final Object | |
| protected Object | Returns: - a new object created fornode.getType() by using corresponding
TypeDescription.newInstance or default constructor. - NOT_INSTANTIATED_OBJECT
in case no object has been createdexpected ancestor of the ancestor, Node node.getType()for which to create a corresponding java object node, boolean should default constructor to be tried when there is no corresponding
tryDefault)TypeDescription or TypeDescription.newInstance(node) returns
null.Tries to create a new object for the node. |
| protected List | |
| protected Map | |
| protected Set | |
| protected void | |
| protected void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| allowDuplicateKeys | back to summary |
|---|---|
| private boolean allowDuplicateKeys | |
| composer | back to summary |
|---|---|
| protected Composer composer No graph creator | |
| constructedObjects | back to summary |
|---|---|
| pack-priv final Map<Node, Object> constructedObjects | |
| enumCaseSensitive | back to summary |
|---|---|
| private boolean enumCaseSensitive | |
| explicitPropertyUtils | back to summary |
|---|---|
| private boolean explicitPropertyUtils | |
| loadingConfig | back to summary |
|---|---|
| protected LoaderOptions loadingConfig options | |
| maps2fill | back to summary |
|---|---|
| private final ArrayList<BaseConstructor. | |
| NOT_INSTANTIATED_OBJECT | back to summary |
|---|---|
| protected static final Object NOT_INSTANTIATED_OBJECT An instance returned by newInstance methods when instantiation has not been performed. | |
| propertyUtils | back to summary |
|---|---|
| private PropertyUtils propertyUtils | |
| recursiveObjects | back to summary |
|---|---|
| private final Set<Node> recursiveObjects | |
| rootTag | back to summary |
|---|---|
| protected Tag rootTag the tag for the root node | |
| sets2fill | back to summary |
|---|---|
| private final ArrayList<BaseConstructor. | |
| typeDefinitions | back to summary |
|---|---|
| protected final Map<Class<? extends Object>, TypeDescription> typeDefinitions Mapping from a class to its manager | |
| typeTags | back to summary |
|---|---|
| protected final Map<Tag, Class<? extends Object>> typeTags register classes for tags | |
| wrappedToRootException | back to summary |
|---|---|
| private boolean wrappedToRootException | |
| yamlClassConstructors | back to summary |
|---|---|
| protected final Map<NodeId, Construct> yamlClassConstructors It maps the node kind to the Construct implementation. When the runtime class is known then the implicit tag is ignored. | |
| yamlConstructors | back to summary |
|---|---|
| protected final Map<Tag, Construct> yamlConstructors It maps the (explicit or implicit) tag to the Construct implementation. It is used: 1) explicit tag - if present. 2) implicit tag - when the runtime class of the instance is unknown (the node has the Object.class) 3) when nothing else is found the Construct for the key 'null' is chosen (which is ConstructYamlObject) | |
| yamlMultiConstructors | back to summary |
|---|---|
| protected final Map<String, Construct> yamlMultiConstructors It maps the (explicit or implicit) tag to the Construct implementation. It is used when no exact match found. The key in the Map is checked if it starts the class name | |
| BaseConstructor | back to summary |
|---|---|
| public BaseConstructor(LoaderOptions loadingConfig) Create
| |
| addTypeDescription | back to summary |
|---|---|
| public TypeDescription addTypeDescription(TypeDescription definition) Make YAML aware how to parse a custom Class. If there is no root Class assigned in constructor then the 'root' property of this definition is respected.
| |
| checkData | back to summary |
|---|---|
| public boolean checkData() Check if more documents available
| |
| constructArray | back to summary |
|---|---|
| protected Object constructArray(SequenceNode node) Create array from sequence
| |
| constructArrayStep2 | back to summary |
|---|---|
| protected Object constructArrayStep2(SequenceNode node, Object array) Fill array from node
| |
| constructDocument | back to summary |
|---|---|
| protected final Object constructDocument(Node node) Construct complete YAML document. Call the second step in case of recursive structures. At the end cleans all the state. | |
| constructMapping | back to summary |
|---|---|
| protected Map Create Map from mapping
| |
| constructMapping2ndStep | back to summary |
|---|---|
| protected void constructMapping2ndStep(MappingNode node, Map<Object, Object> mapping) Fill provided Map with constructed data
| |
| constructObject | back to summary |
|---|---|
| protected Object constructObject(Node node) Construct object from the specified Node. Return existing instance if the node is already constructed. | |
| constructObjectNoCheck | back to summary |
|---|---|
| protected Object constructObjectNoCheck(Node node) Construct object from the specified Node without the check if it was already created. | |
| constructScalar | back to summary |
|---|---|
| protected String constructScalar(ScalarNode node) Create string from scalar
| |
| constructSequence | back to summary |
|---|---|
| protected List Create List and fill it with data
| |
| constructSequenceStep2 | back to summary |
|---|---|
| protected void constructSequenceStep2(SequenceNode node, Collection<Object> collection) Fill the provided collection with the data from the Node
| |
| constructSet | back to summary |
|---|---|
| protected Set create Set from sequence
| |
| constructSet | back to summary |
|---|---|
| protected Set Create Set from mapping
| |
| constructSet2ndStep | back to summary |
|---|---|
| protected void constructSet2ndStep(MappingNode node, Set<Object> set) | |
| createArray | back to summary |
|---|---|
| protected Object createArray(Class<?> type, int size) | |
| createDefaultList | back to summary |
|---|---|
| protected List | |
| createDefaultMap | back to summary |
|---|---|
| protected Map | |
| createDefaultSet | back to summary |
|---|---|
| protected Set | |
| fillRecursive | back to summary |
|---|---|
| private void fillRecursive() Fill the recursive structures and clean the internal collections | |
| finalizeConstruction | back to summary |
|---|---|
| protected Object finalizeConstruction(Node node, Object data) | |
| getConstructor | back to summary |
|---|---|
| protected Construct getConstructor(Node node) Get the constructor to construct the Node. For implicit tags if the runtime class is known a dedicated Construct implementation is used. Otherwise, the constructor is chosen by the tag. | |
| getData | back to summary |
|---|---|
| public Object getData() throws NoSuchElementException Construct and return the next document
| |
| getLoadingConfig | back to summary |
|---|---|
| public LoaderOptions getLoadingConfig() | |
| getPropertyUtils | back to summary |
|---|---|
| public final PropertyUtils getPropertyUtils() | |
| getSingleData | back to summary |
|---|---|
| public Object getSingleData(Class<?> type) Ensure that the stream contains a single document and construct it
| |
| isAllowDuplicateKeys | back to summary |
|---|---|
| public boolean isAllowDuplicateKeys() | |
| isEnumCaseSensitive | back to summary |
|---|---|
| public boolean isEnumCaseSensitive() | |
| isExplicitPropertyUtils | back to summary |
|---|---|
| public final boolean isExplicitPropertyUtils() | |
| isWrappedToRootException | back to summary |
|---|---|
| public boolean isWrappedToRootException() | |
| newInstance | back to summary |
|---|---|
| protected Object newInstance(Node node) | |
| newInstance | back to summary |
|---|---|
| protected final Object newInstance(Class<?> ancestor, Node node) | |
| newInstance | back to summary |
|---|---|
| protected Object newInstance(Class<?> ancestor, Node node, boolean tryDefault) Tries to create a new object for the node.
| |
| newList | back to summary |
|---|---|
protected List
| |
| newMap | back to summary |
|---|---|
protected Map
| |
| newSet | back to summary |
|---|---|
protected Set
| |
| postponeMapFilling | back to summary |
|---|---|
| protected void postponeMapFilling(Map<Object, Object> mapping, Object key, Object value) | |
| postponeSetFilling | back to summary |
|---|---|
| protected void postponeSetFilling(Set<Object> set, Object key) | |
| setAllowDuplicateKeys | back to summary |
|---|---|
| public void setAllowDuplicateKeys(boolean allowDuplicateKeys) | |
| setComposer | back to summary |
|---|---|
| public void setComposer(Composer composer) | |
| setEnumCaseSensitive | back to summary |
|---|---|
| public void setEnumCaseSensitive(boolean enumCaseSensitive) | |
| setPropertyUtils | back to summary |
|---|---|
| public void setPropertyUtils(PropertyUtils propertyUtils) | |
| setWrappedToRootException | back to summary |
|---|---|
| public void setWrappedToRootException(boolean wrappedToRootException) | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public T | |
| public K |
| RecursiveTuple | back to summary |
|---|---|
| public RecursiveTuple(T _1, K _2) | |