|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mmm.util.pojo.descriptor.base.AbstractPojoDescriptor<POJO>
net.sf.mmm.util.pojo.descriptor.impl.PojoDescriptorImpl<POJO>
POJO - is the templated type of the POJO.public class PojoDescriptorImpl<POJO>
This is the abstract base implementation of the
PojoDescriptor interface.
| Field Summary | |
|---|---|
private Collection<PojoPropertyDescriptorImpl> |
properties
|
private Map<String,PojoPropertyDescriptorImpl> |
propertyMap
|
| Constructor Summary | |
|---|---|
PojoDescriptorImpl(GenericType<POJO> pojoType)
The constructor. |
|
| Method Summary | ||
|---|---|---|
|
getAccessor(String property,
PojoPropertyAccessorMode<ACCESSOR> mode,
boolean required)
This method gets the accessor for the given from the
descriptor with the given
. |
|
PojoPropertyDescriptorImpl |
getOrCreatePropertyDescriptor(String propertyName)
This method gets the property-descriptor for the given propertyName. |
|
PojoPropertyDescriptorImpl |
getPropertyDescriptor(String propertyName)
This method gets the descriptor for the
property identified by the given propertyName. |
|
Collection<PojoPropertyDescriptorImpl> |
getPropertyDescriptors()
This method gets the descriptors of all
properties of the according pojo. |
|
| Methods inherited from class net.sf.mmm.util.pojo.descriptor.base.AbstractPojoDescriptor |
|---|
addPropertyItem, getAccessor, getPojoClass, getPojoType, getProperty, getPropertyItem, getPropertySize, removePropertyItem, setProperty, setPropertyItem, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final Map<String,PojoPropertyDescriptorImpl> propertyMap
getPropertyDescriptor(String)private final Collection<PojoPropertyDescriptorImpl> properties
getPropertyDescriptor(String)| Constructor Detail |
|---|
public PojoDescriptorImpl(GenericType<POJO> pojoType)
pojoType - is the pojo-type.| Method Detail |
|---|
public PojoPropertyDescriptorImpl getPropertyDescriptor(String propertyName)
descriptor for the
property identified by the given propertyName.
propertyName - is the name of the requested property.
propertyName or null if no such property
exists for the according pojo.public Collection<PojoPropertyDescriptorImpl> getPropertyDescriptors()
descriptors of all
properties of the according pojo.
getPropertyDescriptors in interface PojoDescriptor<POJO>getPropertyDescriptors in class AbstractPojoDescriptor<POJO>property
descriptors
public <ACCESSOR extends PojoPropertyAccessor> ACCESSOR getAccessor(String property,
PojoPropertyAccessorMode<ACCESSOR> mode,
boolean required)
mode from the
descriptor with the given
propertyName
.
ACCESSOR - is the type of the requested accessor.property - is the name of the
property. If the given mode is
GET it is treated as for PojoDescriptor.getProperty(Object, String). If
the given mode is
SET it is treated as for
PojoDescriptor.setProperty(Object, String, Object).mode - is the mode of the
requested accessor.required - - if true the accessor is required and an
exception is thrown if NOT found.
null if NOT found and
required is false.PojoDescriptor.getPropertyDescriptor(String),
PojoPropertyDescriptor.getAccessor(PojoPropertyAccessorMode)public PojoPropertyDescriptorImpl getOrCreatePropertyDescriptor(String propertyName)
propertyName.
getOrCreatePropertyDescriptor in class AbstractPojoDescriptor<POJO>propertyName - is the name of the requested property-descriptor.
null if NO
property exists with the given propertyName.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||