urn_ietf_params_xml_ns_pidf_geopriv10.ttcn 3.56 KB
Newer Older
Yann Garcia's avatar
Yann Garcia committed
/*******************************************************************************
* Copyright (c) 2000-2018 Ericsson Telecom AB
*
* XSD to TTCN-3 Translator version: CRL 113 200/6 R4B                       
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
*******************************************************************************/
//
//  File:          urn_ietf_params_xml_ns_pidf_geopriv10.ttcn
//  Description:
//  References:
//  Rev:
//  Prodnr:
//  Updated:       Tue Aug  7 08:36:53 2018
//  Contact:       http://ttcn.ericsson.se
//
////////////////////////////////////////////////////////////////////////////////
//	Generated from file(s):
//	- RFC4119_geopriv10.xsd
//			/* xml version = "1.0" encoding = "UTF-8" */
//			/* targetnamespace = "urn:ietf:params:xml:ns:pidf:geopriv10" */
////////////////////////////////////////////////////////////////////////////////
//     Modification header(s):
//-----------------------------------------------------------------------------
//  Modified by:
//  Modification date:
//  Description:
//  Modification contact:
//------------------------------------------------------------------------------
////////////////////////////////////////////////////////////////////////////////


module urn_ietf_params_xml_ns_pidf_geopriv10 {


import from XSD all;


import from urn_ietf_params_xml_ns_pidf_geopriv10_basicPolicy all;
import from urn_ietf_params_xml_ns_pidf_geopriv10_civicAddr all;

import from http_www_w3_org_XML_1998_namespace all;

import from http_www_opengis_net_gml all;
import from http_www_opengis_net_pidflo_1_0 all;

/* This import brings in the XML language attribute xml:lang */


type Geopriv_1 Geopriv
with {
  variant "name as uncapitalized";
  variant "element";
};


type record Geopriv_1
{
	LocInfoType location_info,
	LocPolicyType usage_rules,
	LocMethod method optional,
	LocProvidedBy provided_by optional,
	record of XSD.String elem_list
}
with {
  variant "name as 'geopriv'";
  variant (location_info) "name as 'location-info'";
  variant (usage_rules) "name as 'usage-rules'";
  variant (provided_by) "name as 'provided-by'";
  variant (elem_list) "untagged";
  variant (elem_list[-]) "anyElement except unqualified, 'urn:ietf:params:xml:ns:pidf:geopriv10'";
};

type union LocInfoType
{
	PointType point,
	CircleType circle,
	CivicAddress civic	
}
with {  
  variant (point)  "name as 'Point'";
  variant (point)  "namespace as 'http://www.opengis.net/gml'";
  variant (circle) "name as 'Circle'";
  variant (circle) "namespace as 'http://www.opengis.net/pidflo/1.0'";
  variant (civic)  "namespace as 'urn:ietf:params:xml:ns:pidf:geopriv10:civicAddr'";
  variant (civic)  "name as 'civicAddress'";
};


type record LocMethod
{
	Lang lang optional,
	XSD.String base
}
with {
  variant "name as uncapitalized";
  variant (lang) "namespace as 'http://www.w3.org/XML/1998/namespace' prefix 'xml'";
  variant (lang) "attribute";
  variant (base) "untagged";
};


type record LocProvidedBy
{
	record length(1 .. infinity) of XSD.String elem_list
}
with {
  variant "name as uncapitalized";
  variant (elem_list) "untagged";
  variant (elem_list[-]) "anyElement except unqualified, 'urn:ietf:params:xml:ns:pidf:geopriv10'";
};


}
with {
  encode "XML";
  variant "namespace as 'urn:ietf:params:xml:ns:pidf:geopriv10' prefix 'tns'";
  variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
  variant "elementFormQualified";
}