Package org.jupnp.model.types
Klasse ServiceType
java.lang.Object
org.jupnp.model.types.ServiceType
- Bekannte direkte Unterklassen:
UDAServiceType
Represents a service type, for example
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.
- Autor:
- Christian Bauer, Jochen Hiller - use SpecificationViolationReporter
-
Feldübersicht
Felder -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungServiceType(String namespace, String type) ServiceType(String namespace, String type, int version) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleangetType()intinthashCode()booleanimplementsVersion(ServiceType that) toString()static ServiceType
-
Felddetails
-
PATTERN
-
BROKEN_PATTERN
-
-
Konstruktordetails
-
ServiceType
-
ServiceType
-
-
Methodendetails
-
getNamespace
-
getType
-
getVersion
public int getVersion() -
valueOf
- Gibt zurück:
- Either a
UDAServiceTypeor a more genericServiceType. - Löst aus:
InvalidValueException
-
implementsVersion
- Gibt zurück:
trueif 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.
-
toFriendlyString
-
toString
-
equals
-
hashCode
public int hashCode()
-