Skip to content

Package: DeviceAssets

DeviceAssets

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2017, 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;
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.XmlElement;
20: import javax.xml.bind.annotation.XmlRootElement;
21: import javax.xml.bind.annotation.XmlType;
22: import java.util.List;
23:
24: /**
25: * {@link DeviceAssets} definition.
26: *
27: * @since 1.0.0
28: */
29: @XmlRootElement(name = "deviceAssets")
30: @XmlAccessorType(XmlAccessType.PROPERTY)
31: @XmlType(factoryClass = DeviceAssetXmlRegistry.class, factoryMethod = "newAssetListResult")
32: public interface DeviceAssets extends KapuaSerializable {
33:
34: /**
35: * Get the {@link DeviceAsset} {@link List}
36: *
37: * @return The {@link DeviceAsset} {@link List}.
38: * @since 1.0.0
39: */
40: @XmlElement(name = "deviceAsset")
41: List<DeviceAsset> getAssets();
42:
43: /**
44: * Sets the {@link DeviceAsset} {@link List}.
45: *
46: * @param assets The {@link DeviceAsset} {@link List}.
47: * @since 1.0.0
48: */
49: void setAssets(List<DeviceAsset> assets);
50: }