Closed dxxr closed 8 years ago
True. This situation is not handled in the current or upcoming (2.2) release of the plugin. We need an IT to tracks this issue in downstream deliveries.
Are there other such "re-name" attributes than as shown in the @XmlType (name="SomeOtherType")
annotation?
Well, I guess the main ones are Types
@XmlType(name="some-type")
<xs:complexType name="some-type"> ...
Elements
@XmlElement(name = "some-element")
@XmlRootElement(name = "some-root")
@XmlElementWrapper(name = "some-wrapper")
<xs:element name="some-element" .... />
<xs:element name="some-root" .... />
<xs:element name="some-wrapper" .... />
Attributes
@XmlAttribute(name = "some-attribute")
<xs:attribute name="some-attribute" .... />
Btw. I've noticed that enums don't get annotated at all, regardless whether re-named or not:
/** Enum Class level documentation */
@XmlEnum
@XmlType(name="SomeEnumType")
public enum EnumType {
/** Enum constant level documentation */
VALUE1,
/** Enum constant level documentation */
VALUE2
}
<xs:simpleType name="SomeEnumType">
<xs:restriction base="xs:string">
<xs:enumeration value="VALUE1"/>
<xs:enumeration value="VALUE2"/>
</xs:restriction>
</xs:simpleType>
Good input, this. Solution to this problem is rather pinpointed in the codebase, so we should be able to deal with it in a rather simple manner. However, we need to create ITs to track this issue from future regressions.
Fixed this in recent commits. Slated for 2.3 release.
The JavaDoc post-processor seems to disregard xml type renamings... Version:
Example 1: No xml type name given, documentation is copied
Example 2: xml type is renamed, no documentation...