[Fwd: JavaDoc for SimpleTypes/enumeration]

View: New views
2 Messages — Rating Filter:   Alert me  

[Fwd: JavaDoc for SimpleTypes/enumeration]

by Potociar Marek :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I am forwarding this unanswered issue on behalf of a Metro user. Could
you please respond?

Thank you,
Marek

-------- Original Message --------
Subject: JavaDoc for SimpleTypes/enumeration
Date: Thu, 20 Sep 2007 14:13:25 +0200
From: Ingo Siebert <ingo.siebert@...>
Reply-To: users@...
To: users@...



Hi,

i have a XSD which contains a XML simple type.

All enumerations elements are containing an annotation/documentation
element which describes the enum value.
But the generated enum (WSImport) does not include the documentation for
the enum values.

Is there a way to get javadoc for the enumeration values?
If not, is it possible to include this feature in a future version of
WSImport(JAX-WS)?


<schema xmlns="http://www.w3.org/2001/XMLSchema"
  elementFormDefault="qualified"  attributeFormDefault="qualified"
  targetNamespace="http://faults.wsdl.eim.cas.de"
  xmlns:faults="http://faults.wsdl.eim.cas.de"
  xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"  jaxb:version="2.0">

  <simpleType  name="ExceptionCode">
    <restriction  base="string">
      <enumeration  value="DATA_LAYER">
        <annotation>
          <documentation>
            A javadoc text  which  should  be  in  enumeration.
          </documentation>
        </annotation>
      </enumeration>
      <enumeration  ...

Cheers,

Ingo

--
CRM  Products  Development  -  EIM

CAS  Software  AG
Well  informed.  Always  and  everywhere.
www.cas.de

CAS  Software  AG  -  Wilhelm-Schickard-Straße  10-12  -  76131
Karlsruhe  -  Telefon  +49  721  9638-0  -  www.cas.de  -  Impressum
und  AGB
Vorstand:  Martin  Hubschneider  (Vorsitz)  -  Ludwig  Neer  -  Frank
Widmayer
Aufsichtsrat:  Dr.  Dr.  Jörg  Maurer  (Vorsitz)  -  Prof.  Dr.  Peter
Lockemann  -  Dr.  habil.  Karl  Schlagenhauf  Amtsgericht  Mannheim  -
 Handelsregister-Nr.:  HRB  108751  -  UID  Nr.:  DE143593148

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: [Fwd: JavaDoc for SimpleTypes/enumeration]

by kohsuke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Done. Thanks for the ping.

Marek Potociar wrote:

> Hi,
> I am forwarding this unanswered issue on behalf of a Metro user. Could
> you please respond?
>
> Thank you,
> Marek
>
> -------- Original Message --------
> Subject: JavaDoc for SimpleTypes/enumeration
> Date: Thu, 20 Sep 2007 14:13:25 +0200
> From: Ingo Siebert <ingo.siebert@...>
> Reply-To: users@...
> To: users@...
>
>
>
> Hi,
>
> i have a XSD which contains a XML simple type.
>
> All enumerations elements are containing an annotation/documentation
> element which describes the enum value.
> But the generated enum (WSImport) does not include the documentation for
> the enum values.
>
> Is there a way to get javadoc for the enumeration values?
> If not, is it possible to include this feature in a future version of
> WSImport(JAX-WS)?
>
>
> <schema xmlns="http://www.w3.org/2001/XMLSchema"
>   elementFormDefault="qualified"  attributeFormDefault="qualified"
>   targetNamespace="http://faults.wsdl.eim.cas.de"
>   xmlns:faults="http://faults.wsdl.eim.cas.de"
>   xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"  jaxb:version="2.0">
>
>   <simpleType  name="ExceptionCode">
>     <restriction  base="string">
>       <enumeration  value="DATA_LAYER">
>         <annotation>
>           <documentation>
>             A javadoc text  which  should  be  in  enumeration.
>           </documentation>
>         </annotation>
>       </enumeration>
>       <enumeration  ...
>
> Cheers,
>
> Ingo
>
> --
> CRM  Products  Development  -  EIM
>
> CAS  Software  AG
> Well  informed.  Always  and  everywhere.
> www.cas.de
>
> CAS  Software  AG  -  Wilhelm-Schickard-Stra?e  10-12  -  76131
> Karlsruhe  -  Telefon  +49  721  9638-0  -  www.cas.de  -  Impressum
> und  AGB
> Vorstand:  Martin  Hubschneider  (Vorsitz)  -  Ludwig  Neer  -  Frank
> Widmayer
> Aufsichtsrat:  Dr.  Dr.  J?rg  Maurer  (Vorsitz)  -  Prof.  Dr.  Peter
> Lockemann  -  Dr.  habil.  Karl  Schlagenhauf  Amtsgericht  Mannheim  -
>  Handelsregister-Nr.:  HRB  108751  -  UID  Nr.:  DE143593148
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>
>

--
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi@...


smime.p7s (4K) Download Attachment
LightInTheBox - Buy quality products at wholesale price!