Class SupportData

  • All Implemented Interfaces:
    de.dlr.gitlab.fame.communication.transfer.Portable

    public final class SupportData
    extends Object
    implements de.dlr.gitlab.fame.communication.transfer.Portable
    Information on the support policy applicable to the associated set type
    Author:
    Johannes Kochems, Christoph Schimeczek
    • Constructor Detail

      • SupportData

        public SupportData()
        required for Portables
      • SupportData

        public SupportData​(String setType,
                           PolicyItem policyItem)
        Create a new SupportData
        Parameters:
        setType - associated with a PolicyItem
        policyItem - associated with a set type
    • Method Detail

      • addComponentsTo

        public void addComponentsTo​(de.dlr.gitlab.fame.communication.transfer.ComponentCollector collector)
        required for Portables
        Specified by:
        addComponentsTo in interface de.dlr.gitlab.fame.communication.transfer.Portable
      • populate

        public void populate​(de.dlr.gitlab.fame.communication.transfer.ComponentProvider provider)
        required for Portables
        Specified by:
        populate in interface de.dlr.gitlab.fame.communication.transfer.Portable
      • getSetType

        public String getSetType()
        Returns:
        SetType associated with the also contained PolicyItem
      • getPolicyOfType

        public <T> T getPolicyOfType​(Class<T> type)
        Returns PolicyItem of requested class type - if types do not match an Exception is thrown
        Type Parameters:
        T - requested type of PolicyItem
        Parameters:
        type - class of requested PolicyItem
        Returns:
        object of requested type of PolicyItem type
        Throws:
        RuntimeException - if contained PolicyItem is of type other than requested type