Add DataObject default methods (MDSAL-470)

[MDSAL-479] Add DataObject.bindingToString() Created: 04/Sep/19  Updated: 19/Jul/20  Resolved: 19/Jul/20

Status: Resolved
Project: mdsal
Component/s: Binding codegen
Affects Version/s: None
Fix Version/s: 7.0.0

Type: Sub-task Priority: Medium
Reporter: Robert Varga Assignee: Ilya Igushev
Resolution: Done Votes: 0
Labels: pt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

mdsal-binding-java-api-generator's InterfaceTemplate needs to generate a

interface Foo extends DataObject {
     static @NonNull String bindingToString(final @NonNull Foo obj) {
         // ...
     }
}

method from the contents of generated builder implementation objects. Those need to defer to bindingToString() for the actual computation. The method needs to be static, so it can force its argument to also implement AugmentationHolder.


Generated at Wed Feb 07 20:09:54 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.