|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.easyweb4j.model.ModelIntrospector
public final class ModelIntrospector
| Constructor Summary | |
|---|---|
ModelIntrospector(Map<Class<?>,Converter> converters)
|
|
| Method Summary | ||
|---|---|---|
boolean |
containsProperty(Model model,
String property)
|
|
|
copy(T source,
T destination)
Copies all the fields from the source model to destination model. |
|
Object |
getPropertyViewValue(Model model,
String property)
Returns the actual value of the property if there are no errors on the property else returns the wrong value. |
|
Object |
readProperty(Model model,
String property)
Reads the value of the specified property/field. |
|
void |
updateProperties(Model model,
Map<String,String[]> objectParameter,
AssociationsProvider associationsProvider)
Updates the values of properties/fields from the map of values. |
|
Object |
writeProperty(Model model,
String property,
Object value)
Writes the value of the specified property/field. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModelIntrospector(Map<Class<?>,Converter> converters)
| Method Detail |
|---|
public void updateProperties(Model model,
Map<String,String[]> objectParameter,
AssociationsProvider associationsProvider)
objectParameter - A map or property/field names to their values.associationsProvider -
public Object getPropertyViewValue(Model model,
String property)
property - The property whose view value is to be retrieved.
public <T extends Model> T copy(T source,
T destination)
source - The source model to copy fields from.destination - The destination model to copy fields from.
public boolean containsProperty(Model model,
String property)
public Object readProperty(Model model,
String property)
throws InvocationTargetException,
IllegalAccessException
property - The property/field whose value is to be read.
InvocationTargetException
IllegalAccessException
public Object writeProperty(Model model,
String property,
Object value)
throws InvocationTargetException,
IllegalAccessException
property - The property/field whose value is to be written.
InvocationTargetException
IllegalAccessException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||