Add a local annotation with userInfo to the given item.
Note: We take an XSDConcreteComponent, however we must
then cast it to one of the types that has a setAnnotation
call defined, since it doesn't have a clear 'parent'
interface for annotations.
Also note that UserInformation and ApplicationInformation
objects can only be added after the parent of the
annotation has been added to an XSDSchema object. This is
because these objects are modeled in the concrete DOM
layer only, and otherwise will throw a DOMException.
Parameters: component - to add annotation to; may be any kind of XSDConcreteComponent object including an XSDSchema Parameters: sourceURI - to set for the userInformation Parameters: text - text to add as the userInformation (xsd:documentation) node to the annotation the XSDAnnotation object created, after having been added to the component; null if any error occoured |