org.pf.joi.inspectors
Class AssociationSpy

java.lang.Object
  extended by org.pf.joi.Spy
      extended by org.pf.joi.ElementSpy
          extended by org.pf.joi.CollectionElementSpy
              extended by org.pf.joi.inspectors.AssociationSpy
All Implemented Interfaces:
java.lang.Comparable

public class AssociationSpy
extends CollectionElementSpy

A spy class for Association objects

Version:
1.1
Author:
M.Duchrow

Field Summary
 
Fields inherited from class org.pf.joi.Spy
RENDERER_MAPPING_FILENAME, RENDERER_MAPPING_FILENAME_ALL, RENDERER_MAPPING_FILENAME_CLASSLOADER
 
Constructor Summary
AssociationSpy(AbstractObjectSpy container, org.pf.util.Association association)
          Initialize the new instance with a container spy and an association.
AssociationSpy(AbstractObjectSpy container, java.util.Map.Entry mapEntry)
          Initialize the new instance with a container spy and a Map.Entry.
 
Method Summary
 java.lang.Object getKey()
          Returns the key of the underlying association.
 java.lang.Object getValue()
          Returns the value of the underlying association.
 
Methods inherited from class org.pf.joi.CollectionElementSpy
getModifiers, getName, getObject, getType, setModifiers
 
Methods inherited from class org.pf.joi.ElementSpy
compareTo, is_Boolean_or_boolean, is_Byte_or_byte, is_Character_or_char, is_Double_or_double, is_Float_or_float, is_Integer_or_int, is_Long_or_long, is_Short_or_short, isEditable, isElementSpy, setValue
 
Methods inherited from class org.pf.joi.Spy
getTypeString, getValueComponent, getValueString, getValueTypeString, is_boolean, is_byte, is_char, is_double, is_float, is_int, is_long, is_short, isPrimitive, valueIsNull
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssociationSpy

public AssociationSpy(AbstractObjectSpy container,
                      org.pf.util.Association association)
Initialize the new instance with a container spy and an association.


AssociationSpy

public AssociationSpy(AbstractObjectSpy container,
                      java.util.Map.Entry mapEntry)
Initialize the new instance with a container spy and a Map.Entry.

Method Detail

getValue

public java.lang.Object getValue()
Returns the value of the underlying association.

Overrides:
getValue in class CollectionElementSpy

getKey

public java.lang.Object getKey()
Returns the key of the underlying association.