/******************************************************************************
 * Copyright (c) 2000-2025 Ericsson Telecom AB
 * 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
 *   Raduly, Csaba
 *
 ******************************************************************************/
//	Generated from file(s):
//
//	- XTDL.xsd

module xtdl {

type union Widgets
{
	Window window,
	Tabbox tabbox
}
with {
variant "untagged";
};


type Window Windowelem
with {
variant "name as uncapitalized";
variant "element";
};


/* not much of a */
type union Embeddedwidget
{
	Tabbox tabbox
}
with {
variant "untagged";
};


type record Embeddedwidgets
{
	record of Embeddedwidget embeddedwidget_list
}
with {
variant "untagged";
variant (embeddedwidget_list) "untagged";
};


type record Window
{
	float height optional,
	charstring id optional,
	Orientation orientation optional,
	charstring title optional,
	float width optional,
	record of Image image_list,
	Embeddedwidgets embeddedwidgets
}
with {
variant "name as uncapitalized";
variant (height) "attribute";
variant (id) "attribute";
variant (orientation) "defaultForEmpty as 'vertical'";
variant (orientation) "attribute";
variant (title) "attribute";
variant (width) "attribute";
variant (image_list) "untagged";
variant (image_list[-]) "name as 'image'";
};


type record Tabbox
{
	boolean disabled optional,
	float flex optional,
	charstring id optional,
	Tablayout layout optional,
	Tabs tabs,
	Tabpanels tabpanels
}
with {
variant "name as uncapitalized";
variant (disabled) "attribute";
variant (flex) "attribute";
variant (id) "attribute";
variant (layout) "attribute";
};


type record Tabs
{
	record of Tab tab_list
}
with {
variant "name as uncapitalized";
variant (tab_list) "untagged";
variant (tab_list[-]) "name as 'tab'";
};


type record Tab
{
	charstring id optional,
	charstring label_
}
with {
variant "name as uncapitalized";
variant (id) "attribute";
variant (label_) "name as 'label'";
variant (label_) "attribute";
};


type record Tabpanels
{
	record of Tabpanel tabpanel_list
}
with {
variant "name as uncapitalized";
variant (tabpanel_list) "untagged";
variant (tabpanel_list[-]) "name as 'tabpanel'";
};


type record Tabpanel
{
	charstring id optional,
	float maxheight optional,
	Orientation orientation optional,
	Embeddedwidgets embeddedwidgets
}
with {
variant "name as uncapitalized";
variant (id) "attribute";
variant (maxheight) "attribute";
variant (orientation) "attribute";
};


type enumerated Tablayout
{
	cARD,
	lISTCARD,
	sCROLL,
	wRAP
}
with {
variant "text 'cARD' as capitalized";
variant "text 'lISTCARD' as capitalized";
variant "text 'sCROLL' as capitalized";
variant "text 'wRAP' as capitalized";
variant "name as uncapitalized";
};


type record Image
{
	charstring id,
	charstring imagedata optional,
	charstring imageurl optional
}
with {
variant "name as uncapitalized";
variant (id) "attribute";
variant (imagedata) "attribute";
variant (imageurl) "attribute";
};


type enumerated Orientation
{
	horizontal,
	vertical
}
with {
variant "name as uncapitalized";
};


}
with {
encode "XML";
variant "namespace as 'http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'";
variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
variant "elementFormQualified";
}
