You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by "Jochen Wiedmann (JIRA)" <ja...@ws.apache.org> on 2010/07/12 10:09:49 UTC

[jira] Resolved: (JAXME-105) can't generate get list method with element has maxOccurs="unbounded"

     [ https://issues.apache.org/jira/browse/JAXME-105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jochen Wiedmann resolved JAXME-105.
-----------------------------------

      Assignee: Jochen Wiedmann
    Resolution: Invalid

I assume, that you mean "no corresponding set method generated"? If so, that's perfectly as requested by the JAXB spec, thus an intentional behaviour.

To set your elements, use

    object.getAddress().clear();
    object.getAddress().addAll(myAddresses);


> can't generate get list method with element has maxOccurs="unbounded"
> ---------------------------------------------------------------------
>
>                 Key: JAXME-105
>                 URL: https://issues.apache.org/jira/browse/JAXME-105
>             Project: JaxMe
>          Issue Type: Bug
>          Components: JaxMe Core
>    Affects Versions: current (nightly)
>         Environment: wiindow xp, j2se 1.6
>            Reporter: chan tsz yeung
>            Assignee: Jochen Wiedmann
>             Fix For: current (nightly)
>
>
> Dear all,
> I have a xsd file. One of the element contains maxOccurs="unbounded" tag.
> However, after running ant with default build.xml.
> The generated interface file only contains "public java.util.List getAddress();" function but no corresponding get method generated.
> Could you please advise? Thanks.
> Stephen

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org