3

I am using enunciate and want to exclude certain jaxb generated classes from the documentation. How can this be done?

Is it possible to add the org.codehaus.enunciate.XmlTransient annotation via the xsd?

Thanks in advance.

ToHe
  • 147
  • 3
  • 13

2 Answers2

5
  <?xml version="1.0"?>
  <enunciate ...>

    <api-classes>
      <exclude pattern="com.mycompany.nonvisible.**"/>
    </api-classes>
    ...
  </enunciate>
Ryan Heaton
  • 1,173
  • 7
  • 11
  • 2
    Only seems to work for API service classes (REST related). The generated java classes from the xsd's could not be excluded using this technique. – ToHe Oct 30 '12 at 15:54
0

Try excluding the class by annotating it with @com.webcohesion.enunciate.metadata.Ignore (see user guide). This worked for me.

I also had no success excluding JAXB classes by listing them in enunciate.xml.

Christoph Böhme
  • 3,766
  • 1
  • 19
  • 29