Class ObjectClass

java.lang.Object
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 Details

    • 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 Details

    • toString

      public String toString()
      Override toString.
      Overrides:
      toString in class Object
      Returns:
      The String representation of this object.