net.sf.mmm.util.pojo.descriptor.api.accessor
Class PojoPropertyAccessorMode<ACCESSOR extends PojoPropertyAccessor>
java.lang.Object
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)
name
private final String name
- See Also:
getName()
reading
private final boolean reading
- See Also:
isReading()
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.
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.