jfun.yan
Class PropertyEntry

java.lang.Object
  extended by jfun.yan.PropertyEntry
All Implemented Interfaces:
java.io.Serializable

public final class PropertyEntry
extends java.lang.Object
implements java.io.Serializable

This class represents a property of an object. Objects of this class may be found in the resolution trace of a YanException object to represent a frame of a property instantiation.

Codehaus.org.

Author:
Ben Yu
See Also:
Serialized Form

Constructor Summary
PropertyEntry(java.lang.Object obj, java.lang.Object key)
          Create a PropertyEntry object.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.Object getObject()
          Gets the object that has the property.
 java.lang.Object getPropertyKey()
          Gets the property key.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyEntry

public PropertyEntry(java.lang.Object obj,
                     java.lang.Object key)
Create a PropertyEntry object.

Parameters:
obj - the object that has the property.
key - the property key.
Method Detail

getPropertyKey

public java.lang.Object getPropertyKey()
Gets the property key.

Returns:
the key.

getObject

public java.lang.Object getObject()
Gets the object that has the property.

Returns:
the object.

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object