highsource / highsource/jaxb-tools

Inheritance Plugin Question

Open
#513 6 comments 0 reactions 0 assignees View on GitHub
question xjc-plugins
Dominant language
Java
Stars
465
Forks
105
PR merge metrics
No merged PRs in 30d

Description

I try to let two generated classes implement their own interface.
Example
Class A should implement IA
Class B should implement IB

This is working so far (wiht XInheritance plugin) as long as class A and B are implementing their interfaces.
But the interfaces are not used:
e.g. the object factory returns on createA and createB methods A / B classes instead of IA and IB.
Even worse:
If class A holds a List of type B then the created get method is
public List getBs instead of public List getBs.

Is there a way to achieve this?
Or is XInheritance in general only focusing on the class specified in the bindings file and not taken care of the references to the given class?

For me and my current situation: I can work around this because B is not necessarily forced to implement IB.
But it would be nicer to work on interfaces everywhere possilbe so I wanted to ask and clarify.
If this is not possible at the moment then just tell me and close the issue.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.