net.sf.mmm.util.pojo.descriptor.api.accessor
Class PojoPropertyAccessorNonArgMode
java.lang.Object
net.sf.mmm.util.pojo.descriptor.api.accessor.PojoPropertyAccessorMode<PojoPropertyAccessorNonArg>
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)
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.
PojoPropertyAccessorNonArgMode
protected PojoPropertyAccessorNonArgMode(String name)
- The constructor.
- Parameters:
name - is the name of this mode.
Copyright © 2001-2010 mmm-Team. All Rights Reserved.