com.sun.jdmk
Class NamedObject

java.lang.Object
  extended by com.sun.jdmk.NamedObject

Deprecated. This class is kept as a utility class, though it is no longer used. It may not be supported in future releases.

public class NamedObject
extends Object

This class is used for storing a pair (name, object) where name is an object name and object is a reference to the object.

Since:
Java DMK 5.0

Constructor Summary
NamedObject(ObjectName objectName, Object object)
          Deprecated. Allows a named object to be created.
NamedObject(String objectName, Object object)
          Deprecated. Allows a named object to be created.
 
Method Summary
 boolean equals(Object object)
          Deprecated. Compares the current object name with another object name.
 ObjectName getName()
          Deprecated. Get the object name.
 Object getObject()
          Deprecated. Get the object
 int hashCode()
          Deprecated. Returns a hash code for this named object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedObject

public NamedObject(ObjectName objectName,
                   Object object)
Deprecated. 
Allows a named object to be created.

Parameters:
objectName - The object name of the object.
object - A reference to the object.

NamedObject

public NamedObject(String objectName,
                   Object object)
            throws MalformedObjectNameException
Deprecated. 
Allows a named object to be created.

Parameters:
objectName - The string representation of the object name of the object.
object - A reference to the object.
Throws:
MalformedObjectNameException - The string passed does not have the format of a valid ObjectName
Method Detail

equals

public boolean equals(Object object)
Deprecated. 
Compares the current object name with another object name.

Overrides:
equals in class Object
Parameters:
object - The Named Object that the current object name is to be compared with.
Returns:
True if the two named objects are equal, otherwise false.

hashCode

public int hashCode()
Deprecated. 
Returns a hash code for this named object.

Overrides:
hashCode in class Object

getName

public ObjectName getName()
Deprecated. 
Get the object name.


getObject

public Object getObject()
Deprecated. 
Get the object


Open Source build 02
opendmk-1.0-b02 2007.10.01_19:17:46_MEST

Copyright 1998-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.