|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.student.common.assembly.transform.DefaultDataBeanMapper
public class DefaultDataBeanMapper
| Field Summary | |
|---|---|
static DataBeanMapper |
INSTANCE
|
| Constructor Summary | |
|---|---|
DefaultDataBeanMapper()
|
|
| Method Summary | |
|---|---|
Data |
convertFromBean(Object value)
Takes a DTO Bean and converts it to a Data map structure. |
Object |
convertFromData(Data data,
Class<?> clazz,
Metadata metadata)
Takes a data map and converts it to the corresponding DTO Bean |
protected Object |
convertNestedData(Data data,
Field propField,
Metadata metadata)
Processes a nested data map, it checks to see if the data should be converted to a list structure or simply be processed as a nested complex object structure. |
protected Data |
getCollectionData(Object value)
Returns a data map object representing a collection |
protected boolean |
isPropertyValid(Object value)
|
protected void |
setDataAttributes(Data data,
Object value)
This process the attributes map and sets the attribute key/value pairs into the Data map |
protected void |
setDataListValue(Data data,
Object value)
Used to set a list item value into the data object. |
protected void |
setDataValue(Data data,
String propertyKey,
Object value)
Used to set a simple property value into the data object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static DataBeanMapper INSTANCE
| Constructor Detail |
|---|
public DefaultDataBeanMapper()
| Method Detail |
|---|
public Data convertFromBean(Object value)
throws Exception
DataBeanMapper
convertFromBean in interface DataBeanMapperException
public Object convertFromData(Data data,
Class<?> clazz,
Metadata metadata)
throws Exception
DataBeanMapper
convertFromData in interface DataBeanMapperException
protected Object convertNestedData(Data data,
Field propField,
Metadata metadata)
throws Exception
data - propField -
Exception
protected void setDataValue(Data data,
String propertyKey,
Object value)
throws Exception
data - propertyKey - value -
Exception
protected void setDataAttributes(Data data,
Object value)
data - value -
protected void setDataListValue(Data data,
Object value)
throws Exception
data - value -
Exception
protected Data getCollectionData(Object value)
throws Exception
value -
Exceptionprotected boolean isPropertyValid(Object value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||