Template:— representing_independent_property (rep_indpt_prp) Date: 2008/03/07 23:26:57
Revision: 1.7
Template: representing_independent_property

XML references to the Template

These can be cut and pasted into the XML as required.

representing_independent_property

Set up a hyperlink to the template definition.
<template_ref name="representing_independent_property" capability="representing_independent_property"/>

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="representing_independent_property" capability="representing_independent_property">
  <param name="property_class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="property_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="representing_independent_property">
  <param_in name="property_class_name" value=""/>
  <param_in name="property_ecl_id" value="urn:plcs:rdl:std"/>
</template_example>

representing_independent_property
/representing_independent_property(property_class_name='', property_ecl_id='urn:plcs:rdl:std')/

Path

-- Instantiate an Independent_property
Independent_property

-- Bind the Independent_property to the parameter ^property.
-- The parameter is a reference parameter so the Independent_property
-- entity can be referred to when this template is used.
%^property = Independent_property%

-- Set the Assigned_property attributes name, id, and property_type to be ignored
Independent_property.id = '/IGNORE'
Independent_property.description = '/IGNORE'
Independent_property.property_type = '/IGNORE'

-- Assign reference data for name of property
/assigning_reference_data(
    items=^property,
    class_name=@property_class_name,
    ecl_id=@property_ecl_id)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Independent_property.id '/IGNORE'
Independent_property.description '/IGNORE'
Independent_property.property_type '/IGNORE'

XML representation of path

<refpath
   template="representing_independent_property">
   <comment>
      Instantiate an Independent_property
   </comment>
   <instantiate
      entity="Independent_property"
      context="">
      
   </instantiate>
   <comment>
      Bind the Independent_property to the parameter ^property.
   </comment>
   <comment>
      The parameter is a reference parameter so the Independent_property
   </comment>
   <comment>
      entity can be referred to when this template is used.
   </comment>
   <bind
      parameter="property">
      <express_entity
         entity="Independent_property"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Set the Assigned_property attributes name, id, and property_type to be ignored
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Independent_property"
            attribute="id"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Independent_property"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Independent_property"
            attribute="property_type"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Assign reference data for name of property
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="^property">
         
      </param_in>
      <param_in
         name="class_name"
         value="@property_class_name">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@property_ecl_id">
         
      </param_in>
   </call_template>
</refpath>

© OASIS 2010 — All rights reserved