Klasse ServiceType

java.lang.Object
org.jupnp.model.types.ServiceType
Bekannte direkte Unterklassen:
UDAServiceType

public class ServiceType extends Object
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
  • Felddetails

    • PATTERN

      public static final Pattern PATTERN
    • BROKEN_PATTERN

      public static final Pattern BROKEN_PATTERN
  • Konstruktordetails

    • ServiceType

      public ServiceType(String namespace, String type)
    • ServiceType

      public ServiceType(String namespace, String type, int version)
  • Methodendetails

    • getNamespace

      public String getNamespace()
    • getType

      public String getType()
    • getVersion

      public int getVersion()
    • valueOf

      public static ServiceType valueOf(String s) throws InvalidValueException
      Gibt zurück:
      Either a UDAServiceType or a more generic ServiceType.
      Löst aus:
      InvalidValueException
    • implementsVersion

      public boolean implementsVersion(ServiceType that)
      Gibt zurück:
      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.
    • toFriendlyString

      public String toFriendlyString()
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
    • equals

      public boolean equals(Object o)
      Setzt außer Kraft:
      equals in Klasse Object
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object