Package org.n52.shetland.ogc.sos
Class SosOffering
java.lang.Object
org.n52.shetland.ogc.gml.AbstractGML
org.n52.shetland.ogc.gml.AbstractFeature
org.n52.shetland.ogc.sos.SosOffering
- All Implemented Interfaces:
Comparable<SosOffering>,HasDefaultEncoding<AbstractFeature>
class represents an offering in the SOS database
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSosOffering(String procedureIdentifier) constructor with procedure identifierSosOffering(String identifier, boolean generateName) constructorSosOffering(String identifier, String name) constructorSosOffering(String identifier, CodeType name) constructor -
Method Summary
Modifier and TypeMethodDescriptionintbooleanstatic SosOfferingfrom(SweAbstractSimpleType<?> type) Creates a set of SosOfferings from SWE simple type.static Set<SosOffering> Creates a set of SosOfferings from a map containing identifiers as keys and names as values.static Set<SosOffering> fromSet(Set<SweAbstractSimpleType<?>> set) Creates a set of SosOfferings from a set containing identifiers as keys and names as values.Get offering nameinthashCode()booleanvoidsetParentOfferingFlag(boolean parentOfferingFlag) Set if offering is from parent procedure or nottoString()Methods inherited from class org.n52.shetland.ogc.gml.AbstractFeature
accept, copyTo, getDefaultElementEncoding, getXml, isEncoded, isSetDefaultElementEncoding, isSetXml, setDefaultElementEncoding, setXml, wasEncodedMethods inherited from class org.n52.shetland.ogc.gml.AbstractGML
addMetaDataProperty, addMetaDataProperty, addName, addName, addName, copyTo, getDescription, getFirstName, getGmlId, getHumanReadableIdentifier, getHumanReadableIdentifierCodeWithAuthority, getIdentifier, getIdentifierCodeWithAuthority, getMetaDataProperty, getName, getOriginalIdentifier, getOriginalIdentifierCodeWithAuthority, isReferenced, isSetDescription, isSetGmlID, isSetHumanReadableIdentifier, isSetIdentifier, isSetMetaDataProperty, isSetName, isSetOriginalIdentifier, setDescription, setGmlId, setHumanReadableIdentifier, setHumanReadableIdentifier, setHumanReadableIdentifierAsIdentifier, setIdentifier, setIdentifier, setMetaDataProperty, setName, setName
-
Constructor Details
-
SosOffering
constructor- Parameters:
identifier- offering identifiername- offering name
-
SosOffering
constructor- Parameters:
identifier- offering identifiergenerateName- Indicator whether the name should be generated.
-
SosOffering
constructor- Parameters:
identifier- offering identifiername- offering name
-
SosOffering
constructor with procedure identifier- Parameters:
procedureIdentifier- Procedure identifier
-
-
Method Details
-
getOfferingName
Get offering name- Returns:
- Returns the name.
-
setParentOfferingFlag
public void setParentOfferingFlag(boolean parentOfferingFlag) Set if offering is from parent procedure or not- Parameters:
parentOfferingFlag- Offering is from parent procedure or not
-
isParentOffering
public boolean isParentOffering()- Returns:
- offering is from parent procedure or not
-
compareTo
- Specified by:
compareToin interfaceComparable<SosOffering>
-
toString
-
equals
- Overrides:
equalsin classAbstractGML
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractGML
-
fromMap
Creates a set of SosOfferings from a map containing identifiers as keys and names as values.- Parameters:
map- the map (may be null)- Returns:
- the set (never null)
-
fromSet
Creates a set of SosOfferings from a set containing identifiers as keys and names as values.- Parameters:
set- the set (may be null)- Returns:
- the set (never null)
-
from
Creates a set of SosOfferings from SWE simple type.- Parameters:
type- the type (may be null)- Returns:
- the set (never null)
-