Package org.n52.shetland.ogc.ows.service
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 Summary
Constructors Constructor Description OwsServiceKey(String service, String version)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(OwsServiceKey other)booleanequals(Object o)StringgetService()Get the service nameStringgetVersion()Get the service versioninthashCode()booleanhasService()Check if the service name is not null.booleanhasVersion()Check if the service version is not null.StringtoString()
-
-
-
Method Detail
-
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:
compareToin interfaceComparable<OwsServiceKey>
-
-