Actually, to add an annotation to e.g. a complex type definition, use
the following code snippet.
Documentation documentation = new Documentation();
documentation.add("Comment");
annotation.addDocumentation(documentation);
complexType.addAnnotation(annotation);
This will produce something similar to ....
<complexType name="name">
<annotation>
<documentation>Comment</documentation>
</annotation>
...
</complexType>
I hope this helps. Let me know whether this is what you wanted to know.
Werner
Werner Guttmann wrote:
Hi Andrea,
What does the code look liek you've been trying so far ?
Werner
Mudnes wrote:
How can I add in a complexType a simpleContent whit annotation?
I would return:
<xsd:ComplexType name="name">
<xsd:simpleContent>
<xsd:extension base="nameBase">
<xsd:annotation>
<xsd:documentation>Description</xsd:documentation>
</xsd:annotation>
<xsd:attribute name="nameAttribute"
use="required".../>
</xsd:extension>
</xsd:simpleContent>
</xsd:ComplexType>
help me please....
Thanks
Andrea
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email