2.1.33 PropertyValue

A PropertyValue element is used to assign the result of an expression to a property of a term.

The following is an example of the PropertyValue element.

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

The following rules apply to the PropertyValue element:

  • A PropertyValue MUST have a Property attribute defined that is of type SimpleIdentifier. Property names the property for which the value is supplied.

  • A PropertyValue can specify an expression as a child element or as an expression attribute that gives the value of the property.

  • A PropertyValue can have one of the following expression attributes defined in place of a child element expression. Each of these is equivalent to the same-named expression with the equivalent spelling:

    • Path

    • String

    • Int

    • Float

    • Decimal

    • Bool

    • DateTime