Package org.n52.shetland.ogc.ows.service
Class OwsServiceKey
java.lang.Object
org.n52.shetland.ogc.ows.service.OwsServiceKey
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(OwsServiceKey other) booleanGet the service nameGet the service versioninthashCode()booleanCheck if the service name is not null.booleanCheck if the service version is not null.toString()
-
Constructor Details
-
OwsServiceKey
Constructor- Parameters:
service- Service nameversion- Service version
-
-
Method Details
-
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
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
- Specified by:
compareToin interfaceComparable<OwsServiceKey>
-
equals
-
hashCode
public int hashCode() -
toString
-