jadex.application.space.envsupport.observer.gui
Class SObjectInspector

java.lang.Object
  extended by jadex.application.space.envsupport.observer.gui.SObjectInspector

public class SObjectInspector
extends Object

A convenience class for retrieving properties from objects.


Constructor Summary
SObjectInspector()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SObjectInspector

public SObjectInspector()
Method Detail

getId

public static Object getId(Object obj)
Retrieves the id of an object.

Parameters:
obj - the object being inspected
Returns:
the id

getType

public static Object getType(Object obj)
Retrieves the type of an object.

Parameters:
obj - the object being inspected
Returns:
the type

getPropertyNames

public static Set getPropertyNames(Object obj)
Retrieves the names of all properties of an Object.

Parameters:
obj - the object being inspected
Returns:
the property names

getProperty

public static Object getProperty(Object obj,
                                 String name)
Retrieves a property from an IPropertyObject.

Parameters:
obj - the object being inspected
name - name of the property
Returns:
the property

getProperty

public static Object getProperty(Object obj,
                                 String name,
                                 String objname)
Retrieves a property from an IPropertyObject.

Parameters:
obj - the object being inspected
name - name of the property
Returns:
the property

getProperty

public static Object getProperty(Object obj,
                                 String name,
                                 String objname,
                                 IValueFetcher fetcher)
Retrieves a property from an IPropertyObject.

Parameters:
obj - the object being inspected
name - name of the property
Returns:
the property


Copyright © 2010. All Rights Reserved.