public class DeviceType extends Object
urn:my-domain-namespace:device:MyDevice:1
.
Although decimal versions are accepted and parsed, the version used for comparison is only the integer without the fraction.
Modifier and Type | Field and Description |
---|---|
static Pattern |
PATTERN |
static String |
UNKNOWN |
Constructor and Description |
---|
DeviceType(String namespace,
String type) |
DeviceType(String namespace,
String type,
int version) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getDisplayString() |
String |
getNamespace() |
String |
getType() |
int |
getVersion() |
int |
hashCode() |
boolean |
implementsVersion(DeviceType that) |
String |
toString() |
static DeviceType |
valueOf(String s) |
public static final String UNKNOWN
public static final Pattern PATTERN
public String getNamespace()
public String getType()
public int getVersion()
public static DeviceType valueOf(String s) throws InvalidValueException
UDADeviceType
or a more generic DeviceType
.InvalidValueException
public boolean implementsVersion(DeviceType that)
public String getDisplayString()
Copyright © 2016 4th Line GmbH, Switzerland. All rights reserved.