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

org.apache.olingo.odata2.client.api.ep.DeserializerMetadataProviderInterface Maven / Gradle / Ivy

There is a newer version: 1.40.11
Show newest version
package org.apache.olingo.odata2.client.api.ep;

import java.io.InputStream;

import org.apache.olingo.odata2.api.edm.Edm;
import org.apache.olingo.odata2.api.edm.EdmException;
import org.apache.olingo.odata2.api.ep.EntityProviderException;
import org.apache.olingo.odata2.client.api.edm.EdmDataServices;

/**
 * 
 * Interface for metadata deserializer methods.
 *
 */
public interface DeserializerMetadataProviderInterface {


  /**
   * Read (de-serialize) data from metadata inputStream (as {@link InputStream}) and provide Edm as
   * {@link Edm}
   * 
   * @param inputStream the given input stream
   * @param validate has to be true if metadata should be validated
   * @return Edm as {@link Edm}
   * @throws EntityProviderException, EdmException if reading of data (de-serialization) fails
   */
  EdmDataServices readMetadata(InputStream content, boolean validate) 
      throws EntityProviderException, EdmException; //NOPMD  - suppressed

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy