Compartir a través de


2.1.32 TypeAnnotation

A TypeAnnotation element is used to annotate a model element with a term and provide zero or more values for the properties of the term.

The following is an example of the TypeAnnotation element.

 <TypeAnnotation Term="ContactInfo">
    <PropertyValue Property="ContactName" String="ContactName1" />
 </TypeAnnotation>

The following rules apply to the TypeAnnotation element:

  • TypeAnnotation MUST have a Term attribute defined that is a namespace qualified name, alias qualified name, or SimpleIdentifier.

  • TypeAnnotation can appear only as a child element of the following elements:

  • TypeAnnotation can have a Qualifier attribute defined unless the TypeAnnotation is a child element of an Annotations element that has a Qualifier attribute defined. If a Qualifier is defined, it has to be a SimpleIdentifier. Qualifier is used to differentiate bindings based on environmental concerns.

  • A TypeAnnotation can contain any number of PropertyValue elements.