@@ -117,7 +117,8 @@ public class AlignmentWSImpl implements AlignmentWS {
...
@@ -117,7 +117,8 @@ public class AlignmentWSImpl implements AlignmentWS {
<p>
<p>
The method <tt>align</tt> must implement the matching process.
The method <tt>align</tt> must implement the matching process.
The easiest way to do this is to implement the <ahref="http://alignapi.gforge.inria.fr/">Alignment API</a> (see details in <ahref="http://alignapi.gforge.inria.fr/tutorial/tutorial3/">how to extend the Alignment API with a new matcher</a>). Basically, you need to implement the <tt>AlignmentProcess</tt> interface (method <tt>align</tt>) and extend the <tt>URIAlignment</tt> class (<ahref="../tutorial3/MyAlignment.java">MyAlignment.java</a>):
The easiest way to do this is to implement the <ahref="http://alignapi.gforge.inria.fr/">Alignment API</a> (see details in <ahref="http://alignapi.gforge.inria.fr/tutorial/tutorial3/">how to extend the Alignment API with a new matcher</a>). Basically, you need to implement the <tt>AlignmentProcess</tt> interface (method <tt>align</tt>) and extend the <tt>URIAlignment</tt> class (<ahref="MyAlignment.java">MyAlignment.java</a>):
</p>
</p>
<divclass="fragment">
<divclass="fragment">
...
@@ -142,6 +143,9 @@ public class MyAlignment extends URIAlignment implements AlignmentProcess {
...
@@ -142,6 +143,9 @@ public class MyAlignment extends URIAlignment implements AlignmentProcess {
}
}
</div>
</div>
<p>The complete example, following <ahref="http://alignapi.gforge.inria.fr/tutorial/tutorial3/">how to extend the Alignment API with a new matcher</a> can be found at <ahref="../tutorial3/MyAlignment.java">MyAlignment.java</a>.</p>
<p>Then, it is simple to expose <tt>MyAlignment</tt> as a web service (<ahref="MyAlignmentWS.java">MyAlignmentWS.java</a>):</p>
<p>Then, it is simple to expose <tt>MyAlignment</tt> as a web service (<ahref="MyAlignmentWS.java">MyAlignmentWS.java</a>):</p>