com.primix.tapestry.listener
Class ListenerMapHelper.ListenerMapAccessor

java.lang.Object
  |
  +--com.primix.tapestry.listener.ListenerMapHelper.ListenerMapAccessor
All Implemented Interfaces:
IPropertyAccessor
Enclosing class:
ListenerMapHelper

public static class ListenerMapHelper.ListenerMapAccessor
extends java.lang.Object
implements IPropertyAccessor


Method Summary
 java.lang.Object get(java.lang.Object instance)
          Returns the current value of the property in the instance.
 java.lang.String getName()
          Returns the name of the property.
 java.lang.Class getType()
          Returns Object.class, because we never know the type of objects provided by the ListenerMap.
 boolean isReadable()
          Returns true if a method exists to read the current value of the property.
 boolean isReadWrite()
          Returns true if the property is readable and writable: it contains both accessor and mutator methods.
 boolean isWritable()
          Returns true if a method exists to update the current value of the property.
 void set(java.lang.Object instance, java.lang.Object value)
          Updating is not allowed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getName

public java.lang.String getName()
Description copied from interface: IPropertyAccessor
Returns the name of the property.
Specified by:
getName in interface IPropertyAccessor
Since:
1.0.6

get

public java.lang.Object get(java.lang.Object instance)
Description copied from interface: IPropertyAccessor
Returns the current value of the property in the instance.
Specified by:
get in interface IPropertyAccessor

isReadable

public boolean isReadable()
Description copied from interface: IPropertyAccessor
Returns true if a method exists to read the current value of the property.
Specified by:
isReadable in interface IPropertyAccessor

isWritable

public boolean isWritable()
Description copied from interface: IPropertyAccessor
Returns true if a method exists to update the current value of the property.
Specified by:
isWritable in interface IPropertyAccessor

isReadWrite

public boolean isReadWrite()
Description copied from interface: IPropertyAccessor
Returns true if the property is readable and writable: it contains both accessor and mutator methods.
Specified by:
isReadWrite in interface IPropertyAccessor

getType

public java.lang.Class getType()
Returns Object.class, because we never know the type of objects provided by the ListenerMap.
Specified by:
getType in interface IPropertyAccessor

set

public void set(java.lang.Object instance,
                java.lang.Object value)
Updating is not allowed.
Specified by:
set in interface IPropertyAccessor
Throws:
UnsupportedOperationException - always.