Skip to content

Package: KuraDeploymentPackage

KuraDeploymentPackage

nameinstructionbranchcomplexitylinemethod
KuraDeploymentPackage()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getBundleInfos()
M: 10 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
getName()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getVersion()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
setBundleInfos(KuraBundleInfo[])
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
setName(String)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
setVersion(String)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2016, 2022 Eurotech and/or its affiliates and others
3: *
4: * This program and the accompanying materials are made
5: * available under the terms of the Eclipse Public License 2.0
6: * which is available at https://www.eclipse.org/legal/epl-2.0/
7: *
8: * SPDX-License-Identifier: EPL-2.0
9: *
10: * Contributors:
11: * Eurotech - initial API and implementation
12: *******************************************************************************/
13: package org.eclipse.kapua.service.device.call.kura.model.deploy;
14:
15: import javax.xml.bind.annotation.XmlAccessType;
16: import javax.xml.bind.annotation.XmlAccessorType;
17: import javax.xml.bind.annotation.XmlElement;
18: import javax.xml.bind.annotation.XmlElementWrapper;
19: import javax.xml.bind.annotation.XmlRootElement;
20: import javax.xml.bind.annotation.XmlType;
21:
22: /**
23: * Kura deployment package.
24: *
25: * @since 1.0
26: */
27: @XmlRootElement(name = "package")
28: @XmlAccessorType(XmlAccessType.FIELD)
29: @XmlType(propOrder = {"name", "version", "bundleInfos"})
30: public class KuraDeploymentPackage {
31:
32: @XmlElement(name = "name")
33: public String name;
34:
35: @XmlElement(name = "version")
36: public String version;
37:
38: @XmlElementWrapper(name = "bundles")
39: @XmlElement(name = "bundle")
40: public KuraBundleInfo[] bundleInfos;
41:
42: /**
43: * Get the deployment package name
44: *
45: * @return
46: */
47: public String getName() {
48: return name;
49: }
50:
51: /**
52: * Set the deployment package name
53: *
54: * @param name
55: */
56: public void setName(String name) {
57: this.name = name;
58: }
59:
60: /**
61: * Get the deployment package version
62: *
63: * @return
64: */
65: public String getVersion() {
66: return version;
67: }
68:
69: /**
70: * Set the deployment package version
71: *
72: * @param version
73: */
74: public void setVersion(String version) {
75: this.version = version;
76: }
77:
78: /**
79: * Get the bundle information array
80: *
81: * @return
82: */
83: public KuraBundleInfo[] getBundleInfos() {
84:• if (bundleInfos == null) {
85: bundleInfos = new KuraBundleInfo[0];
86: }
87:
88: return bundleInfos;
89: }
90:
91: /**
92: * Set the bundle information array
93: *
94: * @param bundleInfos
95: */
96: public void setBundleInfos(KuraBundleInfo[] bundleInfos) {
97: this.bundleInfos = bundleInfos;
98: }
99: }