Skip to content

Package: DeviceExtendedProperty

DeviceExtendedProperty

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.registry;
14:
15: import org.eclipse.kapua.KapuaSerializable;
16:
17: import javax.xml.bind.annotation.XmlAccessType;
18: import javax.xml.bind.annotation.XmlAccessorType;
19: import javax.xml.bind.annotation.XmlRootElement;
20: import javax.xml.bind.annotation.XmlType;
21:
22: /**
23: * {@link Device} extended property definition.
24: *
25: * @since 1.5.0
26: */
27: @XmlRootElement(name = "deviceExtendedProperty")
28: @XmlAccessorType(XmlAccessType.PROPERTY)
29: @XmlType(factoryClass = DeviceXmlRegistry.class, factoryMethod = "newDeviceExtendedProperty")
30: public interface DeviceExtendedProperty extends KapuaSerializable {
31:
32: /**
33: * Gets the group name.
34: *
35: * @return The group name.
36: * @since 1.5.0
37: */
38: String getGroupName();
39:
40: /**
41: * Sets the group name.
42: *
43: * @param groupName The group name.
44: * @since 1.5.0
45: */
46: void setGroupName(String groupName);
47:
48: /**
49: * Gets the name.
50: *
51: * @return The name.
52: * @since 1.5.0
53: */
54: String getName();
55:
56: /**
57: * Sets the name.
58: *
59: * @param name The name.
60: * @since 1.5.0
61: */
62: void setName(String name);
63:
64: /**
65: * Gets the value.
66: *
67: * @return The value.
68: * @since 1.5.0
69: */
70: String getValue();
71:
72: /**
73: * Sets the value.
74: *
75: * @param value The value.
76: * @since 1.5.0
77: */
78: void setValue(String value);
79: }