|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.student.common.assembly.transform.DefaultDataBeanMapper
public class DefaultDataBeanMapper
Field Summary | |
---|---|
static DataBeanMapper |
INSTANCE
|
(package private) Logger |
LOG
|
Constructor Summary | |
---|---|
DefaultDataBeanMapper()
|
Method Summary | |
---|---|
protected String |
convertDataValueToStringValue(Data data)
Converts a list represented by DataValue to a list of values as a comma delimited StringValue |
Data |
convertFromBean(Object value,
Metadata metadata)
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 |
convertStringToDataValue(String stringValue)
Converts a list represented by a comma delimited string so to a DataValue |
protected Data |
getCollectionData(Object value,
Metadata metadata)
Returns a data map object representing a collection |
protected boolean |
isPropertyValid(Object value)
|
protected void |
setDataAttributes(Data data,
Object value,
Metadata metadata)
This process the attributes map and sets the attribute key/value pairs into the Data map |
protected void |
setDataListValue(Data data,
Object value,
Metadata metadata)
Used to set a list item value into the data object. |
protected void |
setDataValue(Data data,
String propertyKey,
Object value,
Metadata metadata)
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
final Logger LOG
Constructor Detail |
---|
public DefaultDataBeanMapper()
Method Detail |
---|
public Data convertFromBean(Object value, Metadata metadata) throws Exception
DataBeanMapper
convertFromBean
in interface DataBeanMapper
value
- The DTO Bean to convert to data mapmetadata
- Metadata describing the dto bean
Exception
public Object convertFromData(Data data, Class<?> clazz, Metadata metadata) throws Exception
DataBeanMapper
convertFromData
in interface DataBeanMapper
Exception
protected Object convertNestedData(Data data, Field propField, Metadata metadata) throws Exception
data
- propField
-
Exception
protected void setDataValue(Data data, String propertyKey, Object value, Metadata metadata) throws Exception
data
- propertyKey
- value
-
Exception
protected void setDataAttributes(Data data, Object value, Metadata metadata)
data
- value
- protected Data convertStringToDataValue(String stringValue)
stringValue
- a comma separated list of values
protected String convertDataValueToStringValue(Data data)
dataValue
- DataValue representing a list object
protected void setDataListValue(Data data, Object value, Metadata metadata) throws Exception
data
- value
-
Exception
protected Data getCollectionData(Object value, Metadata metadata) throws Exception
value
-
Exception
protected boolean isPropertyValid(Object value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |