[MDSAL-530] Add ScalarTypeObject Created: 10/Mar/20 Updated: 19/Apr/20 Resolved: 19/Apr/20 |
|
| Status: | Resolved |
| Project: | mdsal |
| Component/s: | Binding codegen |
| Affects Version/s: | None |
| Fix Version/s: | 6.0.0 |
| Type: | Improvement | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
We are currently tagging all encapsulated values with TypeObject, which is okay enough for the uses we have. Unfortunately most of these actually expose a getValue() method, which is guaranteed to return a non-null value which is encapsulated by the object. In order to make these types more usable in data manipulation we really need to introduce a common interface these are implementing, so that we can properly express their classes: public interface ScalarTypeObject<T> extends TypeObject { @NonNull T getValue(); } would capture the relatiionship correctly.
|
| Comments |
| Comment by Robert Varga [ 24/Mar/20 ] |
|
We also need to use this tagging interface and properly-separated Java template. |