users@jaxb.java.net

Re: List handling

From: Malachi de AElfweald <malachi_at_EOTI.ORG>
Date: Fri, 28 Mar 2003 11:46:43 -0700

On Fri, 28 Mar 2003 10:44:29 -0800, Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM> wrote:
>> Now, I realize that being able to override the method to, say
>> 'getDirectories()' isn't really doable.
>
>Why? Isn't it just a matter of:
>
> <xs:element name="foo" type="xs:NMTOKENS">
> <xs:annotation><xs:appinfo>
> <jaxb:property name="Foos" />
> </xs:appinfo></xs:annotation>
> </xs:element>
>
>or are you saying that this much typing is not practical?

I am not sure I follow. I tried the following, but it didn't change anything.... the method is still called getAttribute()....

 <xsd:complexType name="attributeIntf">
  <xsd:annotation>
   <xsd:appinfo>
    <jaxb:class name="attribute"/>
    <jaxb:property name="attributeList"/>
   </xsd:appinfo>
  </xsd:annotation>
  <xsd:choice>
   <xsd:element name="value" type="valueIntf" minOccurs="0" maxOccurs="unbounded"/>
   <xsd:element name="data" type="dataIntf"/>
  </xsd:choice>
  <xsd:attribute name="id" type="xsd:string"/>
 </xsd:complexType>