Interface KeyTypeConverterService

    • Method Detail

      • toViewKey

        String toViewKey​(Object modelKey,
                         ViewNode node,
                         ViewContext context)
                  throws Exception
        Converts a map key from the model to a string value.
        Parameters:
        modelKey - model key
        node - the subject node
        context - view context
        Returns:
        key value
        Throws:
        Exception
      • toModelKey

        Object toModelKey​(Class<?> keyType,
                          String viewKey,
                          ViewNode node,
                          ViewContext context)
                   throws Exception
        Converts a map key from a view to the corresponding model key value.
        Parameters:
        keyType - model key type
        viewKey - string representation of the key from a view
        node - the subject node
        context - view context
        Returns:
        key value
        Throws:
        Exception