Package communications.portable
Class SupportData
- java.lang.Object
-
- communications.portable.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 Summary
Constructors Constructor Description SupportData()
required forPortable
sSupportData(String setType, PolicyItem policyItem)
Create a newSupportData
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addComponentsTo(de.dlr.gitlab.fame.communication.transfer.ComponentCollector collector)
required forPortable
s<T> T
getPolicyOfType(Class<T> type)
Returns PolicyItem of requested class type - if types do not match an Exception is thrownString
getSetType()
void
populate(de.dlr.gitlab.fame.communication.transfer.ComponentProvider provider)
required forPortable
s
-
-
-
Constructor Detail
-
SupportData
public SupportData()
required forPortable
s
-
SupportData
public SupportData(String setType, PolicyItem policyItem)
Create a newSupportData
- Parameters:
setType
- associated with aPolicyItem
policyItem
- associated with a set type
-
-
Method Detail
-
addComponentsTo
public void addComponentsTo(de.dlr.gitlab.fame.communication.transfer.ComponentCollector collector)
required forPortable
s- Specified by:
addComponentsTo
in interfacede.dlr.gitlab.fame.communication.transfer.Portable
-
populate
public void populate(de.dlr.gitlab.fame.communication.transfer.ComponentProvider provider)
required forPortable
s- Specified by:
populate
in interfacede.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
-
-