railo.runtime.com
Class COMUtil

java.lang.Object
  extended by railo.runtime.com.COMUtil

public final class COMUtil
extends Object


Constructor Summary
COMUtil()
           
 
Method Summary
static Object toObject(COMObject parent, com.jacob.com.Variant variant, String key)
          translate a Variant Object to Object, when it is a Dispatch translate it to COMWrapper
static Object toObject(COMObject parent, com.jacob.com.Variant variant, String key, Object defaultValue)
          translate a Variant Object to Object, when it is a Dispatch translate it to COMWrapper
static String toStringType(short type)
          translate a short Variant Type Defintion to a String (string,empty,null,short ...)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

COMUtil

public COMUtil()
Method Detail

toObject

public static Object toObject(COMObject parent,
                              com.jacob.com.Variant variant,
                              String key,
                              Object defaultValue)
translate a Variant Object to Object, when it is a Dispatch translate it to COMWrapper

Parameters:
parent -
variant -
key -
Returns:
Object from Variant

toObject

public static Object toObject(COMObject parent,
                              com.jacob.com.Variant variant,
                              String key)
                       throws ExpressionException
translate a Variant Object to Object, when it is a Dispatch translate it to COMWrapper

Parameters:
parent -
variant -
key -
Returns:
Object from Variant
Throws:
ExpressionException

toStringType

public static String toStringType(short type)
translate a short Variant Type Defintion to a String (string,empty,null,short ...)

Parameters:
type -
Returns:
String Variant Type


Copyright © 2012 Railo