Class OwsServiceKey

java.lang.Object
org.n52.shetland.ogc.ows.service.OwsServiceKey
All Implemented Interfaces:
Comparable<OwsServiceKey>

public class OwsServiceKey extends Object implements Comparable<OwsServiceKey>
This class defines a key for OWS services which contains the service name and the service version.
Since:
1.0.0
  • Constructor Details

    • OwsServiceKey

      public OwsServiceKey(String service, String version)
      Constructor
      Parameters:
      service - Service name
      version - Service version
  • Method Details

    • getService

      public String getService()
      Get the service name
      Returns:
      The service name
    • hasService

      public boolean hasService()
      Check if the service name is not null.
      Returns:
      true, if the service name is not null.
    • getVersion

      public String getVersion()
      Get the service version
      Returns:
      The service version
    • hasVersion

      public boolean hasVersion()
      Check if the service version is not null.
      Returns:
      true, if the service version is not null.
    • compareTo

      public int compareTo(OwsServiceKey other)
      Specified by:
      compareTo in interface Comparable<OwsServiceKey>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object