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