[ 
https://issues.apache.org/jira/browse/CAMEL-8334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14328677#comment-14328677
 ] 

ASF GitHub Bot commented on CAMEL-8334:
---------------------------------------

GitHub user nkukhar opened a pull request:

    https://github.com/apache/camel/pull/401

    [CAMEL-8334] Added logic to inject documentation to base types.

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/nkukhar/camel CAMEL-8334

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/401.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #401
    
----
commit bc1b573262bdea451bbe30706a7e35c0df1424e1
Author: nkukhar <[email protected]>
Date:   2015-02-20T08:21:54Z

    Added logic to inject documentation to base types.

----


> EIP documentation maven plugin should aslo inject documentation to 
> abstract/base types
> --------------------------------------------------------------------------------------
>
>                 Key: CAMEL-8334
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8334
>             Project: Camel
>          Issue Type: Improvement
>          Components: build system, camel-blueprint, camel-spring, tooling
>            Reporter: Nazarii Kukhar
>             Fix For: 2.15.0
>
>
> Currently maven plugin _camel-eip-documentation-enricher-maven-plugin_ 
> injects ducumentation to attributest of top level elements. It would be nice 
> if it could also inject documentation to attributes of base/abstract 
> elements. 
> Example:
> It's a snippet on top level _logDefinition_ type with injected documentation.
> {code:xml}
> <xs:complexType name="logDefinition">
>     <xs:complexContent>
>       <xs:extension base="tns:noOutputDefinition">
>         <xs:sequence/>
>         <xs:attribute name="message" type="xs:string" use="required">
>           <xs:annotation>
>             <xs:documentation xml:lang="en">Sets the log message (uses simple 
> language)</xs:documentation>
>           </xs:annotation>
>         </xs:attribute>
>       ...
> </xs:complexType>
> {code}
> But for it's abstract base type documentation does not injected:
> {code:xml}
> <xs:complexType abstract="true" name="processorDefinition">
>     <xs:complexContent>
>       <xs:extension base="tns:optionalIdentifiedDefinition">
>         <xs:sequence/>
>         <!-- Documentation should be injected for this attribute. -->
>         <xs:attribute name="inheritErrorHandler" type="xs:boolean"/>
>         <xs:anyAttribute namespace="##other" processContents="skip"/>
>       </xs:extension>
>     </xs:complexContent>
>   </xs:complexType>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to