com.sun.jaw.reference.common
Class NamedObject

java.lang.Object
  |
  +--com.sun.jaw.reference.common.NamedObject

public class NamedObject
extends java.lang.Object
implements java.io.Serializable

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

See Also:
Serialized Form

Constructor Summary
NamedObject(ObjectName name, java.lang.Object object)
          Allows a named object to be created.
NamedObject(java.lang.String name, java.lang.Object object)
          Allows a named object to be created.
 
Method Summary
 ObjectName getName()
          Gets the object name.
 java.lang.Object getObject()
          Gets the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedObject

public NamedObject(ObjectName name,
                   java.lang.Object object)
            throws java.lang.IllegalArgumentException
Allows a named object to be created.
Parameters:
name - The object name of the object.
object - A reference to the object.
Throws:
java.lang.IllegalArgumentException - One of the parameters in the call to the method is invalid.

NamedObject

public NamedObject(java.lang.String name,
                   java.lang.Object object)
            throws java.lang.IllegalArgumentException
Allows a named object to be created.
Parameters:
name - A string representation of the object name.
object - A reference to the object.
Throws:
java.lang.IllegalArgumentException - One of the parameters in the call to the method is invalid.
Method Detail

getName

public ObjectName getName()
Gets the object name.
Returns:
The object name.

getObject

public java.lang.Object getObject()
Gets the object.
Returns:
The object.