public class ServiceType extends Object
urn:my-domain-namespace:service:MyService:1
.
Although decimal versions are accepted and parsed, the version used for comparison is only the integer withou the fraction.
Modifier and Type | Field and Description |
---|---|
static Pattern |
BROKEN_PATTERN |
static Pattern |
PATTERN |
Constructor and Description |
---|
ServiceType(String namespace,
String type) |
ServiceType(String namespace,
String type,
int version) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getNamespace() |
String |
getType() |
int |
getVersion() |
int |
hashCode() |
boolean |
implementsVersion(ServiceType that) |
String |
toFriendlyString() |
String |
toString() |
static ServiceType |
valueOf(String s) |
public static final Pattern PATTERN
public static final Pattern BROKEN_PATTERN
public String getNamespace()
public String getType()
public int getVersion()
public static ServiceType valueOf(String s) throws InvalidValueException
UDAServiceType
or a more generic ServiceType
.InvalidValueException
public boolean implementsVersion(ServiceType that)
true
if this type's namespace/name matches the other type's namespace/name and
this type's version is equal or higher than the given types version.public String toFriendlyString()
Copyright © 2016 4th Line GmbH, Switzerland. All rights reserved.