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 <jo...@gmail.com> on 2005/07/21 10:23:28 UTC
Re: Little problem with JaxMe2!
Harald,
first of all, please be so kind not to direct JaxMe related questions
to me, but to the mailing list jaxme-dev@ws.apache.org, which I CC.
Using the mailing list lets other participate, both by reading and
replying. Besides, it cares for archiving.
Btw, archiving: Please read
http://mail-archives.apache.org/mod_mbox/ws-jaxme-dev/200507.mbox/%3ce75283b105071122298dfb11b@mail.gmail.com%3e
where I replied the basically same question by another user in the past.
Jochen
On 7/21/05, Harald_Moitzi@uniquare.com <Ha...@uniquare.com> wrote:
>
> Hallo Mr. Wiedmann!
>
> I am just playing around with JaxMe2 to prepare for a larger project.
> I come to you, because of your post on
> http://issues.apache.org/jira/browse/JAXME-28
> about the JaxMe2-Problem "Nested Groups are unsupported >1 multiplicity".
>
> I have a similar problem:
> When i have a xml-element with mulitplicity >1 ("maxoccurs = unbounded")
> JaxMe2 creates a getMethod for this element but not a addMethod in the
> created Java-Bean-structure.
>
>
> Example:
>
>
> the shiporder.xsd, which describes a shiporder.
>
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <xs:schema
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> targetNamespace="http://uniquare.com/shiporder">
>
> <xs:element name="shiporder">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="orderperson" type="xs:string"/>
>
> <xs:element name="item" maxOccurs="unbounded">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="title" type="xs:string"/>
> <xs:element name="note" type="xs:string" minOccurs="0"/>
> <xs:element name="quantity" type="xs:positiveInteger"/>
> <xs:element name="price" type="xs:decimal"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
>
> </xs:schema>
>
>
> The JavaBean-Structur:
>
>
> package shiporder;
>
>
> public interface ShiporderType {
>
> public interface ItemType {
> ...
> ...
> }
>
> public java.lang.String getOrderperson();
>
> public void setOrderperson(java.lang.String pOrderperson);
>
> public java.util.List getItem();
>
> }
> --------------------------------------------------
>
> Ok as you see, i can get the List of items with the getItem()-Method.
> But i am not able to add an item into the list. The addItem()-Method is
> missing!!!
>
> Is this a bug or do i make something wrong?
>
> Please help me and sorry for my mistakes in the E-Mail (coming from
> Austria).
>
>
> Hoping on prompt reply
> Harald Moitzi
>
>
>
>
--
What are the first steps on the moon, compared to your child's?
---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org