You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by bu...@apache.org on 2013/12/03 12:54:23 UTC

svn commit: r888907 - in /websites/staging/olingo/trunk/content: ./ doc/tutorials/Olingo_Tutorial_BasicRead_EDM.html

Author: buildbot
Date: Tue Dec  3 11:54:23 2013
New Revision: 888907

Log:
Staging update by buildbot for olingo

Modified:
    websites/staging/olingo/trunk/content/   (props changed)
    websites/staging/olingo/trunk/content/doc/tutorials/Olingo_Tutorial_BasicRead_EDM.html

Propchange: websites/staging/olingo/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Tue Dec  3 11:54:23 2013
@@ -1 +1 @@
-1547350
+1547351

Modified: websites/staging/olingo/trunk/content/doc/tutorials/Olingo_Tutorial_BasicRead_EDM.html
==============================================================================
--- websites/staging/olingo/trunk/content/doc/tutorials/Olingo_Tutorial_BasicRead_EDM.html (original)
+++ websites/staging/olingo/trunk/content/doc/tutorials/Olingo_Tutorial_BasicRead_EDM.html Tue Dec  3 11:54:23 2013
@@ -73,7 +73,7 @@
             <h1 id="how-to-use-edmx-source-as-edm-provider-within-an-odata-service">How to use EDMX source as EDM Provider within an OData Service</h1>
 <h2 id="how-to-guide-for-the-using-an-edm-parser">How To Guide for the using an EDM Parser</h2>
 <p>The EDM Parser is designed to parse the metadata document.
-To make the parser accessible from the API, we have to implement the method readMetadata from interface com.sap.core.odata.api.ep.EntityProviderInterface:</p>
+To make the parser accessible from the API, we have to implement the method <code>readMetadata</code> from interface <code>com.sap.core.odata.api.ep.EntityProviderInterface</code>:</p>
 <div class="codehilite"><pre> <span class="p">@</span><span class="n">Override</span>
  <span class="n">public</span> <span class="n">Edm</span> <span class="n">readMetadata</span><span class="p">(</span><span class="n">final</span> <span class="n">InputStream</span> <span class="n">inputStream</span><span class="p">,</span> <span class="n">final</span> <span class="n">boolean</span> <span class="n">validate</span><span class="p">)</span> <span class="n">throws</span> <span class="n">EntityProviderException</span> <span class="p">{</span>
    <span class="n">EdmProvider</span> <span class="n">provider</span> <span class="p">=</span> <span class="n">new</span> <span class="n">EdmxProvider</span><span class="p">().</span><span class="n">parse</span><span class="p">(</span><span class="n">inputStream</span><span class="p">,</span> <span class="n">validate</span><span class="p">);</span>
@@ -85,8 +85,8 @@ To make the parser accessible from the A
 <p>The signature contains the InputStream that represents a data stream read from a file and flag validate. If validate is set to true, the structure of the metadata will be checked according to the CSDL after parsing. For example: it will be validated that each EntityType defines a key element or derives from a BaseType that for its part defines a key.</p>
 <p>To start the parsing we have to follow the next steps:</p>
 <ul>
-<li>create an object of the class EdmxProvider. This class derives from EdmProvider and provides implementations for all of its abstract methods </li>
-<li>invoke the method parse(InputStream, boolean) of this object </li>
+<li>create an object of the class <code>EdmxProvider</code>. This class derives from <code>EdmProvider</code> and provides implementations for all of its abstract methods </li>
+<li>invoke the method <code>parse(InputStream, boolean)</code> of this object </li>
 </ul>
 <p>Returned is an EDM object that contains the complete information from parsed metadata.</p>