Interface ValueTypeConverterService
-
- All Superinterfaces:
ValueTypeConverters
- All Known Implementing Classes:
LinkedListValueTypeConverterService
public interface ValueTypeConverterService extends ValueTypeConverters
A value type converter service.- Author:
- Carl Harris
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
toModelValue(Class<?> type, Object value, ViewNode node, ViewContext context)
Converts a view value to a model value for a node.Object
toViewValue(Object model, ViewNode node, ViewContext context)
Converts a model value to a view value for a node.-
Methods inherited from interface org.soulwing.prospecto.api.converter.ValueTypeConverters
append, prepend, remove, toList
-
-
-
-
Method Detail
-
toViewValue
Object toViewValue(Object model, ViewNode node, ViewContext context) throws Exception
Converts a model value to a view value for a node.- Parameters:
model
- model valuenode
- the subject nodecontext
- view context- Returns:
- view value
- Throws:
Exception
-
toModelValue
Object toModelValue(Class<?> type, Object value, ViewNode node, ViewContext context) throws Exception
Converts a view value to a model value for a node.- Parameters:
type
- target model typevalue
- view valuenode
- the subject nodecontext
- view context- Returns:
- model value
- Throws:
Exception
-
-