AR System Java API

com.bmc.arsys.api
Class ARTypeMgr

java.lang.Object
  extended by com.bmc.arsys.api.ARTypeMgr

public class ARTypeMgr
extends Object

Reserved for internal use.


Method Summary
static List<Entry> buildGLEWFResponse(Object[] rawData, ARServerUser ctx)
           
<T,K,V> Map
CloneMap(Class<T> clazz, Map<K,V> map, ARServerUser ctx)
           
static int GetArrayLength(Object rawData)
           
static Object GetAt(Object rawData, int index)
           
static Object GetAt(Object rawData, int[] indexSpec)
           
static Class getElementClassFromList(Object obj)
           
static ARTypeMgr getInstance()
           
 com.bmc.arsys.api.ARTypeMgr.ARTypeInfo getTypeInfo(Class<?> clazz)
           
static boolean IsArray(Object rawData)
           
static boolean IsPrimitiveArray(Object rawData)
           
 void load(Class<?> clazz)
           
 void loadAll()
           
static void log(org.apache.log4j.Logger logger, Object rawData, int indent)
           
 Object NewObject(boolean val)
           
 Object NewObject(byte val)
           
 Object NewObject(char val)
           
<T> T
NewObject(Class<T> clazz, ARServerUser ctx)
           
 Object NewObject(double val)
           
 Object NewObject(float val)
           
 Object NewObject(int val)
           
 Object NewObject(long val)
           
 Object NewObject(short val)
           
 Object[] NewObjectArray(Class<?> clazz, int size, ARServerUser context)
           
 Object[] NewObjectArray(int size)
           
<T> T[]
ObjectArrayFromVariant(Class<T> clazz, Object rawData, ARServerUser context)
           
<T> Object
ObjectArrayToVariant(T[] objArray, ARServerUser ctx)
           
<T> T
ObjectFromVariant(Class<T> clazz, Object rawData, ARServerUser context)
           
<T> ArrayList<T>
ObjectListFromVariant(Class<T> clazz, Object rawData, ARServerUser context)
           
 Object ObjectListToVariant(List arrayList, ARServerUser ctx)
           
<T> Object
ObjectToVariant(T obj, ARServerUser ctx)
           
<T> void
performMappingForClass(T obj, Class<T> clazz, Object[] givenArray, ARServerUser context)
           
static void SetAt(Object rawData, int index, Object value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadAll

public void loadAll()
             throws Exception
Throws:
Exception

getInstance

public static ARTypeMgr getInstance()

IsArray

public static boolean IsArray(Object rawData)

IsPrimitiveArray

public static boolean IsPrimitiveArray(Object rawData)

GetArrayLength

public static int GetArrayLength(Object rawData)

GetAt

public static Object GetAt(Object rawData,
                           int index)

SetAt

public static void SetAt(Object rawData,
                         int index,
                         Object value)

GetAt

public static Object GetAt(Object rawData,
                           int[] indexSpec)

getElementClassFromList

public static Class getElementClassFromList(Object obj)

ObjectFromVariant

public <T> T ObjectFromVariant(Class<T> clazz,
                               Object rawData,
                               ARServerUser context)

ObjectArrayFromVariant

public <T> T[] ObjectArrayFromVariant(Class<T> clazz,
                                      Object rawData,
                                      ARServerUser context)

ObjectListFromVariant

public <T> ArrayList<T> ObjectListFromVariant(Class<T> clazz,
                                              Object rawData,
                                              ARServerUser context)

ObjectToVariant

public <T> Object ObjectToVariant(T obj,
                                  ARServerUser ctx)

ObjectArrayToVariant

public <T> Object ObjectArrayToVariant(T[] objArray,
                                       ARServerUser ctx)

ObjectListToVariant

public Object ObjectListToVariant(List arrayList,
                                  ARServerUser ctx)

NewObjectArray

public Object[] NewObjectArray(int size)

NewObjectArray

public Object[] NewObjectArray(Class<?> clazz,
                               int size,
                               ARServerUser context)
                        throws IllegalAccessException,
                               InstantiationException
Throws:
IllegalAccessException
InstantiationException

NewObject

public <T> T NewObject(Class<T> clazz,
                       ARServerUser ctx)

NewObject

public Object NewObject(boolean val)

NewObject

public Object NewObject(byte val)

NewObject

public Object NewObject(char val)

NewObject

public Object NewObject(short val)

NewObject

public Object NewObject(int val)

NewObject

public Object NewObject(long val)

NewObject

public Object NewObject(float val)

NewObject

public Object NewObject(double val)

getTypeInfo

public com.bmc.arsys.api.ARTypeMgr.ARTypeInfo getTypeInfo(Class<?> clazz)

CloneMap

public <T,K,V> Map CloneMap(Class<T> clazz,
                            Map<K,V> map,
                            ARServerUser ctx)

load

public void load(Class<?> clazz)
          throws Exception
Throws:
Exception

performMappingForClass

public <T> void performMappingForClass(T obj,
                                       Class<T> clazz,
                                       Object[] givenArray,
                                       ARServerUser context)

buildGLEWFResponse

public static List<Entry> buildGLEWFResponse(Object[] rawData,
                                             ARServerUser ctx)
                                      throws ARException
Throws:
ARException

log

public static void log(org.apache.log4j.Logger logger,
                       Object rawData,
                       int indent)

AR System Java API

© Copyright 2006, 2007 BMC Software, Inc.