Class Helper

java.lang.Object
org.openscada.opc.dcom.common.impl.Helper

public class Helper extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Object[]
    callRespectSFALSE(org.jinterop.dcom.core.IJIComObject object, org.jinterop.dcom.core.JICallBuilder callObject)
    Make the COM call but do not treat S_FALSE as error condition for the whole call
    static org.jinterop.dcom.core.JIVariant
    fixVariant(org.jinterop.dcom.core.JIVariant value)
    Perform some fixes on the variant when writing it to OPC items.

    Methods inherited from class java.lang.Object

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

    • Helper

      public Helper()
  • Method Details

    • callRespectSFALSE

      public static Object[] callRespectSFALSE(org.jinterop.dcom.core.IJIComObject object, org.jinterop.dcom.core.JICallBuilder callObject) throws org.jinterop.dcom.common.JIException
      Make the COM call but do not treat S_FALSE as error condition for the whole call
      Parameters:
      object - the object to make to call on
      callObject - the call object
      Returns:
      the result of the call
      Throws:
      org.jinterop.dcom.common.JIException
    • fixVariant

      public static org.jinterop.dcom.core.JIVariant fixVariant(org.jinterop.dcom.core.JIVariant value) throws org.jinterop.dcom.common.JIException
      Perform some fixes on the variant when writing it to OPC items. This method only changes control information on the variant and not the value itself!
      Parameters:
      value - the value to fix
      Returns:
      the fixed value
      Throws:
      org.jinterop.dcom.common.JIException - In case something goes wrong