public class SObjectInspector extends Object
Constructor and Description |
---|
SObjectInspector() |
Modifier and Type | Method and Description |
---|---|
static Object |
getId(Object obj)
Retrieves the id of an object.
|
static Object |
getProperty(Object obj,
String name)
Retrieves a property from an IPropertyObject.
|
static Object |
getProperty(Object obj,
String name,
String objname)
Retrieves a property from an IPropertyObject.
|
static Object |
getProperty(Object obj,
String name,
String objname,
IValueFetcher fetcher)
Retrieves a property from an IPropertyObject.
|
static Set |
getPropertyNames(Object obj)
Retrieves the names of all properties of an Object.
|
static Object |
getType(Object obj)
Retrieves the type of an object.
|
public static Object getId(Object obj)
obj
- the object being inspectedpublic static Object getType(Object obj)
obj
- the object being inspectedpublic static Set getPropertyNames(Object obj)
obj
- the object being inspectedpublic static Object getProperty(Object obj, String name)
obj
- the object being inspectedname
- name of the propertypublic static Object getProperty(Object obj, String name, String objname)
obj
- the object being inspectedname
- name of the propertypublic static Object getProperty(Object obj, String name, String objname, IValueFetcher fetcher)
obj
- the object being inspectedname
- name of the propertyCopyright © 2012. All Rights Reserved.