Sub Object Type Support

For reporting on a specific object type in a specific context, we include the <Object_Type> tag within the parent <Object_Type> element. The supports within the sub object type support are as follows:

Child

When you define an object type within an existing object type, the child items of that specific type are reported. For example, if you report on an object type that reports an entity that defines an object type of Attribute, then the report includes all attributes within that entity. This is the default way in which Mart reporting is implemented.

Syntax:

<report>
    <Name>Entity Attributes</Name>
        <Object_Type>
            <Name>Entity</Name>
            <Report_Output>
               	<Property>
            		<Type>Name</Type>
                </Property>
             </Report_Output>
             <Object_Type>
             	<Name>Attribute</Name>
             	<Report_Output>
            		<Property>
                    		<Type>Name</Type>
                	</Property>
             	</Report_Output>
             </Object_Type>
         </Object_Type>
</report>

Owner

To refer to the Owner object in the context of an object type, use the Relationship attribute that refers to "Owner". For example, when you report on an object type that includes a domain and defines an object type of Model with relationship attribute as "Owner," then the report is generated on the Model owning the Domain.

Syntax:

 <report>
  <Name>Domains</Name>	
   <Object_Type>
    <Name>Domain</Name>
	<Report_Output>
               	<Property>
            		<Type>Name</Type>
               	</Property>
	<Report_Output>
   <Object_Type Relationship = "Owner">
    <Name>Model</Name>
	<Report_Output>
               	<Property>
            		<Type>Name</Type>
               	</Property>
	<Report_Output>
    </Object_Type>
    </Object_Type>
 </report>

Referenced Object

To refer to an object that is referenced using a reference property within the object in context, use the Relationship attribute as "Ref" and define another attribute Reference that indicates the reference property to consider on the object while retrieving the object type defined within the current object type element. For example, within an object type reporting on Attribute defining an object type of Domain with relationship attribute as "Ref" and the Reference attribute defined as "Parent_Domain_Ref" would report on the Attribute and the Domain referenced by the property "Parent_Domain_Ref" on the Attribute in context.

Syntax:

<report>
  <Name>Attribute Domains</Name>	
   <Object_Type>
    <Name>Attribute</Name>
	<Report_Output>
               	<Property>
            		<Type>Name</Type>
               	</Property>
	<Report_Output>
   <Object_Type Relationship = "Ref" Reference = "Parent_Domain_Ref">
    <Name>Domain</Name>
	<Report_Output>
               	<Property>
            		<Type>Name</Type>
               	</Property>
	<Report_Output>
    </Object_Type>
    </Object_Type>
</report>