Skip to content

Package: DevicePackageBundleInfo

DevicePackageBundleInfo

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.service.device.management.packages.model;
13:
14: import javax.xml.bind.annotation.XmlAccessType;
15: import javax.xml.bind.annotation.XmlAccessorType;
16: import javax.xml.bind.annotation.XmlElement;
17: import javax.xml.bind.annotation.XmlRootElement;
18: import javax.xml.bind.annotation.XmlType;
19:
20: /**
21: * Device package bundle information definition.
22: *
23: * @since 1.0
24: */
25: @XmlRootElement(name = "devicePackageBundleInfo")
26: @XmlAccessorType(XmlAccessType.PROPERTY)
27: @XmlType(factoryClass = DevicePackageXmlRegistry.class, factoryMethod = "newDevicePackageBundleInfo")
28: public interface DevicePackageBundleInfo {
29:
30: /**
31: * Get the package bundle name
32: *
33: * @return
34: */
35: @XmlElement(name = "name")
36: String getName();
37:
38: /**
39: * Set the package bundle name
40: *
41: * @param name
42: */
43: void setName(String name);
44:
45: /**
46: * Get the package bundle version
47: *
48: * @return
49: */
50: @XmlElement(name = "version")
51: String getVersion();
52:
53: /**
54: * Set the package bundle version
55: *
56: * @param version
57: */
58: void setVersion(String version);
59: }