net.sf.mmm.util.pojo.descriptor.api.accessor
Class PojoPropertyAccessorMode<ACCESSOR extends PojoPropertyAccessor>

java.lang.Object
  extended by net.sf.mmm.util.pojo.descriptor.api.accessor.PojoPropertyAccessorMode<ACCESSOR>
Type Parameters:
ACCESSOR - is the type of the accessor
Direct Known Subclasses:
PojoPropertyAccessorIndexedNonArgMode, PojoPropertyAccessorIndexedOneArgMode, PojoPropertyAccessorNonArgMode, PojoPropertyAccessorOneArgMode, PojoPropertyAccessorTwoArgMode

public abstract class PojoPropertyAccessorMode<ACCESSOR extends PojoPropertyAccessor>
extends Object

This is the abstract base class for the mode of a specific PojoPropertyAccessor.

Since:
1.1.0
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)
See Also:
PojoPropertyAccessor.getMode(), PojoPropertyDescriptor.getAccessor(PojoPropertyAccessorMode)

Field Summary
private  String name
           
private  boolean reading
           
 
Constructor Summary
PojoPropertyAccessorMode(String name, boolean reading)
          The constructor.
 
Method Summary
 String getName()
          This method gets the name of this mode.
 boolean isReading()
          This method determines if this mode is for a reading accessor.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private final String name
See Also:
getName()

reading

private final boolean reading
See Also:
isReading()
Constructor Detail

PojoPropertyAccessorMode

PojoPropertyAccessorMode(String name,
                         boolean reading)
The constructor.

Parameters:
name - is the name of this mode.
reading - is a flag that determines if this mode is for reading.
Method Detail

getName

public String getName()
This method gets the name of this mode.

Returns:
the name.

isReading

public boolean isReading()
This method determines if this mode is for a reading accessor.

Returns:
true if this mode is for a reading accessor that returns a property-value, false if this mode is for a modifying accessor that expects a property-value as argument.

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2001-2010 mmm-Team. All Rights Reserved.