XSD reverse generation: Annotation (Documentation - AppInfo)
The "Annotation" tag is used to associate a descriptor with an XSD concept. The "Documentation" tag provides general information about the concept. The "AppInfo" tag provides technical information.
There are two cases to be modeled:
Only one annotation on the concept
If you have at most one documentation and one appInfo without an associated source, the Documentation tag is modeled by the Comment attribute found on all concepts used. The AppInfo tag is modeled by the XSD AppInfo text in the XSD generation tab.
Multiple annotations or multiple documentations and appInfos or associated sources
In this case, the Documentation and AppInfo tags are modeled by a Note. For the Documentation tag, the note is of the "XML Documentation" stereotype. For the AppInfo tag, the note is of the "XML Application" stereotype.
Attributes
• Id : not modeled.
• Source: modeled by an external reference associated with the note representing "Documentation" or "AppInfo".