public class MapBuilder
extends java.lang.Object
| Constructor and Description |
|---|
MapBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
exclude(java.lang.String fieldName)
Add a debeanified name that must be excluded from the final map
|
void |
include(java.lang.String fieldName) |
java.util.Map |
mapify(java.lang.Object bean)
Basically you pass in a bean object to it
and it spits out a Map of name value pairs
where the name is the debeanified method name
and the value is what ever the method returns.
|
public void exclude(java.lang.String fieldName)
fieldName - the debeanified property name to excludepublic void include(java.lang.String fieldName)
fieldName - the debeanified property name
to be included in the final map.public java.util.Map mapify(java.lang.Object bean)
bean - the bean object to be mapified