/******************************************************************************
* Copyright (c) 2000-2025 Ericsson Telecom AB
*
* XSD to TTCN-3 Translator
*
* 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
*
* Contributors:
*   Balasko, Jeno
*   Szabo, Bence Janos
*
******************************************************************************/
//
//  File:          www_example_org_enumeration_restriction3.ttcn
//  Description:
//  References:
//  Rev:
//  Prodnr:
//  Updated:       Tue May 31 11:21:08 2015
//  Contact:       http://ttcn.ericsson.se
//
////////////////////////////////////////////////////////////////////////////////
//	Generated from file(s):
//	- enumeration_restriction3.xsd
//			/* xml version = "1.0" encoding = "UTF-8" */
//			/* targetnamespace = "www.example.org/enumeration_restriction3" */
////////////////////////////////////////////////////////////////////////////////
//     Modification header(s):
//-----------------------------------------------------------------------------
//  Modified by:
//  Modification date:
//  Description:
//  Modification contact:
//------------------------------------------------------------------------------
////////////////////////////////////////////////////////////////////////////////


module www_example_org_enumeration_restriction3 {


import from XSD all;


type CType C
with {
  variant "element";
};


type enumerated CType
{
	b2,
	numbers,
	something,
	something_1,
	uNKNOWN
}
with {
  variant "text 'b2' as capitalized";
  variant "text 'numbers' as '&lt;&gt;&quot;&amp;&apos;numbers&lt;&gt;&quot;&amp;&apos;'";
  variant "text 'something' as '&apos;&gt;something&apos;&gt;'";
  variant "text 'something_1' as '&quot;&gt;something&quot;&gt;&amp;&amp;'";
  variant "text 'uNKNOWN' as capitalized";
};


type enumerated CTypeEnum
{
	b2
}
with {
  variant "text 'b2' as capitalized";
};


type CTypeEnum C2
with {
  variant "element";
};


type enumerated Mountainbikesize
{
	medium,
	small
}
with {
  variant "name as uncapitalized";
};


type record FamilyMountainBikeSizes
{
	XSD.String familyMember optional,
	Mountainbikesize base
}
with {
  variant (familyMember) "attribute";
  variant (base) "untagged";
};


type record ChildMountainBikeSizes
{
	XSD.String familyMember optional,
	enumerated {
		small
	} base
}
with {
  variant (familyMember) "attribute";
  variant (base) "untagged";
};


type enumerated NMTokens
{
	vxmlcurrency,
	vxmldate,
	vxmldigits,
	vxmlnumber,
	vxmltime
}
with {
  variant "text 'vxmlcurrency' as 'vxml:currency'";
  variant "text 'vxmldate' as 'vxml:date'";
  variant "text 'vxmldigits' as 'vxml:digits'";
  variant "text 'vxmlnumber' as 'vxml:number'";
  variant "text 'vxmltime' as 'vxml:time'";
};


type enumerated IDRefs
{
	nmtokens_ref,
	qname_ref
};


/* Still unsupported QName */


type XSD.QName QName;


}
with {
  encode "XML";
  variant "namespace as 'www.example.org/enumeration_restriction3' prefix 'nse'";
  variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
}
