OCD element

Type: Tocd
Namespace: http://www.osgi.org/xmlns/metatype/v1.2.0
XML Schema: ocd.xsd

Java class for Tocd complex type.

The following schema fragment specifies the expected content contained within this class.

<complexType name="Tocd">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="AD" type="{http://www.osgi.org/xmlns/metatype/v1.2.0}Tad" maxOccurs="unbounded"/>
<element name="Icon" type="{http://www.osgi.org/xmlns/metatype/v1.2.0}Ticon" maxOccurs="unbounded" minOccurs="0"/>
<any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
</sequence>
<attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="description" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
<anyAttribute/>
</restriction>
</complexContent>
</complexType>

Example XML

<?xml version="1.0" encoding="UTF-8"?> <OCD xmlns="http://www.osgi.org/xmlns/metatype/v1.2.0" name="..." description="..." id="..."> <AD name="..." description="..." id="..." type="..." cardinality="..." min="..." max="..." default="..." required="..."> <Option label="..." value="..." /> <Option label="..." value="..."> <!--...--> </Option> <!--...more "Option" elements...--> </AD> <AD name="..." description="..." id="..." type="..." cardinality="..." min="..." max="..." default="..." required="..."> <!--...--> </AD> <!--...more "AD" elements...--> <Icon resource="..." size="..." /> <Icon resource="..." size="..."> <!--...--> </Icon> <!--...more "Icon" elements...--> </OCD>

Example JSON

{ "name" : "...", "description" : "...", "id" : "...", "AD" : [ { "name" : "...", "description" : "...", "id" : "...", "type" : "String", "cardinality" : ..., "min" : "...", "max" : "...", "default" : "...", "required" : false, "Option" : [ { "label" : "...", "value" : "..." }, ... ] }, ... ], "Icon" : [ { "resource" : "...", "size" : ... }, ... ] }