Template:— representing_resource_item (rep_res_item) Date: 2009/06/08 10:18:24
Revision: 1.16
Template: representing_resource_item

XML references to the Template

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

representing_resource_item

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="representing_resource_item" capability="representing_resource">
  <param name="res_item_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="res_item_id_class">
    <param_value>Resource_item_identification_code</param_value>
    <description></description>
  </param>
  <param name="res_item_id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="res_item_id_org_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="res_item_id_org_id_class">
    <param_value>Organization_name</param_value>
    <description></description>
  </param>
  <param name="res_item_id_org_id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="res_item_items">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="representing_resource_item">
  <param_in name="res_item_id" value=""/>
  <param_in name="res_item_id_class" value="Resource_item_identification_code"/>
  <param_in name="res_item_id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="res_item_id_org_id" value=""/>
  <param_in name="res_item_id_org_id_class" value="Organization_name"/>
  <param_in name="res_item_id_org_id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="res_item_items" value=""/>
</template_example>

representing_resource_item
/representing_resource_item(res_item_id='', res_item_id_class='Resource_item_identification_code', res_item_id_ecl_id='urn:plcs:rdl:std', res_item_id_org_id='', res_item_id_org_id_class='Organization_name', res_item_id_org_id_ecl_id='urn:plcs:rdl:std', res_item_items='')/

Path

Resource_item

-- Mark the Resource_item entity as
-- referable when this template is used by binding it to the reference
-- parameter res_item
%^res_item = Resource_item%
Resource_item.name = '/IGNORE'
Resource_item.description = '/IGNORE'
Resource_item.resource_items -> @res_item_items

-- Identification of the Resource_item
/assigning_identification(
    items=^res_item,
    id=@res_item_id,
    id_class_name=@res_item_id_class,
    id_ecl_id=@res_item_id_ecl_id,
    org_id=@res_item_id_org_id,
    org_id_class_name=@res_item_id_org_id_class,
    org_id_ecl_id=@res_item_id_org_id_ecl_id )/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Resource_item.name '/IGNORE'
Resource_item.description '/IGNORE'

XML representation of path

<refpath
   template="representing_resource_item">
   <instantiate
      entity="Resource_item"
      context="">
      
   </instantiate>
   <comment>
      Mark the Resource_item entity as
   </comment>
   <comment>
      referable when this template is used by binding it to the reference
   </comment>
   <comment>
      parameter res_item
   </comment>
   <bind
      parameter="res_item">
      <express_entity
         entity="Resource_item"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Resource_item"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Resource_item"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Resource_item"
            attribute="resource_items"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="res_item_items">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Identification of the Resource_item
   </comment>
   <call_template
      name="assigning_identification"
      business_context="">
      <param_in
         name="items"
         value="^res_item">
         
      </param_in>
      <param_in
         name="id"
         value="@res_item_id">
         
      </param_in>
      <param_in
         name="id_class_name"
         value="@res_item_id_class">
         
      </param_in>
      <param_in
         name="id_ecl_id"
         value="@res_item_id_ecl_id">
         
      </param_in>
      <param_in
         name="org_id"
         value="@res_item_id_org_id">
         
      </param_in>
      <param_in
         name="org_id_class_name"
         value="@res_item_id_org_id_class">
         
      </param_in>
      <param_in
         name="org_id_ecl_id"
         value="@res_item_id_org_id_ecl_id ">
         
      </param_in>
   </call_template>
</refpath>

© OASIS 2010 — All rights reserved