You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by re...@apache.org on 2014/08/08 14:51:37 UTC

svn commit: r1616737 - in /uima/uimafit/trunk/uimafit-core/src/main/java/org/apache/uima/fit/util: CasUtil.java JCasUtil.java

Author: rec
Date: Fri Aug  8 12:51:36 2014
New Revision: 1616737

URL: http://svn.apache.org/r1616737
Log:
[UIMA-3984] selectCovered documentation does not mention that covering annotation is never part of the result

Modified:
    uima/uimafit/trunk/uimafit-core/src/main/java/org/apache/uima/fit/util/CasUtil.java
    uima/uimafit/trunk/uimafit-core/src/main/java/org/apache/uima/fit/util/JCasUtil.java

Modified: uima/uimafit/trunk/uimafit-core/src/main/java/org/apache/uima/fit/util/CasUtil.java
URL: http://svn.apache.org/viewvc/uima/uimafit/trunk/uimafit-core/src/main/java/org/apache/uima/fit/util/CasUtil.java?rev=1616737&r1=1616736&r2=1616737&view=diff
==============================================================================
--- uima/uimafit/trunk/uimafit-core/src/main/java/org/apache/uima/fit/util/CasUtil.java (original)
+++ uima/uimafit/trunk/uimafit-core/src/main/java/org/apache/uima/fit/util/CasUtil.java Fri Aug  8 12:51:36 2014
@@ -379,7 +379,10 @@ public final class CasUtil {
    * Get a list of annotations of the given annotation type constraint by a certain annotation.
    * Iterates over all annotations of the given type to find the covered annotations. Does not use
    * subiterators and does not respect type prioritites. Was adapted from {@link Subiterator}. Uses
-   * the same approach except that type priorities are ignored.
+   * the same approach except that type priorities are ignored. 
+   * <p>
+   * The covering annotation is never returned itself, even if it is of the queried-for type or a
+   * subtype of that type.
    * 
    * @param type
    *          a UIMA type.
@@ -398,6 +401,9 @@ public final class CasUtil {
    * Iterates over all annotations of the given type to find the covered annotations. Does not use
    * subiterators and does not respect type prioritites. Was adapted from {@link Subiterator}. Uses
    * the same approach except that type priorities are ignored.
+   * <p>
+   * The covering annotation is never returned itself, even if it is of the queried-for type or a
+   * subtype of that type.
    * 
    * @param cas
    *          a CAS.

Modified: uima/uimafit/trunk/uimafit-core/src/main/java/org/apache/uima/fit/util/JCasUtil.java
URL: http://svn.apache.org/viewvc/uima/uimafit/trunk/uimafit-core/src/main/java/org/apache/uima/fit/util/JCasUtil.java?rev=1616737&r1=1616736&r2=1616737&view=diff
==============================================================================
--- uima/uimafit/trunk/uimafit-core/src/main/java/org/apache/uima/fit/util/JCasUtil.java (original)
+++ uima/uimafit/trunk/uimafit-core/src/main/java/org/apache/uima/fit/util/JCasUtil.java Fri Aug  8 12:51:36 2014
@@ -257,6 +257,9 @@ public final class JCasUtil {
    * Get a list of annotations of the given annotation type constrained by a 'covering' annotation.
    * Iterates over all annotations of the given type to find the covered annotations. Does not use
    * subiterators.
+   * <p>
+   * The covering annotation is never returned itself, even if it is of the queried-for type or a
+   * subtype of that type.
    * 
    * @param <T>
    *          the JCas type.
@@ -278,6 +281,9 @@ public final class JCasUtil {
    * Get a list of annotations of the given annotation type constrained by a 'covering' annotation.
    * Iterates over all annotations of the given type to find the covered annotations. Does not use
    * subiterators.
+   * <p>
+   * The covering annotation is never returned itself, even if it is of the queried-for type or a
+   * subtype of that type.
    * 
    * @param <T>
    *          the JCas type.