You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by ea...@apache.org on 2007/07/24 00:16:20 UTC
svn commit: r558880 -
/incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/tutorials_and_users_guides/tug.multi_views.xml
Author: eae
Date: Mon Jul 23 15:16:19 2007
New Revision: 558880
URL: http://svn.apache.org/viewvc?view=rev&rev=558880
Log:
UIMA-465 add new APIs to tutorial and users guide
Modified:
incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/tutorials_and_users_guides/tug.multi_views.xml
Modified: incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/tutorials_and_users_guides/tug.multi_views.xml
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/tutorials_and_users_guides/tug.multi_views.xml?view=diff&rev=558880&r1=558879&r2=558880
==============================================================================
--- incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/tutorials_and_users_guides/tug.multi_views.xml (original)
+++ incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/tutorials_and_users_guides/tug.multi_views.xml Mon Jul 23 15:16:19 2007
@@ -230,7 +230,18 @@
<para>Sofa name mapping must not use the <quote>.</quote> (period) character. Runtime Sofa
mapping maps names up to the <quote>.</quote> and appends the period and the following
characters to the mapped name.</para>
+
+ <para>To get a Java Iterator for all the views in a CAS:</para>
+
+ <programlisting>Iterator allViews = cas.getViewIterator();</programlisting>
+
+ <para>To get a Java Iterator for selected views in a CAS, for example, views whose name
+ is either exactly equal to namePrefix or is of the form namePrefix.suffix, where suffix
+ can be any String:</para>
+
+ <programlisting>Iterator someViews = cas.getViewIterator(String namePrefix);</programlisting>
+ <note><para>Sofa name mapping is applied to namePrefix.</para></note>
<para>Sofa name mappings are not currently supported for remote Analysis Engines.
See <xref linkend="ugr.tug.mvs.name_mapping_remote_services"/>.</para>
@@ -628,7 +639,9 @@
<programlisting>JCas myView = aJCas.getView(String localNameOfTheViewBeforeMapping);
-CAS myView = aCAS .getView(String localNameOfTheViewBeforeMapping);</programlisting>
+CAS myView = aCAS .getView(String localNameOfTheViewBeforeMapping);
+Iterator allViews = aCasOrJCas.getViewIterator();
+Iterator someViews = aCasOrJCas.getViewIterator(String localViewNamePrefix);</programlisting>
<para>The following methods are useful for all annotators and applications:</para>