Template:— file_location (file_locn)
Context:— UK_Defence
Date: 2009/04/17 11:50:09
Revision: 1.2
Template: file_location

XML references to the Template

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

file_location

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="file_location" context="UK_Defence" >
  <param name="file_path">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="type">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="source_organization">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="file_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="item">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="file_location">
  <param_in name="file_path" value=""/>
  <param_in name="type" value=""/>
  <param_in name="source_organization" value=""/>
  <param_in name="file_name" value=""/>
  <param_in name="item" value=""/>
</template_example>

file_location
/file_location(file_path='', type='', source_organization='', file_name='', item='')/

Path

File_location_identification
%^file_loc_id = File_location_identification%
File_location_identification.source_id = '/IGNORE'
File_location_identification.source_type = '/IGNORE'
File_location_identification.description = '/NULL'
File_location_identification.external_id = '/IGNORE'
File_location_identification.item -> @item

-- file path
/identifier(
    ID=@file_path,
    source_organization=@source_organization,
    type=@type,
    items=^file_loc_id)/

-- file name
/identifier(
    ID=@file_name,
    source_organization=@source_organization,
    type=@type,
    items=^file_loc_id)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
File_location_identification.source_id '/IGNORE' External_source_identification.source_id
File_location_identification.source_type '/IGNORE' External_source_identification.source_type
File_location_identification.description '/NULL' External_source_identification.description
File_location_identification.external_id '/IGNORE' External_item_identification.external_id

XML representation of path

<refpath
   template="file_location">
   <instantiate
      entity="File_location_identification"
      context="UK_Defence">
      
   </instantiate>
   <bind
      parameter="file_loc_id">
      <express_entity
         entity="File_location_identification"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="File_location_identification"
            attribute="source_id"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="File_location_identification"
            attribute="source_type"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="File_location_identification"
            attribute="description"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/NULL' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="File_location_identification"
            attribute="external_id"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="File_location_identification"
            attribute="item"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="item">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      file path
   </comment>
   <call_template
      name="identifier"
      business_context="UK_Defence">
      <param_in
         name="ID"
         value="@file_path">
         
      </param_in>
      <param_in
         name="source_organization"
         value="@source_organization">
         
      </param_in>
      <param_in
         name="type"
         value="@type">
         
      </param_in>
      <param_in
         name="items"
         value="^file_loc_id">
         
      </param_in>
   </call_template>
   <comment>
      file name
   </comment>
   <call_template
      name="identifier"
      business_context="UK_Defence">
      <param_in
         name="ID"
         value="@file_name">
         
      </param_in>
      <param_in
         name="source_organization"
         value="@source_organization">
         
      </param_in>
      <param_in
         name="type"
         value="@type">
         
      </param_in>
      <param_in
         name="items"
         value="^file_loc_id">
         
      </param_in>
   </call_template>
</refpath>

© UK MOD 2010 — All rights reserved