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/28 13:55:54 UTC

svn commit: r1809998 - in /uima/uv3/uimaj-v3/trunk: uima-docbook-v3-users-guide/src/docbook/ uimaj-core/src/main/java/org/apache/uima/cas/ uimaj-core/src/main/java/org/apache/uima/cas/impl/ uimaj-core/src/main/java/org/apache/uima/jcas/ uimaj-core/src/...

Author: schor
Date: Thu Sep 28 13:55:53 2017
New Revision: 1809998

URL: http://svn.apache.org/viewvc?rev=1809998&view=rev
Log:
[UIMA-5584] getEmpty xxx shorten to empty xxx. update docs too

Modified:
    uima/uv3/uimaj-v3/trunk/uima-docbook-v3-users-guide/src/docbook/uv3.new_extended_apis.xml
    uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/cas/CAS.java
    uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/CASImpl.java
    uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/XmiCasDeserializer.java
    uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/JCas.java
    uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/CommonList.java
    uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/FSList.java
    uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/FloatList.java
    uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/IntegerList.java
    uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/NonEmptyFSList.java
    uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/NonEmptyFloatList.java
    uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/NonEmptyIntegerList.java
    uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/NonEmptyStringList.java
    uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/StringList.java
    uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/impl/JCasImpl.java

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=1809998&r1=1809997&r2=1809998&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 Thu Sep 28 13:55:53 2017
@@ -116,7 +116,7 @@ under the License.
     </para> 
     
     <para>
-      A new set of methods on UIMA built-in lists, <code>createNonEmptyNode() and getEmptyList()</code>, 
+      A new set of methods on UIMA built-in lists, <code>createNonEmptyNode() and emptyList()</code>, 
       creates a non-empty node of the type, or retrieves a (shared) empty node of the type.  
       These methods are not static, and create or get the instance in the same CAS as the object instance.
       These methods are callable on both the empty and non-empty node instances, or on their shared
@@ -129,9 +129,9 @@ under the License.
       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
+    <para>For UIMA Lists and Arrays, the CAS and JCas has emptyXXXList/Array methods, which return
       a shared instance of the immutable empty object.
-      The Cas and JCas have generic getEmptyArray/List, taking an argument JCas class identifying the type, 
+      The Cas and JCas have generic emptyArray/List, taking an argument JCas class identifying the type, 
       e.g.  FloatArray.class, StringList.class, etc.
     </para>
         
@@ -180,6 +180,11 @@ under the License.
             <code>getLength()</code> walks the list to compute its length
           </para>
         </listitem>
+        <listitem>
+          <para>
+            <code>emptyList</code> returns a shared instance of the empty list of the same type, in the same CAS
+          </para>
+        </listitem>
       </itemizedlist>
       
     </para>

Modified: uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/cas/CAS.java
URL: http://svn.apache.org/viewvc/uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/cas/CAS.java?rev=1809998&r1=1809997&r2=1809998&view=diff
==============================================================================
--- uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/cas/CAS.java (original)
+++ uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/cas/CAS.java Thu Sep 28 13:55:53 2017
@@ -1188,104 +1188,104 @@ public interface CAS extends AbstractCas
     return new SelectFSs_impl<>(this).type(fullyQualifiedTypeName);
   }
   
-  default <T extends TOP> EmptyList getEmptyList(Class<T> clazz) {
-    return ((CASImpl)this.getLowLevelCAS()).getEmptyListFromTypeCode(((TypeImpl)getCasType(clazz)).getCode());
+  default <T extends TOP> EmptyList emptyList(Class<T> clazz) {
+    return ((CASImpl)this.getLowLevelCAS()).emptyListFromTypeCode(((TypeImpl)getCasType(clazz)).getCode());
   }
   
   
   /** 
    * @return a lazily created shared (for this CAS) empty list
    */
-  default EmptyFloatList getEmptyFloatList() {
-    return ((CASImpl)getLowLevelCAS()).getEmptyFloatList();
+  default EmptyFloatList emptyFloatList() {
+    return ((CASImpl)getLowLevelCAS()).emptyFloatList();
   };
   
   /** 
    * @return a lazily created shared (for this CAS) empty list
    */
-  default EmptyFSList getEmptyFSList() {
-    return ((CASImpl)getLowLevelCAS()).getEmptyFSList();
+  default EmptyFSList emptyFSList() {
+    return ((CASImpl)getLowLevelCAS()).emptyFSList();
   };
   
   /** 
    * @return a lazily created shared (for this CAS) empty list
    */
-  default EmptyIntegerList getEmptyIntegerList() {
-    return ((CASImpl)getLowLevelCAS()).getEmptyIntegerList();
+  default EmptyIntegerList emptyIntegerList() {
+    return ((CASImpl)getLowLevelCAS()).emptyIntegerList();
   };
 
   /** 
    * @return a lazily created shared (for this CAS) empty list
    */
-  default EmptyStringList getEmptyStringList() {
-    return ((CASImpl)getLowLevelCAS()).getEmptyStringList();
+  default EmptyStringList emptyStringList() {
+    return ((CASImpl)getLowLevelCAS()).emptyStringList();
   };
   
-  default <T extends TOP> CommonArrayFS getEmptyArray(Class<T> clazz) {
-    return ((CASImpl)getLowLevelCAS()).getEmptyArray(getCasType(clazz));
+  default <T extends TOP> CommonArrayFS emptyArray(Class<T> clazz) {
+    return ((CASImpl)getLowLevelCAS()).emptyArray(getCasType(clazz));
   }
   
   /** 
    * @return a lazily created shared (for this CAS) 0-length array
    */
-  default FloatArray getEmptyFloatArray() {
-    return ((CASImpl)getLowLevelCAS()).getEmptyFloatArray();
+  default FloatArray emptyFloatArray() {
+    return ((CASImpl)getLowLevelCAS()).emptyFloatArray();
   };
 
   /** 
    * @return a lazily created shared (for this CAS) 0-length array
    */
-  default FSArray getEmptyFSArray() {
-    return ((CASImpl)getLowLevelCAS()).getEmptyFSArray();
+  default FSArray emptyFSArray() {
+    return ((CASImpl)getLowLevelCAS()).emptyFSArray();
   };
 
   /** 
    * @return a lazily created shared (for this CAS) 0-length array
    */
-  default IntegerArray getEmptyIntegerArray() {
-    return ((CASImpl)getLowLevelCAS()).getEmptyIntegerArray();
+  default IntegerArray emptyIntegerArray() {
+    return ((CASImpl)getLowLevelCAS()).emptyIntegerArray();
   };
 
   /** 
    * @return a lazily created shared (for this CAS) 0-length array
    */
-  default StringArray getEmptyStringArray() {
-    return ((CASImpl)getLowLevelCAS()).getEmptyStringArray();
+  default StringArray emptyStringArray() {
+    return ((CASImpl)getLowLevelCAS()).emptyStringArray();
   };
 
   /** 
    * @return a lazily created shared (for this CAS) 0-length array
    */
-  default DoubleArray getEmptyDoubleArray() {
-    return ((CASImpl)getLowLevelCAS()).getEmptyDoubleArray();
+  default DoubleArray emptyDoubleArray() {
+    return ((CASImpl)getLowLevelCAS()).emptyDoubleArray();
   };
 
   /** 
    * @return a lazily created shared (for this CAS) 0-length array
    */
-  default LongArray getEmptyLongArray() {
-    return ((CASImpl)getLowLevelCAS()).getEmptyLongArray();
+  default LongArray emptyLongArray() {
+    return ((CASImpl)getLowLevelCAS()).emptyLongArray();
   };
 
   /** 
    * @return a lazily created shared (for this CAS) 0-length array
    */
-  default ShortArray getEmptyShortArray() {
-    return ((CASImpl)getLowLevelCAS()).getEmptyShortArray();
+  default ShortArray emptyShortArray() {
+    return ((CASImpl)getLowLevelCAS()).emptyShortArray();
   };
 
   /** 
    * @return a lazily created shared (for this CAS) 0-length array
    */
-  default ByteArray getEmptyByteArray() {
-    return ((CASImpl)getLowLevelCAS()).getEmptyByteArray();
+  default ByteArray emptyByteArray() {
+    return ((CASImpl)getLowLevelCAS()).emptyByteArray();
   };
 
   /** 
    * @return a lazily created shared (for this CAS) 0-length array
    */
-  default BooleanArray getEmptyBooleanArray() {
-    return ((CASImpl)getLowLevelCAS()).getEmptyBooleanArray();
+  default BooleanArray emptyBooleanArray() {
+    return ((CASImpl)getLowLevelCAS()).emptyBooleanArray();
   };
   
   /**

Modified: uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/CASImpl.java
URL: http://svn.apache.org/viewvc/uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/CASImpl.java?rev=1809998&r1=1809997&r2=1809998&view=diff
==============================================================================
--- uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/CASImpl.java (original)
+++ uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/CASImpl.java Thu Sep 28 13:55:53 2017
@@ -4770,7 +4770,7 @@ public class CASImpl extends AbstractCas
     }
   }
 
-  public EmptyFSList getEmptyFSList() {
+  public EmptyFSList emptyFSList() {
     if (null == svd.emptyFSList) {
       svd.emptyFSList = new EmptyFSList(getTypeSystemImpl().fsEListType, this);
     }
@@ -4778,110 +4778,110 @@ public class CASImpl extends AbstractCas
   }
 
   /*
-   * @see org.apache.uima.cas.CAS#getEmptyFloatList()
+   * @see org.apache.uima.cas.CAS#emptyFloatList()
    */
-  public EmptyFloatList getEmptyFloatList() {
+  public EmptyFloatList emptyFloatList() {
     if (null == svd.emptyFloatList) {
       svd.emptyFloatList = new EmptyFloatList(getTypeSystemImpl().floatEListType, this);
     }
     return svd.emptyFloatList;
   }
   
-  public EmptyIntegerList getEmptyIntegerList() {
+  public EmptyIntegerList emptyIntegerList() {
     if (null == svd.emptyIntegerList) {
       svd.emptyIntegerList = new EmptyIntegerList(getTypeSystemImpl().intEListType, this);
     }
     return svd.emptyIntegerList;
   }
   
-  public EmptyStringList getEmptyStringList() {
+  public EmptyStringList emptyStringList() {
     if (null == svd.emptyStringList) {
       svd.emptyStringList = new EmptyStringList(getTypeSystemImpl().stringEListType, this);
     }
     return svd.emptyStringList;
   }
   
-  public CommonArrayFS getEmptyArray(Type type) {
+  public CommonArrayFS emptyArray(Type type) {
     switch (((TypeImpl)type).getCode()) {
     case TypeSystemConstants.booleanArrayTypeCode :
-      return getEmptyBooleanArray();
+      return emptyBooleanArray();
     case TypeSystemConstants.byteArrayTypeCode :
-      return getEmptyByteArray();
+      return emptyByteArray();
     case TypeSystemConstants.shortArrayTypeCode :
-      return getEmptyShortArray();
+      return emptyShortArray();
     case TypeSystemConstants.intArrayTypeCode :
-      return getEmptyIntegerArray();
+      return emptyIntegerArray();
     case TypeSystemConstants.floatArrayTypeCode :
-      return getEmptyFloatArray();
+      return emptyFloatArray();
     case TypeSystemConstants.longArrayTypeCode :
-      return getEmptyLongArray();
+      return emptyLongArray();
     case TypeSystemConstants.doubleArrayTypeCode :
-      return getEmptyDoubleArray();
+      return emptyDoubleArray();
     case TypeSystemConstants.stringArrayTypeCode :
-      return getEmptyStringArray();
+      return emptyStringArray();
     case TypeSystemConstants.fsArrayTypeCode :
-      return getEmptyFSArray();
+      return emptyFSArray();
     default: throw Misc.internalError(); 
     }
   }
   
-  public FloatArray getEmptyFloatArray() {
+  public FloatArray emptyFloatArray() {
     if (null == svd.emptyFloatArray) {
       svd.emptyFloatArray = new FloatArray(this.getJCas(), 0);
     }
     return svd.emptyFloatArray;
   }
 
-  public FSArray getEmptyFSArray() {
+  public FSArray emptyFSArray() {
     if (null == svd.emptyFSArray) {
       svd.emptyFSArray = new FSArray(this.getJCas(), 0);
     }
     return svd.emptyFSArray;
   }
   
-  public IntegerArray getEmptyIntegerArray() {
+  public IntegerArray emptyIntegerArray() {
     if (null == svd.emptyIntegerArray) {
       svd.emptyIntegerArray = new IntegerArray(this.getJCas(), 0);
     }
     return svd.emptyIntegerArray;
   }
   
-  public StringArray getEmptyStringArray() {
+  public StringArray emptyStringArray() {
     if (null == svd.emptyStringArray) {
       svd.emptyStringArray = new StringArray(this.getJCas(), 0);
     }
     return svd.emptyStringArray;
   }
   
-  public DoubleArray getEmptyDoubleArray() {
+  public DoubleArray emptyDoubleArray() {
     if (null == svd.emptyDoubleArray) {
       svd.emptyDoubleArray = new DoubleArray(this.getJCas(), 0);
     }
     return svd.emptyDoubleArray;
   }
   
-  public LongArray getEmptyLongArray() {
+  public LongArray emptyLongArray() {
     if (null == svd.emptyLongArray) {
       svd.emptyLongArray = new LongArray(this.getJCas(), 0);
     }
     return svd.emptyLongArray;
   }
   
-  public ShortArray getEmptyShortArray() {
+  public ShortArray emptyShortArray() {
     if (null == svd.emptyShortArray) {
       svd.emptyShortArray = new ShortArray(this.getJCas(), 0);
     }
     return svd.emptyShortArray;
   }
   
-  public ByteArray getEmptyByteArray() {
+  public ByteArray emptyByteArray() {
     if (null == svd.emptyByteArray) {
       svd.emptyByteArray = new ByteArray(this.getJCas(), 0);
     }
     return svd.emptyByteArray;
   }
   
-  public BooleanArray getEmptyBooleanArray() {
+  public BooleanArray emptyBooleanArray() {
     if (null == svd.emptyBooleanArray) {
       svd.emptyBooleanArray = new BooleanArray(this.getJCas(), 0);
     }
@@ -4892,11 +4892,11 @@ public class CASImpl extends AbstractCas
    * @param rangeCode special codes for serialization use only
    * @return the empty list (shared) corresponding to the type
    */
-  public EmptyList getEmptyList(int rangeCode) {
-    return (rangeCode == CasSerializerSupport.TYPE_CLASS_INTLIST) ? getEmptyIntegerList() :
-           (rangeCode == CasSerializerSupport.TYPE_CLASS_FLOATLIST) ? getEmptyFloatList() :
-           (rangeCode == CasSerializerSupport.TYPE_CLASS_STRINGLIST) ? getEmptyStringList() :
-                                                                       getEmptyFSList();
+  public EmptyList emptyList(int rangeCode) {
+    return (rangeCode == CasSerializerSupport.TYPE_CLASS_INTLIST) ? emptyIntegerList() :
+           (rangeCode == CasSerializerSupport.TYPE_CLASS_FLOATLIST) ? emptyFloatList() :
+           (rangeCode == CasSerializerSupport.TYPE_CLASS_STRINGLIST) ? emptyStringList() :
+                                                                       emptyFSList();
   }
   
   /**
@@ -4904,20 +4904,20 @@ public class CASImpl extends AbstractCas
    * @param typeCode -
    * @return -
    */
-  public EmptyList getEmptyListFromTypeCode(int typeCode) {
+  public EmptyList emptyListFromTypeCode(int typeCode) {
     switch (typeCode) {
     case fsListTypeCode:
     case fsEListTypeCode:
-    case fsNeListTypeCode: return getEmptyFSList();
+    case fsNeListTypeCode: return emptyFSList();
     case floatListTypeCode:
     case floatEListTypeCode:
-    case floatNeListTypeCode: return getEmptyFloatList();
+    case floatNeListTypeCode: return emptyFloatList();
     case intListTypeCode:
     case intEListTypeCode:
-    case intNeListTypeCode: return getEmptyIntegerList();
+    case intNeListTypeCode: return emptyIntegerList();
     case stringListTypeCode:
     case stringEListTypeCode:
-    case stringNeListTypeCode: return getEmptyStringList();
+    case stringNeListTypeCode: return emptyStringList();
     default: throw new IllegalArgumentException();
     }
   }

Modified: uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/XmiCasDeserializer.java
URL: http://svn.apache.org/viewvc/uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/XmiCasDeserializer.java?rev=1809998&r1=1809997&r2=1809998&view=diff
==============================================================================
--- uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/XmiCasDeserializer.java (original)
+++ uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/XmiCasDeserializer.java Thu Sep 28 13:55:53 2017
@@ -1209,7 +1209,7 @@ public class XmiCasDeserializer {
           if (featVals == null) {
             fs.setFeatureValue(fi,  null);
           } else if (featVals.size() == 0) {
-            fs.setFeatureValue(fi, casBeingFilled.getEmptyList(rangeCode));
+            fs.setFeatureValue(fi, casBeingFilled.emptyList(rangeCode));
           } else {
             CommonList existingList = (CommonList) fs.getFeatureValue(fi);
             CommonList theList = createOrUpdateList(fi.getRangeImpl(), featVals, -1, existingList);
@@ -1244,7 +1244,7 @@ public class XmiCasDeserializer {
         updateExistingList(values, existingList);
         return existingList;
       } else {
-        return createListFromStringValues(values, casBeingFilled.getEmptyListFromTypeCode(listType.getCode()));
+        return createListFromStringValues(values, casBeingFilled.emptyListFromTypeCode(listType.getCode()));
       }
     }
     
@@ -1314,7 +1314,7 @@ public class XmiCasDeserializer {
     private CommonArrayFS createNewArray(TypeImpl type, List<String> values) {
       final int sz = values.size();
       CommonArrayFS fs = (sz == 0) 
-                           ? casBeingFilled.getEmptyArray(type)
+                           ? casBeingFilled.emptyArray(type)
                            : (CommonArrayFS) casBeingFilled.createArray(type, sz);
       if (fs instanceof FSArray) {
         final FSArray fsArray = (FSArray) fs;
@@ -1380,7 +1380,7 @@ public class XmiCasDeserializer {
         if (existingList instanceof EmptyList) {
           return existingList;
         } else {
-          return existingList.getEmptyList();
+          return existingList.emptyList();
         }
       }
           
@@ -1412,7 +1412,7 @@ public class XmiCasDeserializer {
       
         // got to the end of the values, but the existing list has more elements
         //   truncate the existing list
-        prevNode.setTail(existingList.getEmptyList());
+        prevNode.setTail(existingList.emptyList());
         return existingList;
       }
 
@@ -1434,7 +1434,7 @@ public class XmiCasDeserializer {
     
       // got to the end of the values, but the existing list has more elements
       //   truncate the existing list
-      prevNode.setTail(existingList.getEmptyList());
+      prevNode.setTail(existingList.emptyList());
       return existingList;
     }
 

Modified: uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/JCas.java
URL: http://svn.apache.org/viewvc/uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/JCas.java?rev=1809998&r1=1809997&r2=1809998&view=diff
==============================================================================
--- uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/JCas.java (original)
+++ uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/JCas.java Thu Sep 28 13:55:53 2017
@@ -271,11 +271,11 @@ public interface JCas extends AbstractCa
    * updatable (it has no subfields). This is initialized lazily on first reference, and reset when
    * the CAS is reset.
    * @return 0-length instance of a StringArray
-   * @deprecated renamed getEmptyXXXArray
+   * @deprecated renamed emptyXXXArray
    */
   @Deprecated
   default StringArray getStringArray0L() {
-    return this.getCas().getEmptyStringArray();
+    return this.getCas().emptyStringArray();
   }
   /**
    * A constant for each cas which holds a 0-length instance. Since this can be a common value, we
@@ -284,8 +284,8 @@ public interface JCas extends AbstractCa
    * the CAS is reset.
    * @return 0-length instance of a StringArray
    */
-  default StringArray getEmptyStringArray() {
-    return this.getCas().getEmptyStringArray();
+  default StringArray emptyStringArray() {
+    return this.getCas().emptyStringArray();
   }
 
   /**
@@ -294,11 +294,11 @@ public interface JCas extends AbstractCa
    * updatable (it has no subfields). This is initialized lazily on first reference, and reset when
    * the CAS is reset.
    * @return 0-length instance of an IntegerArray
-   * @deprecated renamed getEmptyXXXArray
+   * @deprecated renamed emptyXXXArray
    */
   @Deprecated
   default IntegerArray getIntegerArray0L() {
-    return this.getCas().getEmptyIntegerArray();
+    return this.getCas().emptyIntegerArray();
   }
   /**
    * A constant for each cas which holds a 0-length instance. Since this can be a common value, we
@@ -307,8 +307,8 @@ public interface JCas extends AbstractCa
    * the CAS is reset.
    * @return 0-length instance of an IntegerArray
    */
-  default IntegerArray getEmptyIntegerArray() {
-    return this.getCas().getEmptyIntegerArray();
+  default IntegerArray emptyIntegerArray() {
+    return this.getCas().emptyIntegerArray();
   }
 
   /**
@@ -317,11 +317,11 @@ public interface JCas extends AbstractCa
    * updatable (it has no subfields). This is initialized lazily on first reference, and reset when
    * the CAS is reset.
    * @return 0-length instance of a FloatArray
-   * @deprecated renamed getEmptyXXXArray
+   * @deprecated renamed emptyXXXArray
    */
   @Deprecated
   default FloatArray getFloatArray0L() {
-    return this.getCas().getEmptyFloatArray();
+    return this.getCas().emptyFloatArray();
   }
   /**
    * A constant for each cas which holds a 0-length instance. Since this can be a common value, we
@@ -330,8 +330,8 @@ public interface JCas extends AbstractCa
    * the CAS is reset.
    * @return 0-length instance of a FloatArray
    */
-  default FloatArray getEmptyFloatArray() {
-    return this.getCas().getEmptyFloatArray();
+  default FloatArray emptyFloatArray() {
+    return this.getCas().emptyFloatArray();
   }
 
   /**
@@ -342,11 +342,11 @@ public interface JCas extends AbstractCa
    * 
    * See also the CAS API 
    * @return 0-length instance of a FSArray
-   * @deprecated renamed getEmptyXXXArray
+   * @deprecated renamed emptyXXXArray
    */
   @Deprecated
   default FSArray getFSArray0L() {
-    return this.getCas().getEmptyFSArray();
+    return this.getCas().emptyFSArray();
   }
   /**
    * A constant for each cas which holds a 0-length instance. Since this can be a common value, we
@@ -357,8 +357,8 @@ public interface JCas extends AbstractCa
    * See also the CAS API 
    * @return 0-length instance of a FSArray
    */
-  default FSArray getEmptyFSArray() {
-    return this.getCas().getEmptyFSArray();
+  default FSArray emptyFSArray() {
+    return this.getCas().emptyFSArray();
   }
 
   /**
@@ -368,8 +368,8 @@ public interface JCas extends AbstractCa
    * the CAS is reset.
    * @return 0-length instance of a ByteArray
    */
-  default ByteArray getEmptyByteArray() {
-    return this.getCas().getEmptyByteArray();
+  default ByteArray emptyByteArray() {
+    return this.getCas().emptyByteArray();
   }
 
   /**
@@ -379,8 +379,8 @@ public interface JCas extends AbstractCa
    * the CAS is reset.
    * @return 0-length instance of a ShortArray
    */
-  default ShortArray getEmptyuShortArray() {
-    return this.getCas().getEmptyShortArray();
+  default ShortArray emptyShortArray() {
+    return this.getCas().emptyShortArray();
   }
 
   /**
@@ -390,8 +390,8 @@ public interface JCas extends AbstractCa
    * the CAS is reset.
    * @return 0-length instance of a LongArray
    */
-  default LongArray getEmptyLongArray() {
-    return this.getCas().getEmptyLongArray();
+  default LongArray emptyLongArray() {
+    return this.getCas().emptyLongArray();
   }
   
   /**
@@ -401,8 +401,8 @@ public interface JCas extends AbstractCa
    * the CAS is reset.
    * @return 0-length instance of a DoubleArray
    */
-  default DoubleArray getEmptyDoubleArray() {
-    return this.getCas().getEmptyDoubleArray();
+  default DoubleArray emptyDoubleArray() {
+    return this.getCas().emptyDoubleArray();
   }
   
   /**
@@ -412,8 +412,8 @@ public interface JCas extends AbstractCa
    * the CAS is reset.
    * @return 0-length instance of a DoubleArray
    */
-  default BooleanArray getEmptyBooleanArray() {
-    return this.getCas().getEmptyBooleanArray();
+  default BooleanArray emptyBooleanArray() {
+    return this.getCas().emptyBooleanArray();
   }
 
 
@@ -901,8 +901,8 @@ public interface JCas extends AbstractCa
    * @param <T> the type of the list, e.g FloatList
    * @return - the shared (in this CAS) instance of the empty list (immutable)
    */
-  default <T extends TOP> EmptyList getEmptyList(Class<T> clazz) {
-    return this.getCasImpl().getEmptyListFromTypeCode(((TypeImpl)getCasType(clazz)).getCode());
+  default <T extends TOP> EmptyList emptyList(Class<T> clazz) {
+    return this.getCasImpl().emptyListFromTypeCode(((TypeImpl)getCasType(clazz)).getCode());
   }
 
   /**
@@ -910,7 +910,7 @@ public interface JCas extends AbstractCa
    * @param <T> the type of the list, e.g FloatArray
    * @return a shared (in this CAS) instance of the empty array (immutable)
    */
-  default <T extends TOP> CommonArrayFS getEmptyArray(Class<T> clazz) {
-    return this.getCasImpl().getEmptyArray(getCasType(clazz));
+  default <T extends TOP> CommonArrayFS emptyArray(Class<T> clazz) {
+    return this.getCasImpl().emptyArray(getCasType(clazz));
   }
 }
\ No newline at end of file

Modified: uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/CommonList.java
URL: http://svn.apache.org/viewvc/uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/CommonList.java?rev=1809998&r1=1809997&r2=1809998&view=diff
==============================================================================
--- uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/CommonList.java (original)
+++ uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/CommonList.java Thu Sep 28 13:55:53 2017
@@ -133,7 +133,7 @@ public interface CommonList extends Feat
 	/**
 	 * @return a shared instance of the empty node.
 	 */
-	CommonList getEmptyList();
+	CommonList emptyList();
 	
 	/**
 	 * Internal use

Modified: uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/FSList.java
URL: http://svn.apache.org/viewvc/uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/FSList.java?rev=1809998&r1=1809997&r2=1809998&view=diff
==============================================================================
--- uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/FSList.java (original)
+++ uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/FSList.java Thu Sep 28 13:55:53 2017
@@ -130,7 +130,7 @@ public abstract class FSList extends TOP
    * @return an FSList, with the elements from the array
    */
   public static FSList create(JCas jcas, FeatureStructure[] a) {
-    FSList fsl = jcas.getCasImpl().getEmptyFSList();   
+    FSList fsl = jcas.getCasImpl().emptyFSList();   
     for (int i = a.length - 1; i >= 0; i--) {
       fsl = fsl.push((TOP) a[i]);
     }   
@@ -163,7 +163,7 @@ public abstract class FSList extends TOP
   }
   
   @Override
-  public EmptyFSList getEmptyList() {
-    return this._casView.getEmptyFSList();
+  public EmptyFSList emptyList() {
+    return this._casView.emptyFSList();
   }
 }

Modified: uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/FloatList.java
URL: http://svn.apache.org/viewvc/uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/FloatList.java?rev=1809998&r1=1809997&r2=1809998&view=diff
==============================================================================
--- uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/FloatList.java (original)
+++ uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/FloatList.java Thu Sep 28 13:55:53 2017
@@ -76,8 +76,8 @@ public abstract class FloatList extends
   }
   
   @Override
-  public EmptyFloatList getEmptyList() {
-    return this._casView.getEmptyFloatList();
+  public EmptyFloatList emptyList() {
+    return this._casView.emptyFloatList();
   }
   
   /**
@@ -87,7 +87,7 @@ public abstract class FloatList extends
    * @return an FloatList, with the elements from the array
    */
   public static FloatList create(JCas jcas, Float[] a) {
-    FloatList floatList = jcas.getCasImpl().getEmptyFloatList();   
+    FloatList floatList = jcas.getCasImpl().emptyFloatList();   
     for (int i = a.length - 1; i >= 0; i--) {
       floatList = floatList.push(a[i]);
     }   

Modified: uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/IntegerList.java
URL: http://svn.apache.org/viewvc/uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/IntegerList.java?rev=1809998&r1=1809997&r2=1809998&view=diff
==============================================================================
--- uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/IntegerList.java (original)
+++ uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/IntegerList.java Thu Sep 28 13:55:53 2017
@@ -95,8 +95,8 @@ public abstract class IntegerList extend
   }
    
   @Override
-  public EmptyIntegerList getEmptyList() {
-    return this._casView.getEmptyIntegerList();
+  public EmptyIntegerList emptyList() {
+    return this._casView.emptyIntegerList();
   }
 
   /**
@@ -106,7 +106,7 @@ public abstract class IntegerList extend
    * @return an IntegerList, with the elements from the array
    */
   public static IntegerList create(JCas jcas, int[] a) {
-    IntegerList integerList = jcas.getCasImpl().getEmptyIntegerList();   
+    IntegerList integerList = jcas.getCasImpl().emptyIntegerList();   
     for (int i = a.length - 1; i >= 0; i--) {
       integerList = integerList.push(a[i]);
     }   

Modified: uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/NonEmptyFSList.java
URL: http://svn.apache.org/viewvc/uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/NonEmptyFSList.java?rev=1809998&r1=1809997&r2=1809998&view=diff
==============================================================================
--- uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/NonEmptyFSList.java (original)
+++ uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/NonEmptyFSList.java Thu Sep 28 13:55:53 2017
@@ -98,7 +98,7 @@ public class NonEmptyFSList extends FSLi
    * @param head -
    */
   public NonEmptyFSList(JCas jcas, TOP head) {
-    this(jcas, head, jcas.getCasImpl().getEmptyFSList());
+    this(jcas, head, jcas.getCasImpl().emptyFSList());
   }
   
   // *------------------*

Modified: uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/NonEmptyFloatList.java
URL: http://svn.apache.org/viewvc/uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/NonEmptyFloatList.java?rev=1809998&r1=1809997&r2=1809998&view=diff
==============================================================================
--- uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/NonEmptyFloatList.java (original)
+++ uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/NonEmptyFloatList.java Thu Sep 28 13:55:53 2017
@@ -96,7 +96,7 @@ public class NonEmptyFloatList extends F
    * @param v -
    */
   public NonEmptyFloatList(JCas jcas, float v) {
-    this(jcas, v, jcas.getCasImpl().getEmptyFloatList());
+    this(jcas, v, jcas.getCasImpl().emptyFloatList());
   }
   
   // *------------------*

Modified: uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/NonEmptyIntegerList.java
URL: http://svn.apache.org/viewvc/uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/NonEmptyIntegerList.java?rev=1809998&r1=1809997&r2=1809998&view=diff
==============================================================================
--- uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/NonEmptyIntegerList.java (original)
+++ uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/NonEmptyIntegerList.java Thu Sep 28 13:55:53 2017
@@ -100,7 +100,7 @@ public class NonEmptyIntegerList extends
    * @param v -
    */
   public NonEmptyIntegerList(JCas jcas, int v) {
-    this(jcas, v, jcas.getCasImpl().getEmptyIntegerList());
+    this(jcas, v, jcas.getCasImpl().emptyIntegerList());
   }
   
   // *------------------*

Modified: uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/NonEmptyStringList.java
URL: http://svn.apache.org/viewvc/uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/NonEmptyStringList.java?rev=1809998&r1=1809997&r2=1809998&view=diff
==============================================================================
--- uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/NonEmptyStringList.java (original)
+++ uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/NonEmptyStringList.java Thu Sep 28 13:55:53 2017
@@ -98,7 +98,7 @@ public class NonEmptyStringList extends
    * @param head -
    */
   public NonEmptyStringList(JCas jcas, String head) {
-    this(jcas, head, jcas.getCasImpl().getEmptyStringList());
+    this(jcas, head, jcas.getCasImpl().emptyStringList());
   }
   
 // *------------------*

Modified: uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/StringList.java
URL: http://svn.apache.org/viewvc/uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/StringList.java?rev=1809998&r1=1809997&r2=1809998&view=diff
==============================================================================
--- uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/StringList.java (original)
+++ uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/StringList.java Thu Sep 28 13:55:53 2017
@@ -69,8 +69,8 @@ public abstract class StringList extends
   } 
   
   @Override
-  public EmptyStringList getEmptyList() {
-    return this._casView.getEmptyStringList();
+  public EmptyStringList emptyList() {
+    return this._casView.emptyStringList();
   }
 
   /**
@@ -80,7 +80,7 @@ public abstract class StringList extends
    * @return an StringList, with the elements from the array
    */
   public static StringList create(JCas jcas, String[] a) {
-    StringList stringList = jcas.getCasImpl().getEmptyStringList();   
+    StringList stringList = jcas.getCasImpl().emptyStringList();   
     for (int i = a.length - 1; i >= 0; i--) {
       stringList = stringList.push(a[i]);
     }   

Modified: uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/impl/JCasImpl.java
URL: http://svn.apache.org/viewvc/uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/impl/JCasImpl.java?rev=1809998&r1=1809997&r2=1809998&view=diff
==============================================================================
--- uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/impl/JCasImpl.java (original)
+++ uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/impl/JCasImpl.java Thu Sep 28 13:55:53 2017
@@ -866,44 +866,44 @@ public class JCasImpl extends AbstractCa
    * (non-Javadoc)
    * 
    * @see org.apache.uima.jcas.JCas#getStringArray0L()
-   * @deprecated use getEmptyXXXArray() instead
+   * @deprecated use emptyXXXArray() instead
    */
   @Deprecated
   public StringArray getStringArray0L() {
-    return this.getCas().getEmptyStringArray();
+    return this.getCas().emptyStringArray();
   }
 
   /*
    * (non-Javadoc)
    * 
    * @see org.apache.uima.jcas.JCas#getIntegerArray0L()
-   * @deprecated use getEmptyXXXArray() instead
+   * @deprecated use emptyXXXArray() instead
    */
   @Deprecated
   public IntegerArray getIntegerArray0L() {
-    return this.getCas().getEmptyIntegerArray();
+    return this.getCas().emptyIntegerArray();
   }
 
   /*
    * (non-Javadoc)
    * 
    * @see org.apache.uima.jcas.JCas#getFloatArray0L()
-   * @deprecated use getEmptyXXXArray() instead
+   * @deprecated use emptyXXXArray() instead
    */
   @Deprecated
   public FloatArray getFloatArray0L() {
-    return this.getCas().getEmptyFloatArray();
+    return this.getCas().emptyFloatArray();
   }
   
   /*
    * (non-Javadoc)
    * 
    * @see org.apache.uima.jcas.JCas#getFSArray0L()
-   * @deprecated use getEmptyXXXArray() instead
+   * @deprecated use emptyXXXArray() instead
    */
   @Deprecated
   public FSArray getFSArray0L() {
-    return this.getCas().getEmptyFSArray();
+    return this.getCas().emptyFSArray();
   }
 
   /*