Template:— representing_code (rep_code)
Context:— NDLO
Date: 2008/02/21 16:26:54
Revision: 1.3
Template: representing_code

XML references to the Template

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

representing_code

Set up a hyperlink to the template definition.
<template_ref name="representing_code" context="NDLO" />

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="representing_code" context="NDLO" >
  <param name="id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="id_class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="class_class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="class_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="items">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="representing_code">
  <param_in name="id" value=""/>
  <param_in name="id_class_name" value=""/>
  <param_in name="id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="class_name" value=""/>
  <param_in name="class_class_name" value=""/>
  <param_in name="class_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="items" value=""/>
</template_example>

representing_code
/representing_code(id='', id_class_name='', id_ecl_id='urn:plcs:rdl:std', class_name='', class_class_name='', class_ecl_id='urn:plcs:rdl:std', items='')/

Path

Identification_assignment

-- Mark the Identification_assignment entity as
-- referable when this template is used by binding it to the reference
-- parameter id_assgn
%^id_assgn = Identification_assignment%
Identification_assignment.identifier = @id
Identification_assignment.role = '/IGNORE'
Identification_assignment.description = '/NULL'
Identification_assignment.items -> @items

-- provide the role of the identification by classifying the Identification_assignment
/assigning_reference_data(
    items=^id_assgn,
    class_name=@id_class_name,
    ecl_id=@id_ecl_id)/
Class

-- Mark the Class entity as referable when this template is used.
%^class = Class%
^class.id = '/IGNORE'
^class.name = @class_name
^class.description = '/IGNORE'

-- provide the description of the identification by classifying the class
/assigning_reference_data(
    items=^class,
    class_name=@class_class_name,
    ecl_id=@class_ecl_id)/
Classification_assignment

-- Mark the Classification_assignment entity as referable when this template is used.
-- In other words, bind the Document_assignment instance to the reference
-- parameter doc_asg
%^class_asg = Classification_assignment%
^class_asg.role = '/IGNORE'
^class_asg.items -> ^id_assgn

-- Assign the identification_assignment to class entity it is used for
^class_asg.assigned_document -> ^class
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Identification_assignment.identifier @id
Identification_assignment.role '/IGNORE'
Identification_assignment.description '/NULL'
Class.id '/IGNORE'
Class.name @class_name
Class.description '/IGNORE'
Classification_assignment.role '/IGNORE'

XML representation of path

<refpath
   template="representing_code">
   <instantiate
      entity="Identification_assignment"
      context="NDLO">
      
   </instantiate>
   <comment>
      Mark the Identification_assignment entity as
   </comment>
   <comment>
      referable when this template is used by binding it to the reference
   </comment>
   <comment>
      parameter id_assgn
   </comment>
   <bind
      parameter="id_assgn">
      <express_entity
         entity="Identification_assignment"
         context="NDLO">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="NDLO">
      <target>
         <express_attribute
            entity="Identification_assignment"
            attribute="identifier"
            context="NDLO">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="id">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="NDLO">
      <target>
         <express_attribute
            entity="Identification_assignment"
            attribute="role"
            context="NDLO">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="NDLO">
      <target>
         <express_attribute
            entity="Identification_assignment"
            attribute="description"
            context="NDLO">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/NULL' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Identification_assignment"
            attribute="items"
            context="NDLO">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="items">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      provide the role of the identification by classifying the Identification_assignment
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="NDLO">
      <param_in
         name="items"
         value="^id_assgn">
         
      </param_in>
      <param_in
         name="class_name"
         value="@id_class_name">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@id_ecl_id">
         
      </param_in>
   </call_template>
   <instantiate
      entity="Class"
      context="NDLO">
      
   </instantiate>
   <comment>
      Mark the Class entity as referable when this template is used.
   </comment>
   <bind
      parameter="class">
      <express_entity
         entity="Class"
         context="NDLO">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="NDLO">
      <target>
         <bound_parameter
            name="class.id">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="NDLO">
      <target>
         <bound_parameter
            name="class.name">
            
         </bound_parameter>
      </target>
      <source>
         <param_in_ref
            name="class_name">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="NDLO">
      <target>
         <bound_parameter
            name="class.description">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      provide the description of the identification by classifying the class
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="NDLO">
      <param_in
         name="items"
         value="^class">
         
      </param_in>
      <param_in
         name="class_name"
         value="@class_class_name">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@class_ecl_id">
         
      </param_in>
   </call_template>
   <instantiate
      entity="Classification_assignment"
      context="NDLO">
      
   </instantiate>
   <comment>
      Mark the Classification_assignment entity as referable when this template is used.
   </comment>
   <comment>
      In other words, bind the Document_assignment instance to the reference
   </comment>
   <comment>
      parameter doc_asg
   </comment>
   <bind
      parameter="class_asg">
      <express_entity
         entity="Classification_assignment"
         context="NDLO">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="NDLO">
      <target>
         <bound_parameter
            name="class_asg.role">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <bound_parameter
            name="class_asg.items">
            
         </bound_parameter>
      </target>
      <source>
         <bound_parameter
            name="id_assgn">
            
         </bound_parameter>
      </source>
   </assign>
   <comment>
      Assign the identification_assignment to class entity it is used for
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <bound_parameter
            name="class_asg.assigned_document">
            
         </bound_parameter>
      </target>
      <source>
         <bound_parameter
            name="class">
            
         </bound_parameter>
      </source>
   </assign>
</refpath>

© OASIS 2010 — All rights reserved