Class MdibVersionUtil

java.lang.Object
org.somda.sdc.glue.common.MdibVersionUtil

public class MdibVersionUtil extends Object
Utility functions for the MdibVersion container.
  • Method Details

    • setMdibVersion

      public <T> void setMdibVersion(MdibVersion mdibVersion, T target) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException
      Stores MdibVersion attributes in any MDIB version supporting objects.
      Type Parameters:
      T - any type that supports setSequenceId, setInstanceId and setMdibVersion (e.g., Mdib.
      Parameters:
      mdibVersion - the MdibVersion to store.
      target - the target where to store sequence id, instance id and version from given MdibVersion.
      Throws:
      NoSuchMethodException - in case one of the methods setSequenceId, setInstanceId and setMdibVersion does not exist.
      InvocationTargetException - in case one of the methods setSequenceId, setInstanceId and setMdibVersion cannot be applied on target.
      IllegalAccessException - in case one of the methods setSequenceId, setInstanceId and setMdibVersion cannot be applied on target.
    • setMdibVersion

      public void setMdibVersion(MdibVersion mdibVersion, org.somda.sdc.biceps.model.message.AbstractReport target)
      Sets MdibVersion for any abstract report.
      Parameters:
      mdibVersion - version to store
      target - report
    • getMdibVersion

      public MdibVersion getMdibVersion(org.somda.sdc.biceps.model.message.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

      public MdibVersion getMdibVersion(org.somda.sdc.biceps.model.message.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.