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>
public class SosOffering extends AbstractFeature implements Comparable<SosOffering>
class represents an offering in the SOS database- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description SosOffering(String procedureIdentifier)constructor with procedure identifierSosOffering(String identifier, boolean generateName)constructorSosOffering(String identifier, String name)constructorSosOffering(String identifier, CodeType name)constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(SosOffering o)booleanequals(Object o)static SosOfferingfrom(SweAbstractSimpleType<?> type)Creates a set of SosOfferings from SWE simple type.static Set<SosOffering>fromMap(Map<String,String> map)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.StringgetOfferingName()Get offering nameinthashCode()booleanisParentOffering()voidsetParentOfferingFlag(boolean parentOfferingFlag)Set if offering is from parent procedure or notStringtoString()-
Methods inherited from class org.n52.shetland.ogc.gml.AbstractFeature
accept, copyTo, getDefaultElementEncoding, getXml, isEncoded, isSetDefaultElementEncoding, isSetXml, setDefaultElementEncoding, setXml, wasEncoded
-
Methods 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 Detail
-
SosOffering
public SosOffering(String identifier, String name)
constructor- Parameters:
identifier- offering identifiername- offering name
-
SosOffering
public SosOffering(String identifier, boolean generateName)
constructor- Parameters:
identifier- offering identifiergenerateName- Indicator whether the name should be generated.
-
SosOffering
public SosOffering(String identifier, CodeType name)
constructor- Parameters:
identifier- offering identifiername- offering name
-
SosOffering
public SosOffering(String procedureIdentifier)
constructor with procedure identifier- Parameters:
procedureIdentifier- Procedure identifier
-
-
Method Detail
-
getOfferingName
public String 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
public int compareTo(SosOffering o)
- Specified by:
compareToin interfaceComparable<SosOffering>
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAbstractGML
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractGML
-
fromMap
public static Set<SosOffering> fromMap(Map<String,String> map)
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
public static Set<SosOffering> fromSet(Set<SweAbstractSimpleType<?>> set)
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
public static SosOffering from(SweAbstractSimpleType<?> type)
Creates a set of SosOfferings from SWE simple type.- Parameters:
type- the type (may be null)- Returns:
- the set (never null)
-
-