Template:— representing_address_location (rep_add_locn)
Capability:representing_location
Date: 2005/08/15 08:20:35 :
Revision: 1.6
Template: representing_address_location

XML references to the Template

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

representing_address_location

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="representing_address_location" capability="representing_location">
  <param name="address_id">
    <param_value>Uknown</param_value>
    <description></description>
  </param>
  <param name="address_type_code">
    <param_value>Address_based_location_identification_code</param_value>
    <description></description>
  </param>
  <param name="address_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="street_number">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="street">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="postal_box">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="town">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="region">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="postal_code">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="country">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="internal_location">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="facsimile_number">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="telephone_number">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="electronic_mail_address">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="telex_number">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="url">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="representing_address_location">
  <param_in name="address_id" value="Uknown"/>
  <param_in name="address_type_code" value="Address_based_location_identification_code"/>
  <param_in name="address_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="name" value=""/>
  <param_in name="street_number" value=""/>
  <param_in name="street" value=""/>
  <param_in name="postal_box" value=""/>
  <param_in name="town" value=""/>
  <param_in name="region" value=""/>
  <param_in name="postal_code" value=""/>
  <param_in name="country" value=""/>
  <param_in name="internal_location" value=""/>
  <param_in name="facsimile_number" value=""/>
  <param_in name="telephone_number" value=""/>
  <param_in name="electronic_mail_address" value=""/>
  <param_in name="telex_number" value=""/>
  <param_in name="url" value=""/>
</template_example>

representing_address_location
/representing_address_location(address_id='Uknown', address_type_code='Address_based_location_identification_code', address_ecl_id='urn:plcs:rdl:std', name='', street_number='', street='', postal_box='', town='', region='', postal_code='', country='', internal_location='', facsimile_number='', telephone_number='', electronic_mail_address='', telex_number='', url='')/

Path

-- Instantiate an Address_based_location_representation
Address_based_location_representation

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

-- Assign reference data to Address_assignment
/assigning_identification_with_no_organization(
    items=^address_loc_rep,
    id=@address_id,
    id_class_name=@address_type_code,
    id_ecl_id=@address_ecl_id)/

-- Instantiate and point at an entity Address
Address_based_location_representation.postal_address -> Address

-- Set the Address attributes
Address.name -> @name
Address.street_number -> @street_number
Address.street -> @street
Address.postal_box -> @postal_box
Address.town -> @town
Address.region -> @region
Address.postal_code -> @postal_code
Address.country -> @country
Address.internal_location -> @internal_location
Address.facsimile_number -> @facsimile_number
Address.telephone_number -> @telephone_number
Address.electronic_mail_address -> @electronic_mail_address
Address.telex_number -> @telex_number
Address.url -> @url

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

XML representation of path

<refpath
   template="representing_address_location">
   <comment>
      Instantiate an Address_based_location_representation
   </comment>
   <instantiate
      entity="Address_based_location_representation"
      context="">
      
   </instantiate>
   <comment>
      Bind the Address_based_location_representation to the parameter ^address_loc_rep.
   </comment>
   <comment>
      The parameter is a reference parameter so the Address_based_location_representation
   </comment>
   <comment>
      entity can be referred to when this template is used.
   </comment>
   <bind
      parameter="address_loc_rep">
      <express_entity
         entity="Address_based_location_representation"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Assign reference data to Address_assignment
   </comment>
   <call_template
      name="assigning_identification_with_no_organization"
      business_context="">
      <param_in
         name="items"
         value="^address_loc_rep">
         
      </param_in>
      <param_in
         name="id"
         value="@address_id">
         
      </param_in>
      <param_in
         name="id_class_name"
         value="@address_type_code">
         
      </param_in>
      <param_in
         name="id_ecl_id"
         value="@address_ecl_id">
         
      </param_in>
   </call_template>
   <comment>
      Instantiate and point at an entity Address
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Address_based_location_representation"
            attribute="postal_address"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <express_entity
            entity="Address"
            context="">
            
         </express_entity>
      </source>
   </assign>
   <comment>
      Set the Address attributes
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Address"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="name">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Address"
            attribute="street_number"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="street_number">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Address"
            attribute="street"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="street">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Address"
            attribute="postal_box"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="postal_box">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Address"
            attribute="town"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="town">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Address"
            attribute="region"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="region">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Address"
            attribute="postal_code"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="postal_code">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Address"
            attribute="country"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="country">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Address"
            attribute="internal_location"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="internal_location">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Address"
            attribute="facsimile_number"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="facsimile_number">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Address"
            attribute="telephone_number"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="telephone_number">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Address"
            attribute="electronic_mail_address"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="electronic_mail_address">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Address"
            attribute="telex_number"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="telex_number">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Address"
            attribute="url"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="url">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Bind the Address entity to the parameter ^address.
   </comment>
   <comment>
      The parameter is a reference parameter so the Address
   </comment>
   <comment>
      entity can be referred to when this template is used.
   </comment>
   <bind
      parameter="address">
      <express_entity
         entity="Address"
         context="">
         
      </express_entity>
   </bind>
</refpath>

© OASIS 2010 — All rights reserved