Class MdibVersionUtil

  • All Implemented Interfaces:

    
    public class MdibVersionUtil
    
                        

    Utility functions for the MdibVersion container.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      <T> void setMdibVersion(MdibVersion mdibVersion, T target) Stores MdibVersion attributes in any MDIB version supporting objects.
      void setMdibVersion(MdibVersion mdibVersion, AbstractReport target) Sets MdibVersion for any abstract report.
      MdibVersion getMdibVersion(AbstractReport msg) Extracts the MDIB version from a report.
      MdibVersion getMdibVersion(EpisodicReport msg) Extracts the MDIB version from an episodic report.
      MdibVersion getMdibVersion(AbstractGetResponse msg) Extracts the MDIB version from a get response.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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 store
        target - 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.