Skip to content

Package: KapuaTicon

KapuaTicon

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2016, 2020 Eurotech and/or its affiliates and others
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License v1.0
6: * which accompanies this distribution, and is available at
7: * http://www.eclipse.org/legal/epl-v10.html
8: *
9: * Contributors:
10: * Eurotech - initial API and implementation
11: *******************************************************************************/
12: package org.eclipse.kapua.model.config.metatype;
13:
14: import javax.xml.bind.annotation.XmlAccessType;
15: import javax.xml.bind.annotation.XmlAccessorType;
16: import javax.xml.bind.annotation.XmlAnyAttribute;
17: import javax.xml.bind.annotation.XmlAnyElement;
18: import javax.xml.bind.annotation.XmlAttribute;
19: import javax.xml.bind.annotation.XmlRootElement;
20: import javax.xml.bind.annotation.XmlSchemaType;
21: import javax.xml.bind.annotation.XmlType;
22: import javax.xml.namespace.QName;
23: import java.math.BigInteger;
24: import java.util.List;
25: import java.util.Map;
26:
27: /**
28: * <p>
29: * Java class for Ticon complex type.
30: * <p>
31: * The following schema fragment specifies the expected content contained within this class.
32: *
33: * <pre>
34: * <complexType name="Ticon">
35: * <complexContent>
36: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
37: * <sequence>
38: * <any processContents='lax' maxOccurs="unbounded" minOccurs="0"/>
39: * </sequence>
40: * <attribute name="resource" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
41: * <attribute name="size" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
42: * <anyAttribute/>
43: * </restriction>
44: * </complexContent>
45: * </complexType>
46: * </pre>
47: *
48: * @since 1.0
49: */
50: @XmlRootElement(name = "Icon", namespace = "http://www.osgi.org/xmlns/metatype/v1.2.0")
51: @XmlAccessorType(XmlAccessType.PROPERTY)
52: @XmlType(name = "Icon", namespace = "http://www.osgi.org/xmlns/metatype/v1.2.0", factoryClass = MetatypeXmlRegistry.class, factoryMethod = "newKapuaTicon")
53: public interface KapuaTicon {
54:
55: /**
56: * Gets the value of the any property.
57: * <p>
58: * This accessor method returns a reference to the live list,
59: * not a snapshot. Therefore any modification you make to the
60: * returned list will be present inside the JAXB object.
61: * This is why there is not a <CODE>set</CODE> method for the any property.
62: * <p>
63: * For example, to add a new item, do as follows:
64: *
65: * <pre>
66: * getAny().add(newItem);
67: * </pre>
68: */
69: @XmlAnyElement(lax = true)
70: List<Object> getAny();
71:
72: /**
73: * Gets the value of the resource property.
74: *
75: * @return possible object is {@link String }
76: */
77: @XmlAttribute(name = "resource", required = true)
78: String getResource();
79:
80: /**
81: * Sets the value of the resource property.
82: *
83: * @param value allowed object is {@link String }
84: */
85: void setResource(String value);
86:
87: /**
88: * Gets the value of the size property.
89: *
90: * @return possible object is {@link BigInteger }
91: */
92: @XmlAttribute(name = "size", required = true)
93: @XmlSchemaType(name = "positiveInteger")
94: BigInteger getSize();
95:
96: /**
97: * Sets the value of the size property.
98: *
99: * @param value allowed object is {@link BigInteger }
100: */
101: void setSize(BigInteger value);
102:
103: /**
104: * Gets a map that contains attributes that aren't bound to any typed property on this class.
105: * <p></p>
106: * the map is keyed by the name of the attribute and
107: * the value is the string value of the attribute.
108: * <p>
109: * the map returned by this method is live, and you can add new attribute
110: * by updating the map directly. Because of this design, there's no setter.
111: *
112: * @return always non-null
113: */
114: @XmlAnyAttribute
115: Map<QName, String> getOtherAttributes();
116:
117: }