Skip to content

Package: DeviceQuery

DeviceQuery

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2016, 2020 Eurotech and/or its affiliates and others
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License v1.0
6: * which accompanies this distribution, and is available at
7: * http://www.eclipse.org/legal/epl-v10.html
8: *
9: * Contributors:
10: * Eurotech - initial API and implementation
11: *******************************************************************************/
12: package org.eclipse.kapua.service.device.registry;
13:
14: import javax.xml.bind.annotation.XmlAccessType;
15: import javax.xml.bind.annotation.XmlAccessorType;
16: import javax.xml.bind.annotation.XmlRootElement;
17: import javax.xml.bind.annotation.XmlType;
18:
19: import org.eclipse.kapua.model.query.KapuaQuery;
20:
21: /**
22: * {@link Device} query definition.
23: *
24: * @since 1.0.0
25: *
26: */
27: @XmlRootElement(name = "query")
28: @XmlAccessorType(XmlAccessType.PROPERTY)
29: @XmlType(factoryClass = DeviceXmlRegistry.class, factoryMethod = "newQuery")
30: public interface DeviceQuery extends KapuaQuery {
31:
32: <T> DeviceMatchPredicate<T> matchPredicate(T matchTerm);
33:
34: }