fr.inria.ketuk
Class TypedObject

java.lang.Object
  |
  +--fr.inria.ketuk.TypedObject

public class TypedObject
extends java.lang.Object

Used to represent an object with its type

This is needed to process in an unifor way objects instances of classes and objects which represents standard types (int, byte, boolean, etc)

Author:
Claude Pasquier

Constructor Summary
TypedObject()
          Default constructor
TypedObject(java.lang.Object o, java.lang.Class c)
          Constructs a typed object representing the object o with the class c
 
Method Summary
 java.lang.Object getObject()
          Gets the object
 java.lang.Class getType()
          Gets the type
 void setObject(java.lang.Object o)
          Sets the object
 void setType(java.lang.Class c)
          Sets the type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypedObject

public TypedObject()
Default constructor

TypedObject

public TypedObject(java.lang.Object o,
                   java.lang.Class c)
Constructs a typed object representing the object o with the class c
Method Detail

setObject

public void setObject(java.lang.Object o)
Sets the object

setType

public void setType(java.lang.Class c)
Sets the type

getObject

public java.lang.Object getObject()
Gets the object

getType

public java.lang.Class getType()
Gets the type