Skip to content

Package: DeviceInventoryItemImpl

DeviceInventoryItemImpl

nameinstructionbranchcomplexitylinemethod
DeviceInventoryItemImpl()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
getItemType()
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%
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%
setItemType(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%
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) 2021, 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.management.inventory.model.inventory.internal;
14:
15: import org.eclipse.kapua.service.device.management.inventory.model.inventory.DeviceInventoryItem;
16:
17: /**
18: * {@link DeviceInventoryItem} implementation.
19: *
20: * @since 1.5.0
21: */
22: public class DeviceInventoryItemImpl implements DeviceInventoryItem {
23:
24: private String name;
25: private String version;
26: private String itemType;
27:
28: /**
29: * Constructor.
30: *
31: * @since 1.5.0
32: */
33: public DeviceInventoryItemImpl() {
34: }
35:
36: @Override
37: public String getName() {
38: return name;
39: }
40:
41: @Override
42: public void setName(String name) {
43: this.name = name;
44: }
45:
46: @Override
47: public String getVersion() {
48: return version;
49: }
50:
51: @Override
52: public void setVersion(String version) {
53: this.version = version;
54: }
55:
56: @Override
57: public String getItemType() {
58: return itemType;
59: }
60:
61: @Override
62: public void setItemType(String itemType) {
63: this.itemType = itemType;
64: }
65: }