ucar.unidata.xml
Class ObjectClass

java.lang.Object
  extended by ucar.unidata.xml.ObjectClass

public class ObjectClass
extends Object

Holds an object (possibly null) and the Class of the object.

Version:
$Revision: 1.7 $Date: 2005/05/13 18:33:53 $
Author:
IDV development team

Constructor Summary
ObjectClass(Object object)
          Create an ObjectClass with the given object.
ObjectClass(Object object, Class theClass)
          Create an ObjectClass with the given object and class.
 
Method Summary
 String toString()
          Override toString.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectClass

public ObjectClass(Object object)
Create an ObjectClass with the given object. Get the class from the object itself (if non-null). If null the use Object.class.

Parameters:
object - The object.

ObjectClass

public ObjectClass(Object object,
                   Class theClass)
Create an ObjectClass with the given object and class.

Parameters:
object - The object.
theClass - The object's class.
Method Detail

toString

public String toString()
Override toString.

Overrides:
toString in class Object
Returns:
The String representation of this object.