AD element

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

Java class for Tad complex type.

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

<complexType name="Tad">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="Option" type="{http://www.osgi.org/xmlns/metatype/v1.2.0}Toption" maxOccurs="unbounded" minOccurs="0"/>
<any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
</sequence>
<attribute name="name" 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" />
<attribute name="type" use="required" type="{http://www.osgi.org/xmlns/metatype/v1.2.0}Tscalar" />
<attribute name="cardinality" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
<attribute name="min" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="max" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="default" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="required" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
<anyAttribute/>
</restriction>
</complexContent>
</complexType>

Example XML

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

Example JSON

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