Class SosOffering

    • Constructor Detail

      • 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 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
      • 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)