users@jaxb2-commons.java.net

fluent_api should honour annotate plugin's setter-parameter annotations

From: <Andy.Coates_at_rbs.com>
Date: Wed, 1 Apr 2015 11:40:34 +0100

Hey all,

I'm not sure how to raise a feature request with our fluent_api, so I'm mailing. I'd like to request that the fluent 'withXXX' methods added to the generated classes should honour any setter-parameter annotations

e.g.

<complexType name="SomeType">
    <sequence>
        <element name="key" type="string" nillable="true">
            <annotation>
                <appinfo>
                    <annox:annotate target="setter-parameter">@javax.annotation.Nullable</annox:annotate>
                    <annox:annotate target="getter">@javax.annotation.Nullable</annox:annotate>
                </appinfo>
            </annotation>
        </element>
   </sequence>
</complexType>

Currently generates:


public class SomeType {

    ...

    public void setKey(@Nullable String value) {...}



    public SomeType withKey(String value) {...}

}


It would be really useful if the fluent_api plugin added the @Nullable annotation to the 'withKey's parameter.

If I need to raise this some other way, then please let me know...

Thanks,

Andy Coates
Consultant
Markets & International Banking
RBS
250 Bishopsgate, London, EC2M 4AA, GB
Office: +44 20 76785110


***********************************************************************************
The Royal Bank of Scotland plc. Registered in Scotland No 90312.
Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB.
Authorised by the Prudential Regulation Authority and regulated
by the Financial Conduct Authority and Prudential Regulation Authority.
The Royal Bank of Scotland N.V. is authorised and regulated by the
De Nederlandsche Bank and has its seat at Amsterdam, the
Netherlands, and is registered in the Commercial Register under
number 33002587. Registered Office: Gustav Mahlerlaan 350,
Amsterdam, The Netherlands. The Royal Bank of Scotland N.V. and
The Royal Bank of Scotland plc are authorised to act as agent for each
other in certain jurisdictions.
  
This e-mail message is confidential and for use by the addressee only.
If the message is received by anyone other than the addressee, please
return the message to the sender by replying to it and then delete the
message from your computer. Internet e-mails are not necessarily
secure. The Royal Bank of Scotland plc and The Royal Bank of Scotland
N.V. including its affiliates ("RBS group") does not accept responsibility
for changes made to this message after it was sent. For the protection
of RBS group and its clients and customers, and in compliance with
regulatory requirements, the contents of both incoming and outgoing
e-mail communications, which could include proprietary information and
Non-Public Personal Information, may be read by authorised persons
within RBS group other than the intended recipient(s).

Whilst all reasonable care has been taken to avoid the transmission of
viruses, it is the responsibility of the recipient to ensure that the onward
transmission, opening or use of this message and any attachments will
not adversely affect its systems or data. No responsibility is accepted
by the RBS group in this regard and the recipient should carry out such
virus and other checks as it considers appropriate.

Visit our website at www.rbs.com
***********************************************************************************