All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sencha.gxt.data.shared.loader.DataReader Maven / Gradle / Ivy

/**
 * Ext GWT 3.0.0-rc - Ext for GWT
 * Copyright(c) 2007-2011, Sencha, Inc.
 * [email protected]
 *
 * http://sencha.com/license
 */
package com.sencha.gxt.data.shared.loader;

/**
 * Interface for objects that translate raw data into a given type. For example,
 * an XML string being returned from the server could be used to create model
 * instances.
 * 
 * @param  the return data type
 * @param  the incoming data type to be read
 */
public interface DataReader {

  /**
   * Reads the raw data and returns the typed data.
   * 
   * @param loadConfig the load config information
   * @param data the data to read
   * @return the processed and / or converted data
   */
  public M read(Object loadConfig, D data);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy