fr.paris.lutece.plugins.rest.service.formatters
Interface IFormatter<T>

Type Parameters:
T - the resource to format

public interface IFormatter<T>

IFormatter


Method Summary
 String format(List<T> listResources)
          Format the list of resources
 String format(T resource)
          Format the given resource
 String formatError(String strCode, String strMessage)
          Format the error message
 

Method Detail

formatError

String formatError(String strCode,
                   String strMessage)
Format the error message

Parameters:
strCode - the error code
strMessage - the error message
Returns:
the formatted error message

format

String format(T resource)
Format the given resource

Parameters:
resource - the resource
Returns:
the formatted resource

format

String format(List<T> listResources)
Format the list of resources

Parameters:
listResources - the list of resources
Returns:
the formatted resources


Copyright © 2013 Mairie de Paris. All Rights Reserved.