Skip to content

Package: XmlAdaptedDeviceAssetChannel

XmlAdaptedDeviceAssetChannel

nameinstructionbranchcomplexitylinemethod
XmlAdaptedDeviceAssetChannel()
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%
getError()
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%
getMode()
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%
getTimestamp()
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%
setError(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%
setMode(DeviceAssetChannelMode)
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%
setTimestamp(Date)
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.management.asset.xml;
14:
15: import org.eclipse.kapua.model.xml.DateXmlAdapter;
16: import org.eclipse.kapua.model.xml.XmlAdaptedNameTypeValueObject;
17: import org.eclipse.kapua.model.xml.XmlAdaptedTypeValueObject;
18: import org.eclipse.kapua.service.device.management.asset.DeviceAssetChannel;
19: import org.eclipse.kapua.service.device.management.asset.DeviceAssetChannelMode;
20:
21: import javax.xml.bind.annotation.XmlAccessType;
22: import javax.xml.bind.annotation.XmlAccessorType;
23: import javax.xml.bind.annotation.XmlElement;
24: import javax.xml.bind.annotation.XmlType;
25: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
26: import java.util.Date;
27:
28: /**
29: * {@link DeviceAssetChannel} {@link XmlAdaptedTypeValueObject} implementation.
30: *
31: * @since 1.0.0
32: */
33: @XmlAccessorType(XmlAccessType.FIELD)
34: @XmlType(name = "")
35: public class XmlAdaptedDeviceAssetChannel extends XmlAdaptedNameTypeValueObject {
36:
37: @XmlElement(name = "mode")
38: private DeviceAssetChannelMode mode;
39:
40: @XmlElement(name = "error")
41: private String error;
42:
43: @XmlElement(name = "timestamp")
44: @XmlJavaTypeAdapter(DateXmlAdapter.class)
45: private Date timestamp;
46:
47: public DeviceAssetChannelMode getMode() {
48: return mode;
49: }
50:
51: public void setMode(DeviceAssetChannelMode mode) {
52: this.mode = mode;
53: }
54:
55: public String getError() {
56: return error;
57: }
58:
59: public void setError(String error) {
60: this.error = error;
61: }
62:
63: public Date getTimestamp() {
64: return timestamp;
65: }
66:
67: public void setTimestamp(Date timestamp) {
68: this.timestamp = timestamp;
69: }
70: }