Class 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 Details

    • SosOffering

      public SosOffering(String identifier, String name)
      constructor
      Parameters:
      identifier - offering identifier
      name - offering name
    • SosOffering

      public SosOffering(String identifier, boolean generateName)
      constructor
      Parameters:
      identifier - offering identifier
      generateName - Indicator whether the name should be generated.
    • SosOffering

      public SosOffering(String identifier, CodeType name)
      constructor
      Parameters:
      identifier - offering identifier
      name - offering name
    • SosOffering

      public SosOffering(String procedureIdentifier)
      constructor with procedure identifier
      Parameters:
      procedureIdentifier - Procedure identifier
  • Method Details

    • 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:
      compareTo in interface Comparable<SosOffering>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class AbstractGML
    • 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)