You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2017/09/04 17:10:54 UTC
svn commit: r1807260 - in /uima/uv3/uimaj-v3/trunk: RELEASE_NOTES.html
uima-docbook-v3-users-guide/src/docbook/uv3.backwards_compatibility.xml
uima-docbook-v3-users-guide/src/docbook/uv3.new_extended_apis.xml
Author: schor
Date: Mon Sep 4 17:10:53 2017
New Revision: 1807260
URL: http://svn.apache.org/viewvc?rev=1807260&view=rev
Log: (empty)
Modified:
uima/uv3/uimaj-v3/trunk/RELEASE_NOTES.html
uima/uv3/uimaj-v3/trunk/uima-docbook-v3-users-guide/src/docbook/uv3.backwards_compatibility.xml
uima/uv3/uimaj-v3/trunk/uima-docbook-v3-users-guide/src/docbook/uv3.new_extended_apis.xml
Modified: uima/uv3/uimaj-v3/trunk/RELEASE_NOTES.html
URL: http://svn.apache.org/viewvc/uima/uv3/uimaj-v3/trunk/RELEASE_NOTES.html?rev=1807260&r1=1807259&r2=1807260&view=diff
==============================================================================
--- uima/uv3/uimaj-v3/trunk/RELEASE_NOTES.html (original)
+++ uima/uv3/uimaj-v3/trunk/RELEASE_NOTES.html Mon Sep 4 17:10:53 2017
@@ -119,6 +119,7 @@ users guide for more.</p>
<p>Specific changes in this release versus the previous alpha02 release include</p>
<ul>
+ <li>Renamed some methods to create UIMA arrays and lists from createFromArray to create</li>
<li>Added missing methods to logger interface to support Supplier argument.</li>
<li>The launchers for the normal UIMA Tooling default to specifying the built-in-to-Java logging framework.</li>
<li>The launchers were modified to support Java-style wild-card notation in the classpath.</li>
Modified: uima/uv3/uimaj-v3/trunk/uima-docbook-v3-users-guide/src/docbook/uv3.backwards_compatibility.xml
URL: http://svn.apache.org/viewvc/uima/uv3/uimaj-v3/trunk/uima-docbook-v3-users-guide/src/docbook/uv3.backwards_compatibility.xml?rev=1807260&r1=1807259&r2=1807260&view=diff
==============================================================================
--- uima/uv3/uimaj-v3/trunk/uima-docbook-v3-users-guide/src/docbook/uv3.backwards_compatibility.xml (original)
+++ uima/uv3/uimaj-v3/trunk/uima-docbook-v3-users-guide/src/docbook/uv3.backwards_compatibility.xml Mon Sep 4 17:10:53 2017
@@ -55,9 +55,19 @@ under the License.
<para>The non-JCas Java cover classes for the built-in UIMA types remain, for backwards compatibility.
So, if you have code that casts a Feature Structure instance to AnnotationImpl (a now deprecated
- version 2 non-JCas Java cover class), that will continue to work.
-
- </para>
+ version 2 non-JCas Java cover class), that will continue to work.
+ </para>
+
+ <section id="uv3.backwards_compatibility.jcas.names">
+ <title>Additional reserved names in the JCas generated classes</title>
+ <titleabbrev>JCas reserved names</titleabbrev>
+
+ <para>Names beginning with "_" (underscore) are being used by the new JCas implementation, so you should not
+ name things with this convention. If you do, please insure your names are not colliding with the names
+ being used by the generated JCas files.
+ </para>
+
+ </section>
</section>
Modified: uima/uv3/uimaj-v3/trunk/uima-docbook-v3-users-guide/src/docbook/uv3.new_extended_apis.xml
URL: http://svn.apache.org/viewvc/uima/uv3/uimaj-v3/trunk/uima-docbook-v3-users-guide/src/docbook/uv3.new_extended_apis.xml?rev=1807260&r1=1807259&r2=1807260&view=diff
==============================================================================
--- uima/uv3/uimaj-v3/trunk/uima-docbook-v3-users-guide/src/docbook/uv3.new_extended_apis.xml (original)
+++ uima/uv3/uimaj-v3/trunk/uima-docbook-v3-users-guide/src/docbook/uv3.new_extended_apis.xml Mon Sep 4 17:10:53 2017
@@ -134,21 +134,67 @@ public final static String _FeatName_sof
<para>
A new set of static methods on UIMA built-in lists and arrays, <code>create(jcas, array_source)</code>
- is available; these take a Java array of items, and creates
+ take a Java array of items, and creates
a corresponding UIMA built-in list or array populated with items from the array_source.
</para>
+ <para>For UIMA Lists and Arrays, the CAS and JCas has getEmptyXXXList/Array methods, which return
+ a shared instance of the immutable empty object.
+ </para>
+
<para>For lists, new static methods <code>getEmptyList(JCas jcas)</code> on each of the 4
kinds of built-in lists (FS, Integer, Float, and String) retrieve a
shared, common instance of the EmptyXxxList for a CAS.
</para>
- <para>For lists, a new <code>push(item)</code> API on an existing list node creates a new
- non-empty node, sets its head to <code>item</code> and its tail to the existing list node.
- This allows easy construction of a list in backwards order.
- There is also a <code>pushNode()</code> which just creates and links in a new node to the front of the list.
- And finally, there's a <code>createNonEmptyNode()</code>, which just creates a node of the
- same type, in the same CAS, without linking it.</para>
+ <para>For lists, there are some new common APIs for all list kinds.
+ <itemizedlist>
+ <listitem>
+ <para>
+ <code>push(item)</code> pushes the item onto an existing list node, creates a new
+ non-empty node, setting its head to <code>item</code> and its tail to the existing list node.
+ This allows easy construction of a list in backwards order.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <code>pushNode()</code> creates and links in a new node in front of this node.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <code>insertNode()</code> creates and links in a new node following this node.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <code>createNonEmptyNode()</code> creates a node of the
+ same type, in the same CAS, without linking it.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <code>getCommonTail()</code> gets the tail of the node
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <code>setTail()</code> sets the tail of the node
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <code>walkList()</code> walks the list applying a consumer to each item
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <code>getLength()</code> walks the list to compute its length
+ </para>
+ </listitem>
+ </itemizedlist>
+
+ </para>
<section id="uv3.new_extended_apis.reorganized.lists_and_arrays">
<title>Built-in lists and arrays have common super classes / interfaces</title>