Author: schor
Date: Wed Sep 21 15:53:48 2016
New Revision: 1761773

URL: http://svn.apache.org/viewvc?rev=1761773&view=rev
Log:
[UIMA-5115] some startAt only imply Ordered, not AnnotationIndex. Eliminate 
shift(n) - incorporated as positional arg in startAt().

Modified:
    
uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/SelectFSs.java

Modified: 
uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/SelectFSs.java
URL: 
http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/SelectFSs.java?rev=1761773&r1=1761772&r2=1761773&view=diff
==============================================================================
--- 
uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/SelectFSs.java
 (original)
+++ 
uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/SelectFSs.java
 Wed Sep 21 15:53:48 2016
@@ -30,6 +30,7 @@ import org.apache.uima.jcas.tcas.Annotat
  * Collection of builder style methods to specify selection of FSs from indexes
  * Comment codes:
  *   AI = implies AnnotationIndex
+ *   Ordered = implies an ordered index not necessarily AnnotationIndex
  */
 public interface SelectFSs<T extends FeatureStructure> {
   
@@ -47,8 +48,7 @@ public interface SelectFSs<T extends Fea
   SelectFSs<T> type(int jcasClass_dot_type);
   SelectFSs<T> type(Class<? extends TOP> jcasClass_dot_class);
     
-  SelectFSs<T> shift(int amount); 
-  
+//  SelectFSs<T> shift(int amount); // incorporated into startAt 
   
   /*********************************
    * boolean operations
@@ -94,10 +94,10 @@ public interface SelectFSs<T extends Fea
   /*********************************
    * starting position specification
    *********************************/
-  SelectFSs<T> startAt(Annotation fs);  // AI
+  SelectFSs<T> startAt(TOP fs);  // Ordered
   SelectFSs<T> startAt(int begin, int end);   // AI
   
-  SelectFSs<T> startAt(Annotation fs, int shift);        // AI
+  SelectFSs<T> startAt(TOP fs, int shift);        // Ordered
   SelectFSs<T> startAt(int begin, int end, int shift);   // AI
     
   /*********************************


Reply via email to