Hi,
I have a similar issue with java classes that were generated from xsd document.
In my problem, I have two documentation fields in an annotation.(like the one below) Using this solution worked but only the last documentation added to my java class. (the first was ignored). I tried to customize your solution but in fieldGetDescriptionAnnotation method, it looks like schemaComponent contains only one annotation, and that annotation contains one documentation or I am missing something.
Do you think this is possible to implement?
Thanks.
XSD example
<xs:element name="MsgId" type="CBPR_RestrictedFINXMax35Text">
xs:annotation
<xs:documentation source="Name" xml:lang="EN">MessageIdentification</xs:documentation>
<xs:documentation source="Definition" xml:lang="EN">Point to point reference, as assigned by the instructing party, and sent to the next party in the chain to unambiguously identify the message.
Usage: The instructing party has to make sure that MessageIdentification is unique per instructed party for a pre-agreed period.</xs:documentation>
</xs:annotation>
</xs:element>
java result
@xmlelement(name = "MsgId", required = true)
@XsdInfo(name = "Point to point reference, as assigned by the instructing party, and sent to the next party in the chain to unambiguously identify the message.\nUsage: The instructing party has to make sure that MessageIdentification is unique per instructed party for a pre-agreed period.")
protected String msgId;
Hi,
I have a similar issue with java classes that were generated from xsd document.
In my problem, I have two documentation fields in an annotation.(like the one below) Using this solution worked but only the last documentation added to my java class. (the first was ignored). I tried to customize your solution but in fieldGetDescriptionAnnotation method, it looks like schemaComponent contains only one annotation, and that annotation contains one documentation or I am missing something.
Do you think this is possible to implement?
Thanks.
XSD example
<xs:element name="MsgId" type="CBPR_RestrictedFINXMax35Text">
xs:annotation
<xs:documentation source="Name" xml:lang="EN">MessageIdentification</xs:documentation>
<xs:documentation source="Definition" xml:lang="EN">Point to point reference, as assigned by the instructing party, and sent to the next party in the chain to unambiguously identify the message.
Usage: The instructing party has to make sure that MessageIdentification is unique per instructed party for a pre-agreed period.</xs:documentation>
</xs:annotation>
</xs:element>
java result
@xmlelement(name = "MsgId", required = true)
@XsdInfo(name = "Point to point reference, as assigned by the instructing party, and sent to the next party in the chain to unambiguously identify the message.\nUsage: The instructing party has to make sure that MessageIdentification is unique per instructed party for a pre-agreed period.")
protected String msgId;