MetaData element

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

Java class for Tmetadata complex type.

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

<complexType name="Tmetadata">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="OCD" type="{http://www.osgi.org/xmlns/metatype/v1.2.0}Tocd" maxOccurs="unbounded" minOccurs="0"/>
<element name="Designate" type="{http://www.osgi.org/xmlns/metatype/v1.2.0}Tdesignate" maxOccurs="unbounded" minOccurs="0"/>
<any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
</sequence>
<attribute name="localization" type="{http://www.w3.org/2001/XMLSchema}string" />
<anyAttribute/>
</restriction>
</complexContent>
</complexType>

Example XML

<?xml version="1.0" encoding="UTF-8"?> <MetaData xmlns="http://www.osgi.org/xmlns/metatype/v1.2.0" localization="..."> <OCD 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> <OCD name="..." description="..." id="..."> <!--...--> </OCD> <!--...more "OCD" elements...--> <Designate pid="..." factoryPid="..." bundle="..." optional="..." merge="..."> <Object ocdref="..."> <Attribute adref="..." content="..."> <Value>...</Value> <Value>...</Value> <!--...more "Value" elements...--> </Attribute> <Attribute adref="..." content="..."> <!--...--> </Attribute> <!--...more "Attribute" elements...--> </Object> </Designate> <Designate pid="..." factoryPid="..." bundle="..." optional="..." merge="..."> <!--...--> </Designate> <!--...more "Designate" elements...--> </MetaData>

Example JSON

{ "localization" : "...", "OCD" : [ { "name" : "...", "description" : "...", "id" : "...", "AD" : [ { "name" : "...", "description" : "...", "id" : "...", "type" : "String", "cardinality" : ..., "min" : "...", "max" : "...", "default" : "...", "required" : false, "Option" : [ { "label" : "...", "value" : "..." }, ... ] }, ... ], "Icon" : [ { "resource" : "...", "size" : ... }, ... ] }, ... ], "Designate" : [ { "pid" : "...", "factoryPid" : "...", "bundle" : "...", "optional" : false, "merge" : false, "Object" : { "ocdref" : "...", "Attribute" : [ { "adref" : "...", "content" : "...", "Value" : [ "...", ... ] }, ... ] } }, ... ] }