You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by al...@apache.org on 2007/01/25 23:35:41 UTC

svn commit: r500027 - /incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/references/ref.cas.xml

Author: alally
Date: Thu Jan 25 14:35:40 2007
New Revision: 500027

URL: http://svn.apache.org/viewvc?view=rev&rev=500027
Log:
Doc update: typecasting result of getAnnotationIndex is no longer necessary.

Modified:
    incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/references/ref.cas.xml

Modified: incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/references/ref.cas.xml
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/references/ref.cas.xml?view=diff&rev=500027&r1=500026&r2=500027
==============================================================================
--- incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/references/ref.cas.xml (original)
+++ incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/references/ref.cas.xml Thu Jan 25 14:35:40 2007
@@ -726,12 +726,9 @@
         capabilities. To use them, you first get a reference to this built-in index using
         either the <literal>getAnnotationIndex</literal> method on a CAS View object, or
         by asking the <literal>FSIndexRepository</literal> object for an index having the
-        particular name <quote>AnnotationIndex</quote>. You then must cast the returned
-        FSIndex object to <literal>AnnotationIndex</literal>. Here&apos;s an example
-        showing the cast:
+        particular name <quote>AnnotationIndex</quote>, for example:        
         
-        
-        <programlisting>AnnotationIndex idx = (AnnotationIndex) aTCAS.getAnnotationIndex();</programlisting></para>
+        <programlisting>AnnotationIndex idx = aCAS.getAnnotationIndex();</programlisting></para>
       
       <para>This object can be used to produce several additional kinds of iterators. It can
         produce unambiguous iterators; these skip over elements until it finds one where the