com.primix.tapestry.util.prop
Class MapHelper.MapAccessor

java.lang.Object
  |
  +--com.primix.tapestry.util.prop.MapHelper.MapAccessor
All Implemented Interfaces:
IPropertyAccessor
Enclosing class:
MapHelper

public static class MapHelper.MapAccessor
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 stored in a Map.
 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)
          Sets the value of the property in the instance.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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

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

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 stored in a Map.
Specified by:
getType in interface IPropertyAccessor

set

public void set(java.lang.Object instance,
                java.lang.Object value)
Description copied from interface: IPropertyAccessor
Sets the value of the property in the instance.
Specified by:
set in interface IPropertyAccessor

toString

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