name.pehl.piriti.restlet.client
Interface PiritiRepresentation<T>

Type Parameters:
T - The model type
All Known Implementing Classes:
PiritiJsonRepresentation, PiritiXmlRepresentation

public interface PiritiRepresentation<T>

Common interface for representations which rely on Piriti readers.

Version:
$Date: 2010-03-24 17:58:41 +0100 (Mi, 24 Mär 2010) $ $Revision: 264 $
Author:
$Author: harald.pehl $

Method Summary
 T getModel()
          Return an instance of T converted by a Piriti reader.
 List<T> getModels()
          Return a list of Ts converted by a Piriti reader.
 

Method Detail

getModel

T getModel()
           throws IOException
Return an instance of T converted by a Piriti reader.

Returns:
Throws:
IOException

getModels

List<T> getModels()
                  throws IOException
Return a list of Ts converted by a Piriti reader.

Returns:
Throws:
IOException


Copyright © 2012 Harald Pehl. All Rights Reserved.