Interface ValueTypeConverterService

    • 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 value
        node - the subject node
        context - 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 type
        value - view value
        node - the subject node
        context - view context
        Returns:
        model value
        Throws:
        Exception