package com.onaro.sanscreen.client.view.tabular.value; import java.util.Map; /** * Creates instances of TableValue based on query result row */ public interface TableValueFactory { /** * Creates an instance of {@link TableValue} based on query result row. * @param row a map containing all the information on the table row * @param columnId the id of the column in the row to retrieve the row value from * @return an instance of {@link TableValue} built from the information of that row */ public TableValue create(Map row, String columnId); /** * Creates an instance of {@link TableValue} based on a given value. * @param value a row value to create a TableValue from * @return an instance of {@link TableValue} based on the given value. */ public TableValue create(String value); }