net.sf.mmm.util.pojo.descriptor.api.accessor
Class PojoPropertyAccessorNonArgMode

java.lang.Object
  extended by net.sf.mmm.util.pojo.descriptor.api.accessor.PojoPropertyAccessorMode<PojoPropertyAccessorNonArg>
      extended by net.sf.mmm.util.pojo.descriptor.api.accessor.PojoPropertyAccessorNonArgMode

public class PojoPropertyAccessorNonArgMode
extends PojoPropertyAccessorMode<PojoPropertyAccessorNonArg>

An instance of this class represents a specific accessor-mode for a non-arg accessor of a property. This abstract base class acts like an Enum but allows you to define your own custom mode by extending this class.

Since:
1.1.0
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Field Summary
static PojoPropertyAccessorNonArgMode GET
          The mode for a regular reader of a property.
static PojoPropertyAccessorNonArgMode GET_SIZE
          The mode for a reader of the size of a property that holds a container type (array or Collection ).
 
Constructor Summary
protected PojoPropertyAccessorNonArgMode(String name)
          The constructor.
 
Method Summary
 
Methods inherited from class net.sf.mmm.util.pojo.descriptor.api.accessor.PojoPropertyAccessorMode
getName, isReading, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GET

public static final PojoPropertyAccessorNonArgMode GET
The mode for a regular reader of a property.


GET_SIZE

public static final PojoPropertyAccessorNonArgMode GET_SIZE
The mode for a reader of the size of a property that holds a container type (array or Collection ).
ATTENTION:
The accessor may NOT only return an Integer. It is also possible that it returns a Byte or Short. Use Number to avoid problems.

Constructor Detail

PojoPropertyAccessorNonArgMode

protected PojoPropertyAccessorNonArgMode(String name)
The constructor.

Parameters:
name - is the name of this mode.


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