EsotericSoftware / EsotericSoftware/yamlbeans

[Enhancement] Make setBeanProperties to not depend on it field type.

Open
#53 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
568
Forks
146
PR merge metrics
No merged PRs in 30d

Description

The field dependency for the bean property way is great to allow **making the bean transient (it isn't currently working, and I wonder if it is intended to)** but with this it is impossible to make some tricks as set a String and then, in the getter/setter make wathever magic to de/serialize de field type. ie:

```
!thing
template: "t1"
```

and after in code:

```
TemplateType template;

String getTemplate() {
return template.getName();
}

void setTemplate(String template) {
this.template = getTemplateForName(template);
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.