2.1.3.22 Interpretation

Target namespace: http://schemas.microsoft.com/windows/2007/BusinessDataCatalog

Referenced by: TypeDescriptor

A complex type that specifies the rules to apply to the data stored in the data structures represented by a TypeDescriptor. These rules are specified to change the data values returned by the line-of-business (LOB) system to make it easier to represent them in the user interface when the metadata is being used. When the data value is obtained from the LOB system, the specified rules MUST be applied in the order they are specified in the Interpretation element. The first rule MUST be applied to the data value received from the LOB system, the consecutive rules apply to the data value that results from the application of the previous rule. When the data value is sent to LOB system, the specified rules MUST be applied in the reverse order they are specified in the Interpretation element. The first rule MUST be applied to the data value received from the user, the consecutive rules apply to the data value that results from the application of the previous rule.

Child Elements:

ConvertType: A ConvertType element (section 2.1.3.11) that specifies the conversion of a data type to another data type.

NormalizeDateTime: A NormalizeDateTime element (section 2.1.3.35) that specifies the conversion of the date and time representation of a value obtained from a line-of-business (LOB) system into another representation.

NormalizeString: A NormalizeString element (section 2.1.3.36) that specifies the conversion rules of the empty string or null value obtained from a LOB system into another representation.

The following W3C XML Schema ([XMLSCHEMA1/2] section 2.1) fragment specifies the contents of this complex type.

 <xs:complexType name="Interpretation">
   <xs:choice minOccurs="1" maxOccurs="unbounded">
     <xs:element name="ConvertType" type="bdc:ConvertType"/>
     <xs:element name="NormalizeDateTime" type="bdc:NormalizeDateTime"/>
     <xs:element name="NormalizeString" type="bdc:NormalizeString"/>
   </xs:choice>
 </xs:complexType>

See section 5.1 for the full W3C XML Schema ([XMLSCHEMA1/2] section 2.1).