org.pf.joi.inspectors
Class AssociationSpy
java.lang.Object
org.pf.joi.Spy
org.pf.joi.ElementSpy
org.pf.joi.CollectionElementSpy
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
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.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 |
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.
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.