Author: schor
Date: Fri May 13 20:14:34 2016
New Revision: 1743748

URL: http://svn.apache.org/viewvc?rev=1743748&view=rev
Log:
[UIMA-4666] new jcasgend versions

Modified:
    
uima/uimaj/branches/experiment-v3-jcas/uimaj-json/src/test/java/org/apache/uima/test/AllTypes.java
    
uima/uimaj/branches/experiment-v3-jcas/uimaj-json/src/test/java/org/apache/uima/test/RefTypes.java

Modified: 
uima/uimaj/branches/experiment-v3-jcas/uimaj-json/src/test/java/org/apache/uima/test/AllTypes.java
URL: 
http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-json/src/test/java/org/apache/uima/test/AllTypes.java?rev=1743748&r1=1743747&r2=1743748&view=diff
==============================================================================
--- 
uima/uimaj/branches/experiment-v3-jcas/uimaj-json/src/test/java/org/apache/uima/test/AllTypes.java
 (original)
+++ 
uima/uimaj/branches/experiment-v3-jcas/uimaj-json/src/test/java/org/apache/uima/test/AllTypes.java
 Fri May 13 20:14:34 2016
@@ -1,11 +1,16 @@
 
 
-/* First created by JCasGen Sat Nov 01 07:15:36 EDT 2014 */
+   
+/* Apache UIMA v3 - First created by JCasGen Tue Mar 08 10:58:32 EST 2016 */
+
 package org.apache.uima.test;
 
+import org.apache.uima.cas.impl.CASImpl;
+import org.apache.uima.cas.impl.TypeImpl;
+import org.apache.uima.cas.impl.TypeSystemImpl;
 import org.apache.uima.jcas.JCas; 
 import org.apache.uima.jcas.JCasRegistry;
-import org.apache.uima.jcas.cas.TOP_Type;
+
 
 import org.apache.uima.jcas.cas.FSList;
 import org.apache.uima.jcas.cas.FSArray;
@@ -19,8 +24,8 @@ import org.apache.uima.jcas.cas.BooleanA
 
 
 /** 
- * Updated by JCasGen Sat Nov 01 07:15:36 EDT 2014
- * XML source: 
C:/au/svnCheckouts/trunk/uimaj/uimaj-json/src/test/resources/CasSerialization/desc/allTypes.xml
+ * Updated by JCasGen Tue Mar 08 10:58:32 EST 2016
+ * XML source: 
C:/au/svnCheckouts/branches/uimaj/experiment-v3-jcas/uimaj-json/src/test/resources/CasSerialization/desc/allTypes.xml
  * @generated */
 public class AllTypes extends Annotation {
   /** @generated
@@ -39,17 +44,49 @@ public class AllTypes extends Annotation
   @Override
   public              int getTypeIndexID() {return typeIndexID;}
  
+ 
+  /* *******************
+   *   Feature Offsets *
+   * *******************/ 
+   
+  /* Feature Adjusted Offsets */
+  public final static int _FI_aBoolean = 
TypeSystemImpl.getAdjustedFeatureOffset("aBoolean");
+  public final static int _FI_aByte = 
TypeSystemImpl.getAdjustedFeatureOffset("aByte");
+  public final static int _FI_aShort = 
TypeSystemImpl.getAdjustedFeatureOffset("aShort");
+  public final static int _FI_aInteger = 
TypeSystemImpl.getAdjustedFeatureOffset("aInteger");
+  public final static int _FI_aLong = 
TypeSystemImpl.getAdjustedFeatureOffset("aLong");
+  public final static int _FI_aFloat = 
TypeSystemImpl.getAdjustedFeatureOffset("aFloat");
+  public final static int _FI_aDouble = 
TypeSystemImpl.getAdjustedFeatureOffset("aDouble");
+  public final static int _FI_aString = 
TypeSystemImpl.getAdjustedFeatureOffset("aString");
+  public final static int _FI_aFS = 
TypeSystemImpl.getAdjustedFeatureOffset("aFS");
+  public final static int _FI_aArrayBoolean = 
TypeSystemImpl.getAdjustedFeatureOffset("aArrayBoolean");
+  public final static int _FI_aArrayMrBoolean = 
TypeSystemImpl.getAdjustedFeatureOffset("aArrayMrBoolean");
+  public final static int _FI_aArrayMrByte = 
TypeSystemImpl.getAdjustedFeatureOffset("aArrayMrByte");
+  public final static int _FI_aArrayByte = 
TypeSystemImpl.getAdjustedFeatureOffset("aArrayByte");
+  public final static int _FI_aArrayShort = 
TypeSystemImpl.getAdjustedFeatureOffset("aArrayShort");
+  public final static int _FI_aArrayMrShort = 
TypeSystemImpl.getAdjustedFeatureOffset("aArrayMrShort");
+  public final static int _FI_aArrayString = 
TypeSystemImpl.getAdjustedFeatureOffset("aArrayString");
+  public final static int _FI_aArrayMrString = 
TypeSystemImpl.getAdjustedFeatureOffset("aArrayMrString");
+  public final static int _FI_aListInteger = 
TypeSystemImpl.getAdjustedFeatureOffset("aListInteger");
+  public final static int _FI_aListMrInteger = 
TypeSystemImpl.getAdjustedFeatureOffset("aListMrInteger");
+  public final static int _FI_aListString = 
TypeSystemImpl.getAdjustedFeatureOffset("aListString");
+  public final static int _FI_aListMrString = 
TypeSystemImpl.getAdjustedFeatureOffset("aListMrString");
+  public final static int _FI_aListFs = 
TypeSystemImpl.getAdjustedFeatureOffset("aListFs");
+  public final static int _FI_aListMrFs = 
TypeSystemImpl.getAdjustedFeatureOffset("aListMrFs");
+  public final static int _FI_aArrayFS = 
TypeSystemImpl.getAdjustedFeatureOffset("aArrayFS");
+
+   
   /** Never called.  Disable default constructor
    * @generated */
   protected AllTypes() {/* intentionally empty block */}
     
   /** Internal - constructor used by generator 
    * @generated
-   * @param addr low level Feature Structure reference
+   * @param casImpl the CAS this Feature Structure belongs to
    * @param type the type of this Feature Structure 
    */
-  public AllTypes(int addr, TOP_Type type) {
-    super(addr, type);
+  public AllTypes(TypeImpl type, CASImpl casImpl) {
+    super(type, casImpl);
     readObject();
   }
   
@@ -61,18 +98,6 @@ public class AllTypes extends Annotation
     readObject();   
   } 
 
-  /** @generated
-   * @param jcas JCas to which this Feature Structure belongs
-   * @param begin offset to the begin spot in the SofA
-   * @param end offset to the end spot in the SofA 
-  */  
-  public AllTypes(JCas jcas, int begin, int end) {
-    super(jcas);
-    setBegin(begin);
-    setEnd(end);
-    readObject();
-  }   
-
   /** 
    * <!-- begin-user-doc -->
    * Write your own initialization here
@@ -91,19 +116,16 @@ public class AllTypes extends Annotation
    * @generated
    * @return value of the feature 
    */
-  public boolean getABoolean() {
-    if (AllTypes_Type.featOkTst && ((AllTypes_Type)jcasType).casFeat_aBoolean 
== null)
-      jcasType.jcas.throwFeatMissing("aBoolean", 
"org.apache.uima.test.AllTypes");
-    return jcasType.ll_cas.ll_getBooleanValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aBoolean);}
+  public boolean getABoolean() { return _getBooleanValueNc(_FI_aBoolean);}
     
   /** setter for aBoolean - sets  
    * @generated
    * @param v value to set into the feature 
    */
   public void setABoolean(boolean v) {
-    if (AllTypes_Type.featOkTst && ((AllTypes_Type)jcasType).casFeat_aBoolean 
== null)
-      jcasType.jcas.throwFeatMissing("aBoolean", 
"org.apache.uima.test.AllTypes");
-    jcasType.ll_cas.ll_setBooleanValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aBoolean, v);}    
+    _setBooleanValueNfc(_FI_aBoolean, v);
+  }    
+    
    
     
   //*--------------*
@@ -113,19 +135,16 @@ public class AllTypes extends Annotation
    * @generated
    * @return value of the feature 
    */
-  public byte getAByte() {
-    if (AllTypes_Type.featOkTst && ((AllTypes_Type)jcasType).casFeat_aByte == 
null)
-      jcasType.jcas.throwFeatMissing("aByte", "org.apache.uima.test.AllTypes");
-    return jcasType.ll_cas.ll_getByteValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aByte);}
+  public byte getAByte() { return _getByteValueNc(_FI_aByte);}
     
   /** setter for aByte - sets  
    * @generated
    * @param v value to set into the feature 
    */
   public void setAByte(byte v) {
-    if (AllTypes_Type.featOkTst && ((AllTypes_Type)jcasType).casFeat_aByte == 
null)
-      jcasType.jcas.throwFeatMissing("aByte", "org.apache.uima.test.AllTypes");
-    jcasType.ll_cas.ll_setByteValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aByte, v);}    
+    _setByteValueNfc(_FI_aByte, v);
+  }    
+    
    
     
   //*--------------*
@@ -135,19 +154,16 @@ public class AllTypes extends Annotation
    * @generated
    * @return value of the feature 
    */
-  public short getAShort() {
-    if (AllTypes_Type.featOkTst && ((AllTypes_Type)jcasType).casFeat_aShort == 
null)
-      jcasType.jcas.throwFeatMissing("aShort", 
"org.apache.uima.test.AllTypes");
-    return jcasType.ll_cas.ll_getShortValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aShort);}
+  public short getAShort() { return _getShortValueNc(_FI_aShort);}
     
   /** setter for aShort - sets  
    * @generated
    * @param v value to set into the feature 
    */
   public void setAShort(short v) {
-    if (AllTypes_Type.featOkTst && ((AllTypes_Type)jcasType).casFeat_aShort == 
null)
-      jcasType.jcas.throwFeatMissing("aShort", 
"org.apache.uima.test.AllTypes");
-    jcasType.ll_cas.ll_setShortValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aShort, v);}    
+    _setShortValueNfc(_FI_aShort, v);
+  }    
+    
    
     
   //*--------------*
@@ -157,19 +173,16 @@ public class AllTypes extends Annotation
    * @generated
    * @return value of the feature 
    */
-  public int getAInteger() {
-    if (AllTypes_Type.featOkTst && ((AllTypes_Type)jcasType).casFeat_aInteger 
== null)
-      jcasType.jcas.throwFeatMissing("aInteger", 
"org.apache.uima.test.AllTypes");
-    return jcasType.ll_cas.ll_getIntValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aInteger);}
+  public int getAInteger() { return _getIntValueNc(_FI_aInteger);}
     
   /** setter for aInteger - sets  
    * @generated
    * @param v value to set into the feature 
    */
   public void setAInteger(int v) {
-    if (AllTypes_Type.featOkTst && ((AllTypes_Type)jcasType).casFeat_aInteger 
== null)
-      jcasType.jcas.throwFeatMissing("aInteger", 
"org.apache.uima.test.AllTypes");
-    jcasType.ll_cas.ll_setIntValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aInteger, v);}    
+    _setIntValueNfc(_FI_aInteger, v);
+  }    
+    
    
     
   //*--------------*
@@ -179,19 +192,16 @@ public class AllTypes extends Annotation
    * @generated
    * @return value of the feature 
    */
-  public long getALong() {
-    if (AllTypes_Type.featOkTst && ((AllTypes_Type)jcasType).casFeat_aLong == 
null)
-      jcasType.jcas.throwFeatMissing("aLong", "org.apache.uima.test.AllTypes");
-    return jcasType.ll_cas.ll_getLongValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aLong);}
+  public long getALong() { return _getLongValueNc(_FI_aLong);}
     
   /** setter for aLong - sets  
    * @generated
    * @param v value to set into the feature 
    */
   public void setALong(long v) {
-    if (AllTypes_Type.featOkTst && ((AllTypes_Type)jcasType).casFeat_aLong == 
null)
-      jcasType.jcas.throwFeatMissing("aLong", "org.apache.uima.test.AllTypes");
-    jcasType.ll_cas.ll_setLongValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aLong, v);}    
+    _setLongValueNfc(_FI_aLong, v);
+  }    
+    
    
     
   //*--------------*
@@ -201,19 +211,16 @@ public class AllTypes extends Annotation
    * @generated
    * @return value of the feature 
    */
-  public float getAFloat() {
-    if (AllTypes_Type.featOkTst && ((AllTypes_Type)jcasType).casFeat_aFloat == 
null)
-      jcasType.jcas.throwFeatMissing("aFloat", 
"org.apache.uima.test.AllTypes");
-    return jcasType.ll_cas.ll_getFloatValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aFloat);}
+  public float getAFloat() { return _getFloatValueNc(_FI_aFloat);}
     
   /** setter for aFloat - sets  
    * @generated
    * @param v value to set into the feature 
    */
   public void setAFloat(float v) {
-    if (AllTypes_Type.featOkTst && ((AllTypes_Type)jcasType).casFeat_aFloat == 
null)
-      jcasType.jcas.throwFeatMissing("aFloat", 
"org.apache.uima.test.AllTypes");
-    jcasType.ll_cas.ll_setFloatValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aFloat, v);}    
+    _setFloatValueNfc(_FI_aFloat, v);
+  }    
+    
    
     
   //*--------------*
@@ -223,19 +230,16 @@ public class AllTypes extends Annotation
    * @generated
    * @return value of the feature 
    */
-  public double getADouble() {
-    if (AllTypes_Type.featOkTst && ((AllTypes_Type)jcasType).casFeat_aDouble 
== null)
-      jcasType.jcas.throwFeatMissing("aDouble", 
"org.apache.uima.test.AllTypes");
-    return jcasType.ll_cas.ll_getDoubleValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aDouble);}
+  public double getADouble() { return _getDoubleValueNc(_FI_aDouble);}
     
   /** setter for aDouble - sets  
    * @generated
    * @param v value to set into the feature 
    */
   public void setADouble(double v) {
-    if (AllTypes_Type.featOkTst && ((AllTypes_Type)jcasType).casFeat_aDouble 
== null)
-      jcasType.jcas.throwFeatMissing("aDouble", 
"org.apache.uima.test.AllTypes");
-    jcasType.ll_cas.ll_setDoubleValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aDouble, v);}    
+    _setDoubleValueNfc(_FI_aDouble, v);
+  }    
+    
    
     
   //*--------------*
@@ -245,19 +249,16 @@ public class AllTypes extends Annotation
    * @generated
    * @return value of the feature 
    */
-  public String getAString() {
-    if (AllTypes_Type.featOkTst && ((AllTypes_Type)jcasType).casFeat_aString 
== null)
-      jcasType.jcas.throwFeatMissing("aString", 
"org.apache.uima.test.AllTypes");
-    return jcasType.ll_cas.ll_getStringValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aString);}
+  public String getAString() { return _getStringValueNc(_FI_aString);}
     
   /** setter for aString - sets  
    * @generated
    * @param v value to set into the feature 
    */
   public void setAString(String v) {
-    if (AllTypes_Type.featOkTst && ((AllTypes_Type)jcasType).casFeat_aString 
== null)
-      jcasType.jcas.throwFeatMissing("aString", 
"org.apache.uima.test.AllTypes");
-    jcasType.ll_cas.ll_setStringValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aString, v);}    
+    _setStringValueNfc(_FI_aString, v);
+  }    
+    
    
     
   //*--------------*
@@ -267,19 +268,16 @@ public class AllTypes extends Annotation
    * @generated
    * @return value of the feature 
    */
-  public Annotation getAFS() {
-    if (AllTypes_Type.featOkTst && ((AllTypes_Type)jcasType).casFeat_aFS == 
null)
-      jcasType.jcas.throwFeatMissing("aFS", "org.apache.uima.test.AllTypes");
-    return 
(Annotation)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr,
 ((AllTypes_Type)jcasType).casFeatCode_aFS)));}
+  public Annotation getAFS() { return 
(Annotation)(_getFeatureValueNc(_FI_aFS));}
     
   /** setter for aFS - sets  
    * @generated
    * @param v value to set into the feature 
    */
   public void setAFS(Annotation v) {
-    if (AllTypes_Type.featOkTst && ((AllTypes_Type)jcasType).casFeat_aFS == 
null)
-      jcasType.jcas.throwFeatMissing("aFS", "org.apache.uima.test.AllTypes");
-    jcasType.ll_cas.ll_setRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aFS, jcasType.ll_cas.ll_getFSRef(v));}    
+    _setFeatureValueNcWj(_FI_aFS, v);
+  }    
+    
    
     
   //*--------------*
@@ -289,19 +287,16 @@ public class AllTypes extends Annotation
    * @generated
    * @return value of the feature 
    */
-  public BooleanArray getAArrayBoolean() {
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aArrayBoolean == null)
-      jcasType.jcas.throwFeatMissing("aArrayBoolean", 
"org.apache.uima.test.AllTypes");
-    return 
(BooleanArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr,
 ((AllTypes_Type)jcasType).casFeatCode_aArrayBoolean)));}
+  public BooleanArray getAArrayBoolean() { return 
(BooleanArray)(_getFeatureValueNc(_FI_aArrayBoolean));}
     
   /** setter for aArrayBoolean - sets  
    * @generated
    * @param v value to set into the feature 
    */
   public void setAArrayBoolean(BooleanArray v) {
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aArrayBoolean == null)
-      jcasType.jcas.throwFeatMissing("aArrayBoolean", 
"org.apache.uima.test.AllTypes");
-    jcasType.ll_cas.ll_setRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayBoolean, 
jcasType.ll_cas.ll_getFSRef(v));}    
+    _setFeatureValueNcWj(_FI_aArrayBoolean, v);
+  }    
+    
     
   /** indexed getter for aArrayBoolean - gets an indexed value - 
    * @generated
@@ -309,21 +304,16 @@ public class AllTypes extends Annotation
    * @return value of the element at index i 
    */
   public boolean getAArrayBoolean(int i) {
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aArrayBoolean == null)
-      jcasType.jcas.throwFeatMissing("aArrayBoolean", 
"org.apache.uima.test.AllTypes");
-    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayBoolean), i);
-    return 
jcasType.ll_cas.ll_getBooleanArrayValue(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayBoolean), i);}
+     return ((BooleanArray)(_getFeatureValueNc(_FI_aArrayBoolean))).get(i);} 
 
   /** indexed setter for aArrayBoolean - sets an indexed value - 
    * @generated
    * @param i index in the array to set
    * @param v value to set into the array 
    */
-  public void setAArrayBoolean(int i, boolean v) { 
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aArrayBoolean == null)
-      jcasType.jcas.throwFeatMissing("aArrayBoolean", 
"org.apache.uima.test.AllTypes");
-    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayBoolean), i);
-    
jcasType.ll_cas.ll_setBooleanArrayValue(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayBoolean), i, v);}
+  public void setAArrayBoolean(int i, boolean v) {
+    ((BooleanArray)(_getFeatureValueNc(_FI_aArrayBoolean))).set(i, v);
+  }  
    
     
   //*--------------*
@@ -333,19 +323,16 @@ public class AllTypes extends Annotation
    * @generated
    * @return value of the feature 
    */
-  public BooleanArray getAArrayMrBoolean() {
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aArrayMrBoolean == null)
-      jcasType.jcas.throwFeatMissing("aArrayMrBoolean", 
"org.apache.uima.test.AllTypes");
-    return 
(BooleanArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr,
 ((AllTypes_Type)jcasType).casFeatCode_aArrayMrBoolean)));}
+  public BooleanArray getAArrayMrBoolean() { return 
(BooleanArray)(_getFeatureValueNc(_FI_aArrayMrBoolean));}
     
   /** setter for aArrayMrBoolean - sets  
    * @generated
    * @param v value to set into the feature 
    */
   public void setAArrayMrBoolean(BooleanArray v) {
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aArrayMrBoolean == null)
-      jcasType.jcas.throwFeatMissing("aArrayMrBoolean", 
"org.apache.uima.test.AllTypes");
-    jcasType.ll_cas.ll_setRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayMrBoolean, 
jcasType.ll_cas.ll_getFSRef(v));}    
+    _setFeatureValueNcWj(_FI_aArrayMrBoolean, v);
+  }    
+    
     
   /** indexed getter for aArrayMrBoolean - gets an indexed value - 
    * @generated
@@ -353,21 +340,16 @@ public class AllTypes extends Annotation
    * @return value of the element at index i 
    */
   public boolean getAArrayMrBoolean(int i) {
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aArrayMrBoolean == null)
-      jcasType.jcas.throwFeatMissing("aArrayMrBoolean", 
"org.apache.uima.test.AllTypes");
-    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayMrBoolean), i);
-    return 
jcasType.ll_cas.ll_getBooleanArrayValue(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayMrBoolean), i);}
+     return ((BooleanArray)(_getFeatureValueNc(_FI_aArrayMrBoolean))).get(i);} 
 
   /** indexed setter for aArrayMrBoolean - sets an indexed value - 
    * @generated
    * @param i index in the array to set
    * @param v value to set into the array 
    */
-  public void setAArrayMrBoolean(int i, boolean v) { 
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aArrayMrBoolean == null)
-      jcasType.jcas.throwFeatMissing("aArrayMrBoolean", 
"org.apache.uima.test.AllTypes");
-    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayMrBoolean), i);
-    
jcasType.ll_cas.ll_setBooleanArrayValue(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayMrBoolean), i, v);}
+  public void setAArrayMrBoolean(int i, boolean v) {
+    ((BooleanArray)(_getFeatureValueNc(_FI_aArrayMrBoolean))).set(i, v);
+  }  
    
     
   //*--------------*
@@ -377,19 +359,16 @@ public class AllTypes extends Annotation
    * @generated
    * @return value of the feature 
    */
-  public ByteArray getAArrayMrByte() {
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aArrayMrByte == null)
-      jcasType.jcas.throwFeatMissing("aArrayMrByte", 
"org.apache.uima.test.AllTypes");
-    return 
(ByteArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayMrByte)));}
+  public ByteArray getAArrayMrByte() { return 
(ByteArray)(_getFeatureValueNc(_FI_aArrayMrByte));}
     
   /** setter for aArrayMrByte - sets  
    * @generated
    * @param v value to set into the feature 
    */
   public void setAArrayMrByte(ByteArray v) {
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aArrayMrByte == null)
-      jcasType.jcas.throwFeatMissing("aArrayMrByte", 
"org.apache.uima.test.AllTypes");
-    jcasType.ll_cas.ll_setRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayMrByte, 
jcasType.ll_cas.ll_getFSRef(v));}    
+    _setFeatureValueNcWj(_FI_aArrayMrByte, v);
+  }    
+    
     
   /** indexed getter for aArrayMrByte - gets an indexed value - 
    * @generated
@@ -397,21 +376,16 @@ public class AllTypes extends Annotation
    * @return value of the element at index i 
    */
   public byte getAArrayMrByte(int i) {
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aArrayMrByte == null)
-      jcasType.jcas.throwFeatMissing("aArrayMrByte", 
"org.apache.uima.test.AllTypes");
-    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayMrByte), i);
-    return 
jcasType.ll_cas.ll_getByteArrayValue(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayMrByte), i);}
+     return ((ByteArray)(_getFeatureValueNc(_FI_aArrayMrByte))).get(i);} 
 
   /** indexed setter for aArrayMrByte - sets an indexed value - 
    * @generated
    * @param i index in the array to set
    * @param v value to set into the array 
    */
-  public void setAArrayMrByte(int i, byte v) { 
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aArrayMrByte == null)
-      jcasType.jcas.throwFeatMissing("aArrayMrByte", 
"org.apache.uima.test.AllTypes");
-    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayMrByte), i);
-    jcasType.ll_cas.ll_setByteArrayValue(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayMrByte), i, v);}
+  public void setAArrayMrByte(int i, byte v) {
+    ((ByteArray)(_getFeatureValueNc(_FI_aArrayMrByte))).set(i, v);
+  }  
    
     
   //*--------------*
@@ -421,19 +395,16 @@ public class AllTypes extends Annotation
    * @generated
    * @return value of the feature 
    */
-  public ByteArray getAArrayByte() {
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aArrayByte == null)
-      jcasType.jcas.throwFeatMissing("aArrayByte", 
"org.apache.uima.test.AllTypes");
-    return 
(ByteArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayByte)));}
+  public ByteArray getAArrayByte() { return 
(ByteArray)(_getFeatureValueNc(_FI_aArrayByte));}
     
   /** setter for aArrayByte - sets  
    * @generated
    * @param v value to set into the feature 
    */
   public void setAArrayByte(ByteArray v) {
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aArrayByte == null)
-      jcasType.jcas.throwFeatMissing("aArrayByte", 
"org.apache.uima.test.AllTypes");
-    jcasType.ll_cas.ll_setRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayByte, 
jcasType.ll_cas.ll_getFSRef(v));}    
+    _setFeatureValueNcWj(_FI_aArrayByte, v);
+  }    
+    
     
   /** indexed getter for aArrayByte - gets an indexed value - 
    * @generated
@@ -441,21 +412,16 @@ public class AllTypes extends Annotation
    * @return value of the element at index i 
    */
   public byte getAArrayByte(int i) {
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aArrayByte == null)
-      jcasType.jcas.throwFeatMissing("aArrayByte", 
"org.apache.uima.test.AllTypes");
-    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayByte), i);
-    return 
jcasType.ll_cas.ll_getByteArrayValue(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayByte), i);}
+     return ((ByteArray)(_getFeatureValueNc(_FI_aArrayByte))).get(i);} 
 
   /** indexed setter for aArrayByte - sets an indexed value - 
    * @generated
    * @param i index in the array to set
    * @param v value to set into the array 
    */
-  public void setAArrayByte(int i, byte v) { 
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aArrayByte == null)
-      jcasType.jcas.throwFeatMissing("aArrayByte", 
"org.apache.uima.test.AllTypes");
-    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayByte), i);
-    jcasType.ll_cas.ll_setByteArrayValue(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayByte), i, v);}
+  public void setAArrayByte(int i, byte v) {
+    ((ByteArray)(_getFeatureValueNc(_FI_aArrayByte))).set(i, v);
+  }  
    
     
   //*--------------*
@@ -465,19 +431,16 @@ public class AllTypes extends Annotation
    * @generated
    * @return value of the feature 
    */
-  public ShortArray getAArrayShort() {
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aArrayShort == null)
-      jcasType.jcas.throwFeatMissing("aArrayShort", 
"org.apache.uima.test.AllTypes");
-    return 
(ShortArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr,
 ((AllTypes_Type)jcasType).casFeatCode_aArrayShort)));}
+  public ShortArray getAArrayShort() { return 
(ShortArray)(_getFeatureValueNc(_FI_aArrayShort));}
     
   /** setter for aArrayShort - sets  
    * @generated
    * @param v value to set into the feature 
    */
   public void setAArrayShort(ShortArray v) {
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aArrayShort == null)
-      jcasType.jcas.throwFeatMissing("aArrayShort", 
"org.apache.uima.test.AllTypes");
-    jcasType.ll_cas.ll_setRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayShort, 
jcasType.ll_cas.ll_getFSRef(v));}    
+    _setFeatureValueNcWj(_FI_aArrayShort, v);
+  }    
+    
     
   /** indexed getter for aArrayShort - gets an indexed value - 
    * @generated
@@ -485,21 +448,16 @@ public class AllTypes extends Annotation
    * @return value of the element at index i 
    */
   public short getAArrayShort(int i) {
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aArrayShort == null)
-      jcasType.jcas.throwFeatMissing("aArrayShort", 
"org.apache.uima.test.AllTypes");
-    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayShort), i);
-    return 
jcasType.ll_cas.ll_getShortArrayValue(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayShort), i);}
+     return ((ShortArray)(_getFeatureValueNc(_FI_aArrayShort))).get(i);} 
 
   /** indexed setter for aArrayShort - sets an indexed value - 
    * @generated
    * @param i index in the array to set
    * @param v value to set into the array 
    */
-  public void setAArrayShort(int i, short v) { 
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aArrayShort == null)
-      jcasType.jcas.throwFeatMissing("aArrayShort", 
"org.apache.uima.test.AllTypes");
-    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayShort), i);
-    jcasType.ll_cas.ll_setShortArrayValue(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayShort), i, v);}
+  public void setAArrayShort(int i, short v) {
+    ((ShortArray)(_getFeatureValueNc(_FI_aArrayShort))).set(i, v);
+  }  
    
     
   //*--------------*
@@ -509,19 +467,16 @@ public class AllTypes extends Annotation
    * @generated
    * @return value of the feature 
    */
-  public ShortArray getAArrayMrShort() {
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aArrayMrShort == null)
-      jcasType.jcas.throwFeatMissing("aArrayMrShort", 
"org.apache.uima.test.AllTypes");
-    return 
(ShortArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr,
 ((AllTypes_Type)jcasType).casFeatCode_aArrayMrShort)));}
+  public ShortArray getAArrayMrShort() { return 
(ShortArray)(_getFeatureValueNc(_FI_aArrayMrShort));}
     
   /** setter for aArrayMrShort - sets  
    * @generated
    * @param v value to set into the feature 
    */
   public void setAArrayMrShort(ShortArray v) {
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aArrayMrShort == null)
-      jcasType.jcas.throwFeatMissing("aArrayMrShort", 
"org.apache.uima.test.AllTypes");
-    jcasType.ll_cas.ll_setRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayMrShort, 
jcasType.ll_cas.ll_getFSRef(v));}    
+    _setFeatureValueNcWj(_FI_aArrayMrShort, v);
+  }    
+    
     
   /** indexed getter for aArrayMrShort - gets an indexed value - 
    * @generated
@@ -529,21 +484,16 @@ public class AllTypes extends Annotation
    * @return value of the element at index i 
    */
   public short getAArrayMrShort(int i) {
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aArrayMrShort == null)
-      jcasType.jcas.throwFeatMissing("aArrayMrShort", 
"org.apache.uima.test.AllTypes");
-    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayMrShort), i);
-    return 
jcasType.ll_cas.ll_getShortArrayValue(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayMrShort), i);}
+     return ((ShortArray)(_getFeatureValueNc(_FI_aArrayMrShort))).get(i);} 
 
   /** indexed setter for aArrayMrShort - sets an indexed value - 
    * @generated
    * @param i index in the array to set
    * @param v value to set into the array 
    */
-  public void setAArrayMrShort(int i, short v) { 
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aArrayMrShort == null)
-      jcasType.jcas.throwFeatMissing("aArrayMrShort", 
"org.apache.uima.test.AllTypes");
-    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayMrShort), i);
-    jcasType.ll_cas.ll_setShortArrayValue(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayMrShort), i, v);}
+  public void setAArrayMrShort(int i, short v) {
+    ((ShortArray)(_getFeatureValueNc(_FI_aArrayMrShort))).set(i, v);
+  }  
    
     
   //*--------------*
@@ -553,19 +503,16 @@ public class AllTypes extends Annotation
    * @generated
    * @return value of the feature 
    */
-  public StringArray getAArrayString() {
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aArrayString == null)
-      jcasType.jcas.throwFeatMissing("aArrayString", 
"org.apache.uima.test.AllTypes");
-    return 
(StringArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr,
 ((AllTypes_Type)jcasType).casFeatCode_aArrayString)));}
+  public StringArray getAArrayString() { return 
(StringArray)(_getFeatureValueNc(_FI_aArrayString));}
     
   /** setter for aArrayString - sets  
    * @generated
    * @param v value to set into the feature 
    */
   public void setAArrayString(StringArray v) {
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aArrayString == null)
-      jcasType.jcas.throwFeatMissing("aArrayString", 
"org.apache.uima.test.AllTypes");
-    jcasType.ll_cas.ll_setRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayString, 
jcasType.ll_cas.ll_getFSRef(v));}    
+    _setFeatureValueNcWj(_FI_aArrayString, v);
+  }    
+    
     
   /** indexed getter for aArrayString - gets an indexed value - 
    * @generated
@@ -573,21 +520,16 @@ public class AllTypes extends Annotation
    * @return value of the element at index i 
    */
   public String getAArrayString(int i) {
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aArrayString == null)
-      jcasType.jcas.throwFeatMissing("aArrayString", 
"org.apache.uima.test.AllTypes");
-    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayString), i);
-    return 
jcasType.ll_cas.ll_getStringArrayValue(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayString), i);}
+     return ((StringArray)(_getFeatureValueNc(_FI_aArrayString))).get(i);} 
 
   /** indexed setter for aArrayString - sets an indexed value - 
    * @generated
    * @param i index in the array to set
    * @param v value to set into the array 
    */
-  public void setAArrayString(int i, String v) { 
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aArrayString == null)
-      jcasType.jcas.throwFeatMissing("aArrayString", 
"org.apache.uima.test.AllTypes");
-    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayString), i);
-    
jcasType.ll_cas.ll_setStringArrayValue(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayString), i, v);}
+  public void setAArrayString(int i, String v) {
+    ((StringArray)(_getFeatureValueNc(_FI_aArrayString))).set(i, v);
+  }  
    
     
   //*--------------*
@@ -597,19 +539,16 @@ public class AllTypes extends Annotation
    * @generated
    * @return value of the feature 
    */
-  public StringArray getAArrayMrString() {
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aArrayMrString == null)
-      jcasType.jcas.throwFeatMissing("aArrayMrString", 
"org.apache.uima.test.AllTypes");
-    return 
(StringArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr,
 ((AllTypes_Type)jcasType).casFeatCode_aArrayMrString)));}
+  public StringArray getAArrayMrString() { return 
(StringArray)(_getFeatureValueNc(_FI_aArrayMrString));}
     
   /** setter for aArrayMrString - sets  
    * @generated
    * @param v value to set into the feature 
    */
   public void setAArrayMrString(StringArray v) {
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aArrayMrString == null)
-      jcasType.jcas.throwFeatMissing("aArrayMrString", 
"org.apache.uima.test.AllTypes");
-    jcasType.ll_cas.ll_setRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayMrString, 
jcasType.ll_cas.ll_getFSRef(v));}    
+    _setFeatureValueNcWj(_FI_aArrayMrString, v);
+  }    
+    
     
   /** indexed getter for aArrayMrString - gets an indexed value - 
    * @generated
@@ -617,21 +556,16 @@ public class AllTypes extends Annotation
    * @return value of the element at index i 
    */
   public String getAArrayMrString(int i) {
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aArrayMrString == null)
-      jcasType.jcas.throwFeatMissing("aArrayMrString", 
"org.apache.uima.test.AllTypes");
-    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayMrString), i);
-    return 
jcasType.ll_cas.ll_getStringArrayValue(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayMrString), i);}
+     return ((StringArray)(_getFeatureValueNc(_FI_aArrayMrString))).get(i);} 
 
   /** indexed setter for aArrayMrString - sets an indexed value - 
    * @generated
    * @param i index in the array to set
    * @param v value to set into the array 
    */
-  public void setAArrayMrString(int i, String v) { 
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aArrayMrString == null)
-      jcasType.jcas.throwFeatMissing("aArrayMrString", 
"org.apache.uima.test.AllTypes");
-    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayMrString), i);
-    
jcasType.ll_cas.ll_setStringArrayValue(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayMrString), i, v);}
+  public void setAArrayMrString(int i, String v) {
+    ((StringArray)(_getFeatureValueNc(_FI_aArrayMrString))).set(i, v);
+  }  
    
     
   //*--------------*
@@ -641,19 +575,16 @@ public class AllTypes extends Annotation
    * @generated
    * @return value of the feature 
    */
-  public IntegerList getAListInteger() {
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aListInteger == null)
-      jcasType.jcas.throwFeatMissing("aListInteger", 
"org.apache.uima.test.AllTypes");
-    return 
(IntegerList)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr,
 ((AllTypes_Type)jcasType).casFeatCode_aListInteger)));}
+  public IntegerList getAListInteger() { return 
(IntegerList)(_getFeatureValueNc(_FI_aListInteger));}
     
   /** setter for aListInteger - sets  
    * @generated
    * @param v value to set into the feature 
    */
   public void setAListInteger(IntegerList v) {
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aListInteger == null)
-      jcasType.jcas.throwFeatMissing("aListInteger", 
"org.apache.uima.test.AllTypes");
-    jcasType.ll_cas.ll_setRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aListInteger, 
jcasType.ll_cas.ll_getFSRef(v));}    
+    _setFeatureValueNcWj(_FI_aListInteger, v);
+  }    
+    
    
     
   //*--------------*
@@ -663,19 +594,16 @@ public class AllTypes extends Annotation
    * @generated
    * @return value of the feature 
    */
-  public IntegerList getAListMrInteger() {
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aListMrInteger == null)
-      jcasType.jcas.throwFeatMissing("aListMrInteger", 
"org.apache.uima.test.AllTypes");
-    return 
(IntegerList)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr,
 ((AllTypes_Type)jcasType).casFeatCode_aListMrInteger)));}
+  public IntegerList getAListMrInteger() { return 
(IntegerList)(_getFeatureValueNc(_FI_aListMrInteger));}
     
   /** setter for aListMrInteger - sets  
    * @generated
    * @param v value to set into the feature 
    */
   public void setAListMrInteger(IntegerList v) {
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aListMrInteger == null)
-      jcasType.jcas.throwFeatMissing("aListMrInteger", 
"org.apache.uima.test.AllTypes");
-    jcasType.ll_cas.ll_setRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aListMrInteger, 
jcasType.ll_cas.ll_getFSRef(v));}    
+    _setFeatureValueNcWj(_FI_aListMrInteger, v);
+  }    
+    
    
     
   //*--------------*
@@ -685,19 +613,16 @@ public class AllTypes extends Annotation
    * @generated
    * @return value of the feature 
    */
-  public StringList getAListString() {
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aListString == null)
-      jcasType.jcas.throwFeatMissing("aListString", 
"org.apache.uima.test.AllTypes");
-    return 
(StringList)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr,
 ((AllTypes_Type)jcasType).casFeatCode_aListString)));}
+  public StringList getAListString() { return 
(StringList)(_getFeatureValueNc(_FI_aListString));}
     
   /** setter for aListString - sets  
    * @generated
    * @param v value to set into the feature 
    */
   public void setAListString(StringList v) {
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aListString == null)
-      jcasType.jcas.throwFeatMissing("aListString", 
"org.apache.uima.test.AllTypes");
-    jcasType.ll_cas.ll_setRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aListString, 
jcasType.ll_cas.ll_getFSRef(v));}    
+    _setFeatureValueNcWj(_FI_aListString, v);
+  }    
+    
    
     
   //*--------------*
@@ -707,19 +632,16 @@ public class AllTypes extends Annotation
    * @generated
    * @return value of the feature 
    */
-  public StringList getAListMrString() {
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aListMrString == null)
-      jcasType.jcas.throwFeatMissing("aListMrString", 
"org.apache.uima.test.AllTypes");
-    return 
(StringList)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr,
 ((AllTypes_Type)jcasType).casFeatCode_aListMrString)));}
+  public StringList getAListMrString() { return 
(StringList)(_getFeatureValueNc(_FI_aListMrString));}
     
   /** setter for aListMrString - sets  
    * @generated
    * @param v value to set into the feature 
    */
   public void setAListMrString(StringList v) {
-    if (AllTypes_Type.featOkTst && 
((AllTypes_Type)jcasType).casFeat_aListMrString == null)
-      jcasType.jcas.throwFeatMissing("aListMrString", 
"org.apache.uima.test.AllTypes");
-    jcasType.ll_cas.ll_setRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aListMrString, 
jcasType.ll_cas.ll_getFSRef(v));}    
+    _setFeatureValueNcWj(_FI_aListMrString, v);
+  }    
+    
    
     
   //*--------------*
@@ -729,19 +651,16 @@ public class AllTypes extends Annotation
    * @generated
    * @return value of the feature 
    */
-  public FSList getAListFs() {
-    if (AllTypes_Type.featOkTst && ((AllTypes_Type)jcasType).casFeat_aListFs 
== null)
-      jcasType.jcas.throwFeatMissing("aListFs", 
"org.apache.uima.test.AllTypes");
-    return 
(FSList)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aListFs)));}
+  public FSList getAListFs() { return 
(FSList)(_getFeatureValueNc(_FI_aListFs));}
     
   /** setter for aListFs - sets  
    * @generated
    * @param v value to set into the feature 
    */
   public void setAListFs(FSList v) {
-    if (AllTypes_Type.featOkTst && ((AllTypes_Type)jcasType).casFeat_aListFs 
== null)
-      jcasType.jcas.throwFeatMissing("aListFs", 
"org.apache.uima.test.AllTypes");
-    jcasType.ll_cas.ll_setRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aListFs, 
jcasType.ll_cas.ll_getFSRef(v));}    
+    _setFeatureValueNcWj(_FI_aListFs, v);
+  }    
+    
    
     
   //*--------------*
@@ -751,19 +670,16 @@ public class AllTypes extends Annotation
    * @generated
    * @return value of the feature 
    */
-  public FSList getAListMrFs() {
-    if (AllTypes_Type.featOkTst && ((AllTypes_Type)jcasType).casFeat_aListMrFs 
== null)
-      jcasType.jcas.throwFeatMissing("aListMrFs", 
"org.apache.uima.test.AllTypes");
-    return 
(FSList)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aListMrFs)));}
+  public FSList getAListMrFs() { return 
(FSList)(_getFeatureValueNc(_FI_aListMrFs));}
     
   /** setter for aListMrFs - sets  
    * @generated
    * @param v value to set into the feature 
    */
   public void setAListMrFs(FSList v) {
-    if (AllTypes_Type.featOkTst && ((AllTypes_Type)jcasType).casFeat_aListMrFs 
== null)
-      jcasType.jcas.throwFeatMissing("aListMrFs", 
"org.apache.uima.test.AllTypes");
-    jcasType.ll_cas.ll_setRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aListMrFs, 
jcasType.ll_cas.ll_getFSRef(v));}    
+    _setFeatureValueNcWj(_FI_aListMrFs, v);
+  }    
+    
    
     
   //*--------------*
@@ -773,19 +689,16 @@ public class AllTypes extends Annotation
    * @generated
    * @return value of the feature 
    */
-  public FSArray getAArrayFS() {
-    if (AllTypes_Type.featOkTst && ((AllTypes_Type)jcasType).casFeat_aArrayFS 
== null)
-      jcasType.jcas.throwFeatMissing("aArrayFS", 
"org.apache.uima.test.AllTypes");
-    return 
(FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayFS)));}
+  public FSArray getAArrayFS() { return 
(FSArray)(_getFeatureValueNc(_FI_aArrayFS));}
     
   /** setter for aArrayFS - sets  
    * @generated
    * @param v value to set into the feature 
    */
   public void setAArrayFS(FSArray v) {
-    if (AllTypes_Type.featOkTst && ((AllTypes_Type)jcasType).casFeat_aArrayFS 
== null)
-      jcasType.jcas.throwFeatMissing("aArrayFS", 
"org.apache.uima.test.AllTypes");
-    jcasType.ll_cas.ll_setRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayFS, 
jcasType.ll_cas.ll_getFSRef(v));}    
+    _setFeatureValueNcWj(_FI_aArrayFS, v);
+  }    
+    
     
   /** indexed getter for aArrayFS - gets an indexed value - 
    * @generated
@@ -793,21 +706,16 @@ public class AllTypes extends Annotation
    * @return value of the element at index i 
    */
   public Annotation getAArrayFS(int i) {
-    if (AllTypes_Type.featOkTst && ((AllTypes_Type)jcasType).casFeat_aArrayFS 
== null)
-      jcasType.jcas.throwFeatMissing("aArrayFS", 
"org.apache.uima.test.AllTypes");
-    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayFS), i);
-    return 
(Annotation)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr,
 ((AllTypes_Type)jcasType).casFeatCode_aArrayFS), i)));}
+     return 
(Annotation)(((FSArray)(_getFeatureValueNc(_FI_aArrayFS))).get(i));} 
 
   /** indexed setter for aArrayFS - sets an indexed value - 
    * @generated
    * @param i index in the array to set
    * @param v value to set into the array 
    */
-  public void setAArrayFS(int i, Annotation v) { 
-    if (AllTypes_Type.featOkTst && ((AllTypes_Type)jcasType).casFeat_aArrayFS 
== null)
-      jcasType.jcas.throwFeatMissing("aArrayFS", 
"org.apache.uima.test.AllTypes");
-    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayFS), i);
-    jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, 
((AllTypes_Type)jcasType).casFeatCode_aArrayFS), i, 
jcasType.ll_cas.ll_getFSRef(v));}
+  public void setAArrayFS(int i, Annotation v) {
+    ((FSArray)(_getFeatureValueNc(_FI_aArrayFS))).set(i, v);
+  }  
   }
 
     
\ No newline at end of file

Modified: 
uima/uimaj/branches/experiment-v3-jcas/uimaj-json/src/test/java/org/apache/uima/test/RefTypes.java
URL: 
http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-json/src/test/java/org/apache/uima/test/RefTypes.java?rev=1743748&r1=1743747&r2=1743748&view=diff
==============================================================================
--- 
uima/uimaj/branches/experiment-v3-jcas/uimaj-json/src/test/java/org/apache/uima/test/RefTypes.java
 (original)
+++ 
uima/uimaj/branches/experiment-v3-jcas/uimaj-json/src/test/java/org/apache/uima/test/RefTypes.java
 Fri May 13 20:14:34 2016
@@ -1,11 +1,16 @@
 
 
-/* First created by JCasGen Sat Nov 01 07:38:59 EDT 2014 */
+   
+/* Apache UIMA v3 - First created by JCasGen Tue Mar 08 10:58:47 EST 2016 */
+
 package org.apache.uima.test;
 
+import org.apache.uima.cas.impl.CASImpl;
+import org.apache.uima.cas.impl.TypeImpl;
+import org.apache.uima.cas.impl.TypeSystemImpl;
 import org.apache.uima.jcas.JCas; 
 import org.apache.uima.jcas.JCasRegistry;
-import org.apache.uima.jcas.cas.TOP_Type;
+
 
 import org.apache.uima.jcas.cas.FSList;
 import org.apache.uima.jcas.cas.FSArray;
@@ -13,8 +18,8 @@ import org.apache.uima.jcas.tcas.Annotat
 
 
 /** 
- * Updated by JCasGen Sat Nov 01 07:38:59 EDT 2014
- * XML source: 
C:/au/svnCheckouts/trunk/uimaj/uimaj-json/src/test/resources/CasSerialization/desc/refTypes.xml
+ * Updated by JCasGen Tue Mar 08 10:58:47 EST 2016
+ * XML source: 
C:/au/svnCheckouts/branches/uimaj/experiment-v3-jcas/uimaj-json/src/test/resources/CasSerialization/desc/refTypes.xml
  * @generated */
 public class RefTypes extends Annotation {
   /** @generated
@@ -33,17 +38,28 @@ public class RefTypes extends Annotation
   @Override
   public              int getTypeIndexID() {return typeIndexID;}
  
+ 
+  /* *******************
+   *   Feature Offsets *
+   * *******************/ 
+   
+  /* Feature Adjusted Offsets */
+  public final static int _FI_aFS = 
TypeSystemImpl.getAdjustedFeatureOffset("aFS");
+  public final static int _FI_aListFs = 
TypeSystemImpl.getAdjustedFeatureOffset("aListFs");
+  public final static int _FI_aArrayFS = 
TypeSystemImpl.getAdjustedFeatureOffset("aArrayFS");
+
+   
   /** Never called.  Disable default constructor
    * @generated */
   protected RefTypes() {/* intentionally empty block */}
     
   /** Internal - constructor used by generator 
    * @generated
-   * @param addr low level Feature Structure reference
+   * @param casImpl the CAS this Feature Structure belongs to
    * @param type the type of this Feature Structure 
    */
-  public RefTypes(int addr, TOP_Type type) {
-    super(addr, type);
+  public RefTypes(TypeImpl type, CASImpl casImpl) {
+    super(type, casImpl);
     readObject();
   }
   
@@ -55,18 +71,6 @@ public class RefTypes extends Annotation
     readObject();   
   } 
 
-  /** @generated
-   * @param jcas JCas to which this Feature Structure belongs
-   * @param begin offset to the begin spot in the SofA
-   * @param end offset to the end spot in the SofA 
-  */  
-  public RefTypes(JCas jcas, int begin, int end) {
-    super(jcas);
-    setBegin(begin);
-    setEnd(end);
-    readObject();
-  }   
-
   /** 
    * <!-- begin-user-doc -->
    * Write your own initialization here
@@ -85,19 +89,16 @@ public class RefTypes extends Annotation
    * @generated
    * @return value of the feature 
    */
-  public Annotation getAFS() {
-    if (RefTypes_Type.featOkTst && ((RefTypes_Type)jcasType).casFeat_aFS == 
null)
-      jcasType.jcas.throwFeatMissing("aFS", "org.apache.uima.test.RefTypes");
-    return 
(Annotation)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr,
 ((RefTypes_Type)jcasType).casFeatCode_aFS)));}
+  public Annotation getAFS() { return 
(Annotation)(_getFeatureValueNc(_FI_aFS));}
     
   /** setter for aFS - sets  
    * @generated
    * @param v value to set into the feature 
    */
   public void setAFS(Annotation v) {
-    if (RefTypes_Type.featOkTst && ((RefTypes_Type)jcasType).casFeat_aFS == 
null)
-      jcasType.jcas.throwFeatMissing("aFS", "org.apache.uima.test.RefTypes");
-    jcasType.ll_cas.ll_setRefValue(addr, 
((RefTypes_Type)jcasType).casFeatCode_aFS, jcasType.ll_cas.ll_getFSRef(v));}    
+    _setFeatureValueNcWj(_FI_aFS, v);
+  }    
+    
    
     
   //*--------------*
@@ -107,19 +108,16 @@ public class RefTypes extends Annotation
    * @generated
    * @return value of the feature 
    */
-  public FSList getAListFs() {
-    if (RefTypes_Type.featOkTst && ((RefTypes_Type)jcasType).casFeat_aListFs 
== null)
-      jcasType.jcas.throwFeatMissing("aListFs", 
"org.apache.uima.test.RefTypes");
-    return 
(FSList)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, 
((RefTypes_Type)jcasType).casFeatCode_aListFs)));}
+  public FSList getAListFs() { return 
(FSList)(_getFeatureValueNc(_FI_aListFs));}
     
   /** setter for aListFs - sets  
    * @generated
    * @param v value to set into the feature 
    */
   public void setAListFs(FSList v) {
-    if (RefTypes_Type.featOkTst && ((RefTypes_Type)jcasType).casFeat_aListFs 
== null)
-      jcasType.jcas.throwFeatMissing("aListFs", 
"org.apache.uima.test.RefTypes");
-    jcasType.ll_cas.ll_setRefValue(addr, 
((RefTypes_Type)jcasType).casFeatCode_aListFs, 
jcasType.ll_cas.ll_getFSRef(v));}    
+    _setFeatureValueNcWj(_FI_aListFs, v);
+  }    
+    
    
     
   //*--------------*
@@ -129,19 +127,16 @@ public class RefTypes extends Annotation
    * @generated
    * @return value of the feature 
    */
-  public FSArray getAArrayFS() {
-    if (RefTypes_Type.featOkTst && ((RefTypes_Type)jcasType).casFeat_aArrayFS 
== null)
-      jcasType.jcas.throwFeatMissing("aArrayFS", 
"org.apache.uima.test.RefTypes");
-    return 
(FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, 
((RefTypes_Type)jcasType).casFeatCode_aArrayFS)));}
+  public FSArray getAArrayFS() { return 
(FSArray)(_getFeatureValueNc(_FI_aArrayFS));}
     
   /** setter for aArrayFS - sets  
    * @generated
    * @param v value to set into the feature 
    */
   public void setAArrayFS(FSArray v) {
-    if (RefTypes_Type.featOkTst && ((RefTypes_Type)jcasType).casFeat_aArrayFS 
== null)
-      jcasType.jcas.throwFeatMissing("aArrayFS", 
"org.apache.uima.test.RefTypes");
-    jcasType.ll_cas.ll_setRefValue(addr, 
((RefTypes_Type)jcasType).casFeatCode_aArrayFS, 
jcasType.ll_cas.ll_getFSRef(v));}    
+    _setFeatureValueNcWj(_FI_aArrayFS, v);
+  }    
+    
     
   /** indexed getter for aArrayFS - gets an indexed value - 
    * @generated
@@ -149,21 +144,16 @@ public class RefTypes extends Annotation
    * @return value of the element at index i 
    */
   public Annotation getAArrayFS(int i) {
-    if (RefTypes_Type.featOkTst && ((RefTypes_Type)jcasType).casFeat_aArrayFS 
== null)
-      jcasType.jcas.throwFeatMissing("aArrayFS", 
"org.apache.uima.test.RefTypes");
-    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, 
((RefTypes_Type)jcasType).casFeatCode_aArrayFS), i);
-    return 
(Annotation)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr,
 ((RefTypes_Type)jcasType).casFeatCode_aArrayFS), i)));}
+     return 
(Annotation)(((FSArray)(_getFeatureValueNc(_FI_aArrayFS))).get(i));} 
 
   /** indexed setter for aArrayFS - sets an indexed value - 
    * @generated
    * @param i index in the array to set
    * @param v value to set into the array 
    */
-  public void setAArrayFS(int i, Annotation v) { 
-    if (RefTypes_Type.featOkTst && ((RefTypes_Type)jcasType).casFeat_aArrayFS 
== null)
-      jcasType.jcas.throwFeatMissing("aArrayFS", 
"org.apache.uima.test.RefTypes");
-    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, 
((RefTypes_Type)jcasType).casFeatCode_aArrayFS), i);
-    jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, 
((RefTypes_Type)jcasType).casFeatCode_aArrayFS), i, 
jcasType.ll_cas.ll_getFSRef(v));}
+  public void setAArrayFS(int i, Annotation v) {
+    ((FSArray)(_getFeatureValueNc(_FI_aArrayFS))).set(i, v);
+  }  
   }
 
     
\ No newline at end of file


Reply via email to