Commit fda2f7d6 authored by garciay's avatar garciay
Browse files

Re-organize Geopriv CivicAddress

parent 557a4311
Loading
Loading
Loading
Loading
+0 −183
Original line number Diff line number Diff line
/*******************************************************************************
* Copyright (c) 2000-2016 Ericsson Telecom AB
*
* XSD to TTCN-3 Translator version: CRL 113 200/5 R4D                       
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*******************************************************************************/
//
//  File:          NoTargetNamespace.ttcn
//  Description:
//  References:
//  Rev:
//  Prodnr:
//  Updated:       Fri Mar  4 09:23:30 2016
//  Contact:       http://ttcn.ericsson.se
//
////////////////////////////////////////////////////////////////////////////////
//	Generated from file(s):
//	- Ims3gpp.xsd
//			/* xml version = "1.0" encoding = "UTF-8" */
//			/* targetnamespace = "NoTargetNamespace" */
////////////////////////////////////////////////////////////////////////////////
//     Modification header(s):
//-----------------------------------------------------------------------------
//  Modified by:
//  Modification date:
//  Description:
//  Modification contact:
//------------------------------------------------------------------------------
////////////////////////////////////////////////////////////////////////////////


module NoTargetNamespace {


import from XSD all;


type record TIMS3GPP
{
	XSD.Decimal version,
	record of XSD.String attr optional,
	union {
		TAlternativeService alternative_service,
		XSD.String service_info
	} choice,
	record of XSD.String elem_list
}
with {
  variant "name as uncapitalized";
  variant (version) "attribute";
  variant (attr) "anyAttributes";
  variant (choice) "untagged";
  variant (choice.alternative_service) "name as 'alternative-service'";
  variant (choice.service_info) "name as 'service-info'";
  variant (elem_list) "untagged";
  variant (elem_list[-]) "anyElement";
};


type record TAlternativeService
{
	record of XSD.String attr optional,
	TType type_,
	XSD.String reason,
	record of XSD.String elem_list
}
with {
  variant "name as uncapitalized";
  variant (attr) "anyAttributes";
  variant (type_) "name as 'type'";
  variant (elem_list) "untagged";
  variant (elem_list[-]) "anyElement";
};


type record TType
{
	record of XSD.String attr optional,
	record of XSD.String elem_list
}
with {
  variant "name as uncapitalized";
  variant (attr) "anyAttributes";
  variant (elem_list) "untagged";
  variant (elem_list[-]) "anyElement";
};


type record TAction
{
	record of XSD.String attr optional,
	record of XSD.String elem_list
}
with {
  variant "name as uncapitalized";
  variant (attr) "anyAttributes";
  variant (elem_list) "untagged";
  variant (elem_list[-]) "anyElement";
};


/* root element */


type TIMS3GPP Ims_3gpp
with {
  variant "name as 'ims-3gpp'";
  variant "element";
};


/* emergency element for //ims-3gpp//alternative-service//type */


type record Emergency
{

}
with {
  variant "name as uncapitalized";
  variant "element";
};


/* restoration element for //ims-3gpp//alternative-service//type */


type record Restoration
{

}
with {
  variant "name as uncapitalized";
  variant "element";
};


/* action element for //ims-3gpp//alternative-service */


type TAction Action
with {
  variant "name as uncapitalized";
  variant "element";
};


/* emergency-registration element for //ims-3gpp//alternative-service//action */


type record Emergency_registration
{

}
with {
  variant "name as 'emergency-registration'";
  variant "element";
};


/* initial-registration element for //ims-3gpp//alternative-service//action */


type record Initial_registration
{

}
with {
  variant "name as 'initial-registration'";
  variant "element";
};


}
with {
  encode "XML";
  variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
  variant "elementFormQualified";
}
+0 −95
Original line number Diff line number Diff line
/*******************************************************************************
* 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:          UsefulTtcn3Types.ttcn
//  Description:
//  References:
//  Rev:
//  Prodnr:
//  Updated:
//  Contact:       http://ttcn.ericsson.se
//
////////////////////////////////////////////////////////////////////////////////
module UsefulTtcn3Types {


    type integer byte (-128 .. 127) /*with { variant "8 bit" }*/;

    type integer unsignedbyte (0 .. 255) /*with { variant "unsigned 8 bit" }*/;

    type integer short (-32768 .. 32767) /*with { variant "16 bit" }*/;

    type integer unsignedshort (0 .. 65535) /*with { variant "unsigned 16 bit" }*/;

    type integer long (-2147483648 .. 2147483647) /*with { variant "32 bit" }*/;

    type integer unsignedlong (0 .. 4294967295) /*with { variant "unsigned 32 bit" }*/;

    type integer longlong ( -9223372036854775808 .. 9223372036854775807 ) /*with { variant "64 bit" }*/;

    type integer unsignedlonglong ( 0 .. 18446744073709551615 ) /*with { variant "unsigned 64 bit" }*/;

    type float IEEE754float /*with { variant "IEEE754 float" }*/;

    type float IEEE754double /*with { variant "IEEE754 double" }*/;

    type float IEEE754extfloat /*with { variant "IEEE754 extended float" }*/;

    type float IEEE754extdouble /*with { variant "IEEE754 extended double" }*/;

    type universal charstring utf8string /*with { variant "UTF-8" }*/;

    type universal charstring bmpstring ( char ( 0,0,0,0 ) .. char ( 0,0,255,255) ) /*with { variant "UCS-2" }*/;

    type universal charstring utf16string ( char ( 0,0,0,0 ) .. char ( 0,16,255,255) ) /*with { variant "UTF-16" }*/;

    type universal charstring iso8859string ( char ( 0,0,0,0 ) .. char ( 0,0,0,255) ) /*with { variant "8 bit" }*/;

    type record IDLfixed
    {
    	unsignedshort digits,
    	short scale,
    	charstring value_
    }
    /*with {
    variant "IDL:fixed FORMAL/01-12-01 v.2.6";
    }*/;

    /*
    type charstring char length (1);

    NOTE 1: The name of this useful type is the same as the TTCN-3 keyword used to denote universal
    charstring values in the quadraple form. In general it is disallowed to use TTCN-3 keywords as
    identifiers. The "char" useful type is a solitary exception and allowed only for backward compatibility
    with previous versions of the TTCN-3 standard. (except Titan doesn't)

    NOTE 2: The special string "8 bit" defined in clause 28.2.3 may be used with this type to specify a given encoding
    for its values. Also, other properties of the base type can be changed by using attribute mechanisms.
    */

    type universal charstring uchar length (1);

    /*
    NOTE: Special strings defined in clause 28.2.3 except "8 bit" may be used with this type to specify a given
    encoding for its values. Also, other properties of the base type can be changed by using attribute
    mechanisms.
    */

    type bitstring bit length (1);

    type hexstring hex length (1);

    type octetstring octet length (1);

}
with {
encode "XML";
}
+0 −337
Original line number Diff line number Diff line
/*******************************************************************************
* 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:          XSD.ttcn
//  Description:
//  References:
//  Rev:
//  Prodnr:
//  Updated:
//  Contact:       http://ttcn.ericsson.se
//
////////////////////////////////////////////////////////////////////////////////
module XSD {

import from UsefulTtcn3Types all;

//These constants are used in the XSD date/time type definitions
const charstring
  dash := "-",
  cln  := ":",
  year := "[0-9]#4",
  yearExpansion := "(-([1-9][0-9]#(0,))#(,1))#(,1)",
  month := "(0[1-9]|1[0-2])",
  dayOfMonth := "(0[1-9]|[12][0-9]|3[01])",
  hour := "([01][0-9]|2[0-3])",
  minute := "([0-5][0-9])",
  second := "([0-5][0-9])",
  sFraction := "(.[0-9]#(1,))#(,1)",
  endOfDayExt := "24:00:00(.0#(1,))#(,1)",
  nums := "[0-9]#(1,)",
  ZorTimeZoneExt := "(Z|[+-]((0[0-9]|1[0-3]):[0-5][0-9]|14:00))#(,1)",
  durTime := "(T[0-9]#(1,)"&
             "(H([0-9]#(1,)(M([0-9]#(1,)(S|.[0-9]#(1,)S))#(,1)|.[0-9]#(1,)S|S))#(,1)|"&
             "M([0-9]#(1,)(S|.[0-9]#(1,)S)|.[0-9]#(1,)M)#(,1)|"&
             "S|"&
             ".[0-9]#(1,)S))"

//anySimpleType

type XMLCompatibleString AnySimpleType
with {
variant "XSD:anySimpleType";
};

//anyType;

type record AnyType
{
	record of String embed_values optional,
	record of String attr optional,
	record of String elem_list
}
with {
variant "XSD:anyType";
variant "embedValues";
variant (attr) "anyAttributes";
variant (elem_list) "anyElement";
};
// String types

type XMLCompatibleString String
with {
variant "XSD:string";
};

type XMLStringWithNoCRLFHT NormalizedString
with {
variant "XSD:normalizedString";
};

type NormalizedString Token
with {
variant "XSD:token";
};

type XMLStringWithNoWhitespace Name
with {
variant "XSD:Name";
};

type XMLStringWithNoWhitespace NMTOKEN
with {
variant "XSD:NMTOKEN";
};

type Name NCName
with {
variant "XSD:NCName";
};

type NCName ID
with {
variant "XSD:ID";
};

type NCName IDREF
with {
variant "XSD:IDREF";
};

type NCName ENTITY
with {
variant "XSD:ENTITY";
};

type octetstring HexBinary
with {
variant "XSD:hexBinary";
};

type octetstring Base64Binary
with {
variant "XSD:base64Binary";
};

type XMLStringWithNoCRLFHT AnyURI
with {
variant "XSD:anyURI";
};

type charstring Language (pattern "[a-zA-Z]#(1,8)(-\w#(1,8))#(0,)")
with {
variant "XSD:language";
};
// Integer types

type integer Integer
with {
variant "XSD:integer";
};

type integer PositiveInteger (1 .. infinity)
with {
variant "XSD:positiveInteger";
};

type integer NonPositiveInteger (-infinity .. 0)
with {
variant "XSD:nonPositiveInteger";
};

type integer NegativeInteger (-infinity .. -1)
with {
variant "XSD:negativeInteger";
};

type integer NonNegativeInteger (0 .. infinity)
with {
variant "XSD:nonNegativeInteger";
};

type longlong Long
with {
variant "XSD:long";
};

type unsignedlonglong UnsignedLong
with {
variant "XSD:unsignedLong";
};

type long Int
with {
variant "XSD:int";
};

type unsignedlong UnsignedInt
with {
variant "XSD:unsignedInt";
};

type short Short
with {
variant "XSD:short";
};

type unsignedshort UnsignedShort
with {
variant "XSD:unsignedShort";
};

type byte Byte
with {
variant "XSD:byte";
};

type unsignedbyte UnsignedByte
with {
variant "XSD:unsignedByte";
};

// Float types

type float Decimal
with {
variant "XSD:decimal";
};

type IEEE754float Float
with {
variant "XSD:float";
};

type IEEE754double Double
with {
variant "XSD:double";
};

// Time types

type charstring Duration (pattern
  "{dash}#(,1)P({nums}(Y({nums}(M({nums}D{durTime}#(,1)|{durTime}#(,1))|D{durTime}#(,1))|" &
  "{durTime}#(,1))|M({nums}D{durTime}#(,1)|{durTime}#(,1))|D{durTime}#(,1))|{durTime})")
with {
variant "XSD:duration";
};

type charstring DateTime (pattern
  "{yearExpansion}{year}{dash}{month}{dash}{dayOfMonth}T({hour}{cln}{minute}{cln}{second}" &
 "{sFraction}|{endOfDayExt}){ZorTimeZoneExt}" )
with {
variant "XSD:dateTime";
};

type charstring Time (pattern
  "({hour}{cln}{minute}{cln}{second}{sFraction}|{endOfDayExt}){ZorTimeZoneExt}" )
with {
variant "XSD:time";
};

type charstring Date (pattern
  "{yearExpansion}{year}{dash}{month}{dash}{dayOfMonth}{ZorTimeZoneExt}" )
with {
variant "XSD:date";
};

type charstring GYearMonth (pattern
  "{yearExpansion}{year}{dash}{month}{ZorTimeZoneExt}" )
with {
variant "XSD:gYearMonth";
};

type charstring GYear (pattern
  "{yearExpansion}{year}{ZorTimeZoneExt}" )
with {
variant "XSD:gYear";
};

type charstring GMonthDay (pattern
 "{dash}{dash}{month}{dash}{dayOfMonth}{ZorTimeZoneExt}" )
with {
variant "XSD:gMonthDay";
};

type charstring GDay (pattern
  "{dash}{dash}{dash}{dayOfMonth}{ZorTimeZoneExt}" )
with {
variant "XSD:gDay";
};

type charstring GMonth (pattern
  "{dash}{dash}{month}{ZorTimeZoneExt}" )
with {
variant "XSD:gMonth";
};

// Sequence types

type record of NMTOKEN NMTOKENS
with {
variant "XSD:NMTOKENS";
};

type record of IDREF IDREFS
with {
variant "XSD:IDREFS";
};

type record of ENTITY ENTITIES
with {
variant "XSD:ENTITIES";
};

type record QName
{
	AnyURI uri  optional,
	NCName name
}
with {
variant "XSD:QName";
};

// Boolean type

type boolean Boolean
with {
variant "XSD:boolean";
};

//TTCN-3 type definitions supporting the mapping of W3C XML Schema built-in datatypes

type utf8string XMLCompatibleString
(
	char(0,0,0,9)..char(0,0,0,9),
	char(0,0,0,10)..char(0,0,0,10),
	char(0,0,0,13)..char(0,0,0,13),
  	char(0,0,0,32)..char(0,0,215,255),
  	char(0,0,224,0)..char(0,0,255,253),
  	char(0,1,0,0)..char(0,16,255,253)
)

type utf8string XMLStringWithNoWhitespace
(
	char(0,0,0,33)..char(0,0,215,255),
  	char(0,0,224,0)..char(0,0,255,253),
  	char(0,1,0,0)..char(0,16,255,253)
)

type utf8string XMLStringWithNoCRLFHT
(
	char(0,0,0,32)..char(0,0,215,255),
 	char(0,0,224,0)..char(0,0,255,253),
  	char(0,1,0,0)..char(0,16,255,253)
)

}
with{
encode "XML"
}
+0 −1002

File deleted.

Preview size limit exceeded, changes collapsed.

+0 −239
Original line number Diff line number Diff line
/*******************************************************************************
* 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:          http_www_opengis_net_pidflo_1_0.ttcn
//  Description:
//  References:
//  Rev:
//  Prodnr:
//  Updated:       Tue Aug  7 07:22:20 2018
//  Contact:       http://ttcn.ericsson.se
//
////////////////////////////////////////////////////////////////////////////////
//	Generated from file(s):
//	- GML-pidf-lo-shape.xsd
//			/* xml version = "1.0" */
//			/* targetnamespace = "http://www.opengis.net/pidflo/1.0" */
////////////////////////////////////////////////////////////////////////////////
//     Modification header(s):
//-----------------------------------------------------------------------------
//  Modified by:
//  Modification date:
//  Description:
//  Modification contact:
//------------------------------------------------------------------------------
////////////////////////////////////////////////////////////////////////////////


module http_www_opengis_net_pidflo_1_0 {


import from XSD all;


import from http_www_opengis_net_gml all;


/* This document defines geodetic shape types for PIDF-LO.
            
            Copyright (c) 2007,2009 Open Geospatial Consortium.
            To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ . */


type CircleType Circle
with {
  variant "element";
};


type record CircleType
{
	NCNameList axisLabels optional,
	XSD.String gid optional,
	Id id optional,
	XSD.PositiveInteger srsDimension optional,
	XSD.AnyURI srsName optional,
	NCNameList uomLabels optional,
	CenterGroup centerGroup,
	LengthType radius
}
with {
  variant (axisLabels) "attribute";
  variant (gid) "attribute";
  variant (id) "attribute";
  variant (srsDimension) "attribute";
  variant (srsName) "attribute";
  variant (uomLabels) "attribute";
};


type EllipseType Ellipse
with {
  variant "element";
};


type record EllipseType
{
	NCNameList axisLabels optional,
	XSD.String gid optional,
	Id id optional,
	XSD.PositiveInteger srsDimension optional,
	XSD.AnyURI srsName optional,
	NCNameList uomLabels optional,
	CenterGroup centerGroup,
	LengthType semiMajorAxis,
	LengthType semiMinorAxis,
	AngleType orientation
}
with {
  variant (axisLabels) "attribute";
  variant (gid) "attribute";
  variant (id) "attribute";
  variant (srsDimension) "attribute";
  variant (srsName) "attribute";
  variant (uomLabels) "attribute";
};


type ArcBandType ArcBand
with {
  variant "element";
};


type record ArcBandType
{
	NCNameList axisLabels optional,
	XSD.String gid optional,
	Id id optional,
	XSD.PositiveInteger srsDimension optional,
	XSD.AnyURI srsName optional,
	NCNameList uomLabels optional,
	CenterGroup centerGroup,
	LengthType innerRadius,
	LengthType outerRadius,
	AngleType startAngle,
	AngleType openingAngle
}
with {
  variant (axisLabels) "attribute";
  variant (gid) "attribute";
  variant (id) "attribute";
  variant (srsDimension) "attribute";
  variant (srsName) "attribute";
  variant (uomLabels) "attribute";
};


type PrismType Prism
with {
  variant "element";
};


type record PrismType
{
	NCNameList axisLabels optional,
	XSD.String gid optional,
	Id id optional,
	XSD.PositiveInteger srsDimension optional,
	XSD.AnyURI srsName optional,
	NCNameList uomLabels optional,
	SurfacePropertyType base,
	LengthType height
}
with {
  variant (axisLabels) "attribute";
  variant (gid) "attribute";
  variant (id) "attribute";
  variant (srsDimension) "attribute";
  variant (srsName) "attribute";
  variant (uomLabels) "attribute";
};


type SphereType Sphere
with {
  variant "element";
};


type record SphereType
{
	NCNameList axisLabels optional,
	XSD.String gid optional,
	Id id optional,
	XSD.PositiveInteger srsDimension optional,
	XSD.AnyURI srsName optional,
	NCNameList uomLabels optional,
	CenterGroup centerGroup,
	LengthType radius
}
with {
  variant (axisLabels) "attribute";
  variant (gid) "attribute";
  variant (id) "attribute";
  variant (srsDimension) "attribute";
  variant (srsName) "attribute";
  variant (uomLabels) "attribute";
};


type EllipsoidType Ellipsoid
with {
  variant "element";
};


type record EllipsoidType
{
	NCNameList axisLabels optional,
	XSD.String gid optional,
	Id id optional,
	XSD.PositiveInteger srsDimension optional,
	XSD.AnyURI srsName optional,
	NCNameList uomLabels optional,
	CenterGroup centerGroup,
	LengthType semiMajorAxis,
	LengthType semiMinorAxis,
	LengthType verticalAxis,
	AngleType orientation
}
with {
  variant (axisLabels) "attribute";
  variant (gid) "attribute";
  variant (id) "attribute";
  variant (srsDimension) "attribute";
  variant (srsName) "attribute";
  variant (uomLabels) "attribute";
};


type union CenterGroup
{
	Pos pos,
	PointProperty pointProperty
}
with {
  variant "untagged";
  variant (pos) "namespace as 'http://www.opengis.net/gml' prefix 'gml'";
  variant (pointProperty) "namespace as 'http://www.opengis.net/gml' prefix 'gml'";
};


}
with {
  encode "XML";
  variant "namespace as 'http://www.opengis.net/pidflo/1.0' prefix 'gs'";
  variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
  variant "elementFormQualified";
}
Loading