View Javadoc

1   /*
2    * @(#) IntrospectionData.java Jan 24, 2005
3    * 
4    * 
5    * Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX
6    * Delft, the Netherlands. All rights reserved.
7    * 
8    * See for project information <a href="http://www.simulation.tudelft.nl/">
9    * www.simulation.tudelft.nl </a>.
10   * 
11   * The source code and binary code of this software is proprietary information
12   * of Delft University of Technology.
13   */
14  package org.gscg.gameleader.animation2D.mouse;
15  
16  import java.io.Serializable;
17  
18  /***
19   * Contains the field data of an introspected object, plus some additional
20   * information regarding the object like the key.
21   * <p>
22   * 
23   * Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX
24   * Delft, the Netherlands. All rights reserved.
25   * 
26   * See for project information <a href="http://www.simulation.tudelft.nl/">
27   * www.simulation.tudelft.nl </a>.
28   * 
29   * The source code and binary code of this software is proprietary information
30   * of Delft University of Technology.
31   * 
32   * @author <a
33   *         href="http://www.tbm.tudelft.nl/webstaf/stijnh/index.htm">Stijn-Pieter
34   *         van Houten </a>
35   * @version $Revision: 1.1 $ $Date: 2005/06/16 12:33:54 $
36   * @since 1.1.2
37   */
38  public class IntrospectionData implements Serializable
39  {
40  	/*** the serial version uid */
41  	private static final long serialVersionUID = 11L;
42  
43  	/*** the key of the object */
44  	private Serializable key = null;
45  
46  	/*** the date for the fields */
47  	private IntrospectedFieldData[] data = null;
48  
49  	/*** the name for the dialog client-side */
50  	private String name = null;
51  
52  	/***
53  	 * constructs a new IntrospectionData
54  	 * 
55  	 * @param key the key
56  	 * @param data the data
57  	 * @param name the name
58  	 */
59  	public IntrospectionData(final Serializable key,
60  			final IntrospectedFieldData[] data, final String name)
61  	{
62  		super();
63  		this.key = key;
64  		this.data = data;
65  		this.name = name;
66  	}
67  
68  
69  	/***
70  	 * @return Returns the data
71  	 */
72  	public IntrospectedFieldData[] getData()
73  	{
74  		return this.data;
75  	}
76  
77  	/***
78  	 * @return Returns the key
79  	 */
80  	public Serializable getKey()
81  	{
82  		return this.key;
83  	}
84  
85  	/***
86  	 * @return Returns the name
87  	 */
88  	public String getName()
89  	{
90  		return this.name;
91  	}
92  }