Java Code Examples for org.eclipse.smarthome.core.thing.ThingUID#getThingTypeUID()

The following examples show how to use org.eclipse.smarthome.core.thing.ThingUID#getThingTypeUID() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DiscoveryResultBuilder.java    From smarthome with Eclipse Public License 2.0 4 votes vote down vote up
private DiscoveryResultBuilder(ThingUID thingUID) {
    this.thingTypeUID = thingUID.getThingTypeUID();
    this.thingUID = thingUID;
}
 
Example 2
Source File: DiscoveryResultImpl.java    From smarthome with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Creates a new instance of this class with the specified parameters.
 *
 * @param thingUID
 *            the Thing UID to be set (must not be null). If a {@code Thing} disappears and is discovered again, the
 *            same {@code Thing} ID
 *            must be created. A typical {@code Thing} ID could be the
 *            serial number. It's usually <i>not</i> a product name.
 * @param properties the properties to be set (could be null or empty)
 * @param representationProperty the representationProperty to be set (could be null or empty)
 * @param label the human readable label to set (could be null or empty)
 * @param bridgeUID the unique bridge ID to be set
 * @param timeToLive time to live in seconds
 *
 * @throws IllegalArgumentException
 *             if the Thing type UID or the Thing UID is null
 * @deprecated use {@link #DiscoveryResultImpl(ThingUID, ThingTypeUID, ThingUID, Map, String, String, long)}
 *             instead.
 */
@Deprecated
public DiscoveryResultImpl(ThingUID thingUID, ThingUID bridgeUID, Map<String, Object> properties,
        String representationProperty, String label, long timeToLive) throws IllegalArgumentException {
    this(thingUID.getThingTypeUID(), thingUID, bridgeUID, properties, representationProperty, label, timeToLive);
}