public class

BridgeUtils

extends Object
java.lang.Object
   ↳ com.microstrategy.utils.BridgeUtils

Class Overview

This class is only used internally for BridgeUtils .Net project.

Summary

Public Constructors
BridgeUtils()
Constructor.
Public Methods
String createArrayInstance(String componentType, int length)
String createInstance(String className, ObjectArray classTypes, ObjectArray values)
Create Instance.
String createInstance(String className)
Creates Instance.
int getArrayLength(String instanceKey)
Returns the length of the array, if the instance is an array.
String getField(String instanceKey, String className, String fieldName)
Access the field.
Object getInstance(String key)
Returns the instance.
String getValueFromArray(String instanceKey, int index)
Returns the value in the array by index.
String invoke(String instanceKey, String className, String methodName, ObjectArray classTypes, ObjectArray values)
Invokes a method.
static boolean parseBool(String s)
static byte parseByte(String s)
static char parseChar(String s)
static int parseInt(String s)
static short parseShort(String s)
static String parseString(String s)
void removeInstance(String key)
Removes instance by key
void setField(String instanceKey, String className, String fieldName, String serializedValue)
void setValueToArray(String instanceKey, int index, int value)
void setValueToArray(String instanceKey, int index, boolean value)
void setValueToArray(String instanceKey, int index, String value)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public BridgeUtils ()

Constructor.

Public Methods

public String createArrayInstance (String componentType, int length)

Throws
Exception

public String createInstance (String className, ObjectArray classTypes, ObjectArray values)

Create Instance.

Parameters
className The name of the Class.
classTypes The parameter types.
values The parameter values.
Returns
  • The instance key.
Throws
Exception

public String createInstance (String className)

Creates Instance.

Parameters
className The class name of the instance.
Returns
  • the instance key.
Throws
Exception

public int getArrayLength (String instanceKey)

Returns the length of the array, if the instance is an array.

Parameters
instanceKey The instance key of the array.
Returns
  • the length of the array, if the instance is an array.

public String getField (String instanceKey, String className, String fieldName)

Access the field.

Parameters
instanceKey The instance key indicates the instance we are accessing the field on. If the field is a static field, this can be null.
className The name of the class.
fieldName The name fo the field.
Returns
  • the serialized string indicates the return value.
Throws
Exception

public Object getInstance (String key)

Returns the instance.

Parameters
key The key of the instance.
Returns
  • the instance if found. Otherwise returns null.

public String getValueFromArray (String instanceKey, int index)

Returns the value in the array by index.

Parameters
instanceKey The instance key of the array.
index The index of the array.
Returns
  • the value in the array by index.

public String invoke (String instanceKey, String className, String methodName, ObjectArray classTypes, ObjectArray values)

Invokes a method.

Parameters
instanceKey The instance key indicates the instance.
className The name of the class.
methodName The name of the method we are calling.
classTypes The parameter types.
values The parameter values.
Returns
  • the serialized string indicates the return value.
Throws
Exception

public static boolean parseBool (String s)

public static byte parseByte (String s)

public static char parseChar (String s)

public static int parseInt (String s)

public static short parseShort (String s)

public static String parseString (String s)

public void removeInstance (String key)

Removes instance by key

Parameters
key The key of the instance

public void setField (String instanceKey, String className, String fieldName, String serializedValue)

Throws
Exception

public void setValueToArray (String instanceKey, int index, int value)

public void setValueToArray (String instanceKey, int index, boolean value)

public void setValueToArray (String instanceKey, int index, String value)