Package org.somda.sdc.glue.common
Class MdibVersionUtil
-
- All Implemented Interfaces:
public class MdibVersionUtilUtility functions for the MdibVersion container.
-
-
Method Summary
Modifier and Type Method Description <T> voidsetMdibVersion(MdibVersion mdibVersion, T target)Stores MdibVersion attributes in any MDIB version supporting objects. voidsetMdibVersion(MdibVersion mdibVersion, AbstractReport target)Sets MdibVersion for any abstract report. MdibVersiongetMdibVersion(AbstractReport msg)Extracts the MDIB version from a report. MdibVersiongetMdibVersion(EpisodicReport msg)Extracts the MDIB version from an episodic report. MdibVersiongetMdibVersion(AbstractGetResponse msg)Extracts the MDIB version from a get response. -
-
Method Detail
-
setMdibVersion
<T> void setMdibVersion(MdibVersion mdibVersion, T target)
Stores MdibVersion attributes in any MDIB version supporting objects.
- Parameters:
mdibVersion- the MdibVersion to store.target- the target where to store sequence id, instance id and version from given MdibVersion.
-
setMdibVersion
void setMdibVersion(MdibVersion mdibVersion, AbstractReport target)
Sets MdibVersion for any abstract report.
- Parameters:
mdibVersion- version to storetarget- report
-
getMdibVersion
MdibVersion getMdibVersion(AbstractReport msg)
Extracts the MDIB version from a report.
- Parameters:
msg- the report to extract data from.- Returns:
the converted MDIB version. Default values are transformed according to BICEPS's prose information.
-
getMdibVersion
MdibVersion getMdibVersion(EpisodicReport msg)
Extracts the MDIB version from an episodic report.
- Parameters:
msg- the report to extract data from.- Returns:
the converted MDIB version. Default values are transformed according to BICEPS's prose information.
-
getMdibVersion
MdibVersion getMdibVersion(AbstractGetResponse msg)
Extracts the MDIB version from a get response.
- Parameters:
msg- the get response to extract data from.- Returns:
the converted MDIB version. Default values are transformed according to BICEPS's prose information.
-
-
-
-