Skip navigation links
JNA API 4.2.0
com.sun.jna.platform.win32.COM

Class COMLateBindingObject

  • All Implemented Interfaces:
    NativeMapped


    public class COMLateBindingObject
    extends COMBindingBaseObject
    Helper class to provide basic COM support.
    Author:
    Tobias Wolf, wolf.tobias@gmx.net
    • Constructor Detail

      • COMLateBindingObject

        public COMLateBindingObject(IDispatch iDispatch)
        Instantiates a new cOM object.
        Parameters:
        iDispatch - the i dispatch
      • COMLateBindingObject

        public COMLateBindingObject(Guid.CLSID clsid,
                                    boolean useActiveInstance)
        Instantiates a new cOM object.
        Parameters:
        clsid - the clsid
        useActiveInstance - the use active instance
      • COMLateBindingObject

        public COMLateBindingObject(String progId,
                                    boolean useActiveInstance)
                             throws COMException
        Instantiates a new cOM object.
        Parameters:
        progId - the prog id
        useActiveInstance - the use active instance
        Throws:
        COMException - the automation exception
    • Method Detail

      • getAutomationProperty

        protected IDispatch getAutomationProperty(String propertyName)
        Gets the automation property.
        Parameters:
        propertyName - the property name
        Returns:
        the automation property
      • getAutomationProperty

        protected IDispatch getAutomationProperty(String propertyName,
                                                  COMLateBindingObject comObject)
        Gets the automation property.
        Parameters:
        propertyName - the property name
        comObject - the com object
        Returns:
        the automation property
      • getAutomationProperty

        protected IDispatch getAutomationProperty(String propertyName,
                                                  COMLateBindingObject comObject,
                                                  Variant.VARIANT value)
        Gets the automation property.
        Parameters:
        propertyName - the property name
        comObject - the com object
        value - the value
        Returns:
        the automation property
      • getAutomationProperty

        protected IDispatch getAutomationProperty(String propertyName,
                                                  IDispatch iDispatch)
        Gets the automation property.
        Parameters:
        propertyName - the property name
        iDispatch - the i dispatch
        Returns:
        the automation property
      • getBooleanProperty

        protected boolean getBooleanProperty(String propertyName)
        Gets the boolean property.
        Parameters:
        propertyName - the property name
        Returns:
        the boolean property
      • getDateProperty

        protected Date getDateProperty(String propertyName)
        Gets the date property.
        Parameters:
        propertyName - the property name
        Returns:
        the date property
      • getIntProperty

        protected int getIntProperty(String propertyName)
        Gets the int property.
        Parameters:
        propertyName - the property name
        Returns:
        the int property
      • getShortProperty

        protected short getShortProperty(String propertyName)
        Gets the short property.
        Parameters:
        propertyName - the property name
        Returns:
        the short property
      • getStringProperty

        protected String getStringProperty(String propertyName)
        Gets the string property.
        Parameters:
        propertyName - the property name
        Returns:
        the string property
      • invoke

        protected Variant.VARIANT invoke(String methodName)
        Invoke.
        Parameters:
        methodName - the method name
        Returns:
        the variant
      • invokeNoReply

        protected void invokeNoReply(String methodName,
                                     IDispatch dispatch)
        Invoke no reply.
        Parameters:
        methodName - the method name
        dispatch - the dispatch
      • invokeNoReply

        protected void invokeNoReply(String methodName,
                                     COMLateBindingObject comObject)
        Invoke no reply.
        Parameters:
        methodName - the method name
        comObject - the com object
      • invokeNoReply

        protected void invokeNoReply(String methodName,
                                     IDispatch dispatch,
                                     Variant.VARIANT arg)
        Invoke no reply.
        Parameters:
        methodName - the method name
        dispatch - the dispatch
        arg - the arg
      • invokeNoReply

        protected void invokeNoReply(String methodName,
                                     IDispatch dispatch,
                                     Variant.VARIANT arg1,
                                     Variant.VARIANT arg2)
        Invoke no reply.
        Parameters:
        methodName - the method name
        dispatch - the dispatch
        arg1 - the arg1
        arg2 - the arg2
      • invokeNoReply

        protected void invokeNoReply(String methodName,
                                     COMLateBindingObject comObject,
                                     Variant.VARIANT arg)
        Invoke no reply.
        Parameters:
        methodName - the method name
        comObject - the com object
        arg - the arg
      • invokeNoReply

        protected void invokeNoReply(String methodName,
                                     IDispatch dispatch,
                                     Variant.VARIANT[] args)
        Invoke no reply.
        Parameters:
        methodName - the method name
        dispatch - the dispatch
        args - the args
      • invokeNoReply

        protected void invokeNoReply(String methodName)
        Invoke no reply.
        Parameters:
        methodName - the method name
      • invokeNoReply

        protected void invokeNoReply(String methodName,
                                     Variant.VARIANT arg)
        Invoke no reply.
        Parameters:
        methodName - the method name
        arg - the arg
      • invokeNoReply

        protected void invokeNoReply(String methodName,
                                     Variant.VARIANT[] args)
        Invoke no reply.
        Parameters:
        methodName - the method name
        args - the args
      • invokeNoReply

        protected void invokeNoReply(String methodName,
                                     Variant.VARIANT arg1,
                                     Variant.VARIANT arg2)
        Invoke no reply.
        Parameters:
        methodName - the method name
        arg1 - the arg1
        arg2 - the arg2
      • setProperty

        protected void setProperty(String propertyName,
                                   boolean value)
        Sets the property.
        Parameters:
        propertyName - the property name
        value - the value
      • setProperty

        protected void setProperty(String propertyName,
                                   Date value)
        Sets the property.
        Parameters:
        propertyName - the property name
        value - the value
      • setProperty

        protected void setProperty(String propertyName,
                                   IDispatch value)
        Sets the property.
        Parameters:
        propertyName - the property name
        value - the value
      • setProperty

        protected void setProperty(String propertyName,
                                   int value)
        Sets the property.
        Parameters:
        propertyName - the property name
        value - the value
      • setProperty

        protected void setProperty(String propertyName,
                                   short value)
        Sets the property.
        Parameters:
        propertyName - the property name
        value - the value
      • setProperty

        protected void setProperty(String propertyName,
                                   String value)
        Sets the property.
        Parameters:
        propertyName - the property name
        value - the value
      • setProperty

        protected void setProperty(String propertyName,
                                   IDispatch iDispatch,
                                   Variant.VARIANT value)
        Sets the property.
        Parameters:
        propertyName - the property name
        iDispatch - the i dispatch
        value - the value
      • setProperty

        protected void setProperty(String propertyName,
                                   COMLateBindingObject comObject,
                                   Variant.VARIANT value)
        Sets the property.
        Parameters:
        propertyName - the property name
        comObject - the com object
        value - the value
      • toVariant

        public Variant.VARIANT toVariant()
        To variant.
        Returns:
        the variant
JNA API 4.2.0

Copyright © 2007-2015 Timothy Wall. All Rights Reserved.