org.gscg.gameleader.interactionlayer.util
Class IntrospectionUtil

java.lang.Object
  extended byorg.gscg.gameleader.interactionlayer.util.IntrospectionUtil
All Implemented Interfaces:
java.io.Serializable

public final class IntrospectionUtil
extends java.lang.Object
implements java.io.Serializable

Utility class for introspection. This class contains methods which either introspect an object and return date for the fields, or updates the values of atributes based on changes made to an object using the introspection diaglog of an animation panel.

Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl . The source code and binary code of this software is proprietary information of Delft University of Technology.

Since:
1.1.2
Version:
$Revision: 1.3 $ $Date: 2005/08/10 11:23:30 $
Author:
Stijn-Pieter van Houten
See Also:
Serialized Form

Method Summary
static IntrospectionData introspectObject(java.lang.Object object, java.io.Serializable key)
          Introspects the given object
static void updateIntrospectedObject(java.lang.Object object, IntrospectionData data)
          Method updateIntrospectedObject updates an introspected object based on the given data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

introspectObject

public static IntrospectionData introspectObject(java.lang.Object object,
                                                 java.io.Serializable key)
Introspects the given object

Parameters:
object - the object to get the data from
key - the key
Returns:
Returns an array of introspection data or null if there is no logic to process the object

updateIntrospectedObject

public static void updateIntrospectedObject(java.lang.Object object,
                                            IntrospectionData data)
Method updateIntrospectedObject updates an introspected object based on the given data.

Parameters:
object - the object to update
data - the data


Copyright © 2002-2005 Delft University of Technology, the Netherlands. All Rights Reserved.