uima-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tomm...@apache.org
Subject svn commit: r992621 [15/18] - in /uima/sandbox/trunk/AlchemyAPIAnnotator: desc/ src/main/java/org/apache/uima/alchemy/annotator/ src/main/java/org/apache/uima/alchemy/mapper/ src/main/java/org/apache/uima/alchemy/mapper/exception/ src/main/java/org/apa...
Date Sat, 04 Sep 2010 15:05:04 GMT
Modified: uima/sandbox/trunk/AlchemyAPIAnnotator/src/main/java/org/apache/uima/alchemy/ts/entity/RadioStation_Type.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/AlchemyAPIAnnotator/src/main/java/org/apache/uima/alchemy/ts/entity/RadioStation_Type.java?rev=992621&r1=992620&r2=992621&view=diff
==============================================================================
--- uima/sandbox/trunk/AlchemyAPIAnnotator/src/main/java/org/apache/uima/alchemy/ts/entity/RadioStation_Type.java (original)
+++ uima/sandbox/trunk/AlchemyAPIAnnotator/src/main/java/org/apache/uima/alchemy/ts/entity/RadioStation_Type.java Sat Sep  4 15:05:01 2010
@@ -19,21 +19,18 @@
 /* First created by JCasGen Fri Jun 04 21:00:54 CEST 2010 */
 package org.apache.uima.alchemy.ts.entity;
 
-import org.apache.uima.jcas.JCas;
-import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.cas.FeatureStructure;
+import org.apache.uima.cas.Type;
 import org.apache.uima.cas.impl.CASImpl;
 import org.apache.uima.cas.impl.FSGenerator;
-import org.apache.uima.cas.FeatureStructure;
 import org.apache.uima.cas.impl.TypeImpl;
-import org.apache.uima.cas.Type;
-import org.apache.uima.cas.impl.FeatureImpl;
-import org.apache.uima.cas.Feature;
-import org.apache.uima.jcas.cas.TOP_Type;
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
 
 /** 
- * Updated by JCasGen Sat Jun 05 16:59:23 CEST 2010
+ * Updated by JCasGen Sat Sep 04 11:45:20 CEST 2010
  * @generated */
-public class RadioStation_Type extends TOP_Type {
+public class RadioStation_Type extends BaseEntity_Type {
   /** @generated */
   protected FSGenerator getFSGenerator() {return fsGenerator;}
   /** @generated */
@@ -60,407 +57,12 @@ public class RadioStation_Type extends T
 
 
 
-  /** @generated */
-  final Feature casFeat_text;
-  /** @generated */
-  final int     casFeatCode_text;
-  /** @generated */ 
-  public String getText(int addr) {
-        if (featOkTst && casFeat_text == null)
-      jcas.throwFeatMissing("text", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    return ll_cas.ll_getStringValue(addr, casFeatCode_text);
-  }
-  /** @generated */    
-  public void setText(int addr, String v) {
-        if (featOkTst && casFeat_text == null)
-      jcas.throwFeatMissing("text", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    ll_cas.ll_setStringValue(addr, casFeatCode_text, v);}
-    
-  
- 
-  /** @generated */
-  final Feature casFeat_relevance;
-  /** @generated */
-  final int     casFeatCode_relevance;
-  /** @generated */ 
-  public String getRelevance(int addr) {
-        if (featOkTst && casFeat_relevance == null)
-      jcas.throwFeatMissing("relevance", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    return ll_cas.ll_getStringValue(addr, casFeatCode_relevance);
-  }
-  /** @generated */    
-  public void setRelevance(int addr, String v) {
-        if (featOkTst && casFeat_relevance == null)
-      jcas.throwFeatMissing("relevance", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    ll_cas.ll_setStringValue(addr, casFeatCode_relevance, v);}
-    
-  
- 
-  /** @generated */
-  final Feature casFeat_count;
-  /** @generated */
-  final int     casFeatCode_count;
-  /** @generated */ 
-  public String getCount(int addr) {
-        if (featOkTst && casFeat_count == null)
-      jcas.throwFeatMissing("count", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    return ll_cas.ll_getStringValue(addr, casFeatCode_count);
-  }
-  /** @generated */    
-  public void setCount(int addr, String v) {
-        if (featOkTst && casFeat_count == null)
-      jcas.throwFeatMissing("count", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    ll_cas.ll_setStringValue(addr, casFeatCode_count, v);}
-    
-  
- 
-  /** @generated */
-  final Feature casFeat_disambiguation;
-  /** @generated */
-  final int     casFeatCode_disambiguation;
-  /** @generated */ 
-  public String getDisambiguation(int addr) {
-        if (featOkTst && casFeat_disambiguation == null)
-      jcas.throwFeatMissing("disambiguation", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    return ll_cas.ll_getStringValue(addr, casFeatCode_disambiguation);
-  }
-  /** @generated */    
-  public void setDisambiguation(int addr, String v) {
-        if (featOkTst && casFeat_disambiguation == null)
-      jcas.throwFeatMissing("disambiguation", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    ll_cas.ll_setStringValue(addr, casFeatCode_disambiguation, v);}
-    
-  
- 
-  /** @generated */
-  final Feature casFeat_subType;
-  /** @generated */
-  final int     casFeatCode_subType;
-  /** @generated */ 
-  public String getSubType(int addr) {
-        if (featOkTst && casFeat_subType == null)
-      jcas.throwFeatMissing("subType", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    return ll_cas.ll_getStringValue(addr, casFeatCode_subType);
-  }
-  /** @generated */    
-  public void setSubType(int addr, String v) {
-        if (featOkTst && casFeat_subType == null)
-      jcas.throwFeatMissing("subType", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    ll_cas.ll_setStringValue(addr, casFeatCode_subType, v);}
-    
-  
- 
-  /** @generated */
-  final Feature casFeat_website;
-  /** @generated */
-  final int     casFeatCode_website;
-  /** @generated */ 
-  public String getWebsite(int addr) {
-        if (featOkTst && casFeat_website == null)
-      jcas.throwFeatMissing("website", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    return ll_cas.ll_getStringValue(addr, casFeatCode_website);
-  }
-  /** @generated */    
-  public void setWebsite(int addr, String v) {
-        if (featOkTst && casFeat_website == null)
-      jcas.throwFeatMissing("website", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    ll_cas.ll_setStringValue(addr, casFeatCode_website, v);}
-    
-  
- 
-  /** @generated */
-  final Feature casFeat_geo;
-  /** @generated */
-  final int     casFeatCode_geo;
-  /** @generated */ 
-  public String getGeo(int addr) {
-        if (featOkTst && casFeat_geo == null)
-      jcas.throwFeatMissing("geo", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    return ll_cas.ll_getStringValue(addr, casFeatCode_geo);
-  }
-  /** @generated */    
-  public void setGeo(int addr, String v) {
-        if (featOkTst && casFeat_geo == null)
-      jcas.throwFeatMissing("geo", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    ll_cas.ll_setStringValue(addr, casFeatCode_geo, v);}
-    
-  
- 
-  /** @generated */
-  final Feature casFeat_dbpedia;
-  /** @generated */
-  final int     casFeatCode_dbpedia;
-  /** @generated */ 
-  public String getDbpedia(int addr) {
-        if (featOkTst && casFeat_dbpedia == null)
-      jcas.throwFeatMissing("dbpedia", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    return ll_cas.ll_getStringValue(addr, casFeatCode_dbpedia);
-  }
-  /** @generated */    
-  public void setDbpedia(int addr, String v) {
-        if (featOkTst && casFeat_dbpedia == null)
-      jcas.throwFeatMissing("dbpedia", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    ll_cas.ll_setStringValue(addr, casFeatCode_dbpedia, v);}
-    
-  
- 
-  /** @generated */
-  final Feature casFeat_yago;
-  /** @generated */
-  final int     casFeatCode_yago;
-  /** @generated */ 
-  public String getYago(int addr) {
-        if (featOkTst && casFeat_yago == null)
-      jcas.throwFeatMissing("yago", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    return ll_cas.ll_getStringValue(addr, casFeatCode_yago);
-  }
-  /** @generated */    
-  public void setYago(int addr, String v) {
-        if (featOkTst && casFeat_yago == null)
-      jcas.throwFeatMissing("yago", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    ll_cas.ll_setStringValue(addr, casFeatCode_yago, v);}
-    
-  
- 
-  /** @generated */
-  final Feature casFeat_opencyc;
-  /** @generated */
-  final int     casFeatCode_opencyc;
-  /** @generated */ 
-  public String getOpencyc(int addr) {
-        if (featOkTst && casFeat_opencyc == null)
-      jcas.throwFeatMissing("opencyc", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    return ll_cas.ll_getStringValue(addr, casFeatCode_opencyc);
-  }
-  /** @generated */    
-  public void setOpencyc(int addr, String v) {
-        if (featOkTst && casFeat_opencyc == null)
-      jcas.throwFeatMissing("opencyc", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    ll_cas.ll_setStringValue(addr, casFeatCode_opencyc, v);}
-    
-  
- 
-  /** @generated */
-  final Feature casFeat_umbel;
-  /** @generated */
-  final int     casFeatCode_umbel;
-  /** @generated */ 
-  public String getUmbel(int addr) {
-        if (featOkTst && casFeat_umbel == null)
-      jcas.throwFeatMissing("umbel", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    return ll_cas.ll_getStringValue(addr, casFeatCode_umbel);
-  }
-  /** @generated */    
-  public void setUmbel(int addr, String v) {
-        if (featOkTst && casFeat_umbel == null)
-      jcas.throwFeatMissing("umbel", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    ll_cas.ll_setStringValue(addr, casFeatCode_umbel, v);}
-    
-  
- 
-  /** @generated */
-  final Feature casFeat_freebase;
-  /** @generated */
-  final int     casFeatCode_freebase;
-  /** @generated */ 
-  public String getFreebase(int addr) {
-        if (featOkTst && casFeat_freebase == null)
-      jcas.throwFeatMissing("freebase", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    return ll_cas.ll_getStringValue(addr, casFeatCode_freebase);
-  }
-  /** @generated */    
-  public void setFreebase(int addr, String v) {
-        if (featOkTst && casFeat_freebase == null)
-      jcas.throwFeatMissing("freebase", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    ll_cas.ll_setStringValue(addr, casFeatCode_freebase, v);}
-    
-  
- 
-  /** @generated */
-  final Feature casFeat_ciaFactbook;
-  /** @generated */
-  final int     casFeatCode_ciaFactbook;
-  /** @generated */ 
-  public String getCiaFactbook(int addr) {
-        if (featOkTst && casFeat_ciaFactbook == null)
-      jcas.throwFeatMissing("ciaFactbook", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    return ll_cas.ll_getStringValue(addr, casFeatCode_ciaFactbook);
-  }
-  /** @generated */    
-  public void setCiaFactbook(int addr, String v) {
-        if (featOkTst && casFeat_ciaFactbook == null)
-      jcas.throwFeatMissing("ciaFactbook", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    ll_cas.ll_setStringValue(addr, casFeatCode_ciaFactbook, v);}
-    
-  
- 
-  /** @generated */
-  final Feature casFeat_census;
-  /** @generated */
-  final int     casFeatCode_census;
-  /** @generated */ 
-  public String getCensus(int addr) {
-        if (featOkTst && casFeat_census == null)
-      jcas.throwFeatMissing("census", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    return ll_cas.ll_getStringValue(addr, casFeatCode_census);
-  }
-  /** @generated */    
-  public void setCensus(int addr, String v) {
-        if (featOkTst && casFeat_census == null)
-      jcas.throwFeatMissing("census", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    ll_cas.ll_setStringValue(addr, casFeatCode_census, v);}
-    
-  
- 
-  /** @generated */
-  final Feature casFeat_geonames;
-  /** @generated */
-  final int     casFeatCode_geonames;
-  /** @generated */ 
-  public String getGeonames(int addr) {
-        if (featOkTst && casFeat_geonames == null)
-      jcas.throwFeatMissing("geonames", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    return ll_cas.ll_getStringValue(addr, casFeatCode_geonames);
-  }
-  /** @generated */    
-  public void setGeonames(int addr, String v) {
-        if (featOkTst && casFeat_geonames == null)
-      jcas.throwFeatMissing("geonames", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    ll_cas.ll_setStringValue(addr, casFeatCode_geonames, v);}
-    
-  
- 
-  /** @generated */
-  final Feature casFeat_musicBrainz;
-  /** @generated */
-  final int     casFeatCode_musicBrainz;
-  /** @generated */ 
-  public String getMusicBrainz(int addr) {
-        if (featOkTst && casFeat_musicBrainz == null)
-      jcas.throwFeatMissing("musicBrainz", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    return ll_cas.ll_getStringValue(addr, casFeatCode_musicBrainz);
-  }
-  /** @generated */    
-  public void setMusicBrainz(int addr, String v) {
-        if (featOkTst && casFeat_musicBrainz == null)
-      jcas.throwFeatMissing("musicBrainz", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    ll_cas.ll_setStringValue(addr, casFeatCode_musicBrainz, v);}
-    
-  
- 
-  /** @generated */
-  final Feature casFeat_quotations;
-  /** @generated */
-  final int     casFeatCode_quotations;
-  /** @generated */ 
-  public int getQuotations(int addr) {
-        if (featOkTst && casFeat_quotations == null)
-      jcas.throwFeatMissing("quotations", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    return ll_cas.ll_getRefValue(addr, casFeatCode_quotations);
-  }
-  /** @generated */    
-  public void setQuotations(int addr, int v) {
-        if (featOkTst && casFeat_quotations == null)
-      jcas.throwFeatMissing("quotations", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    ll_cas.ll_setRefValue(addr, casFeatCode_quotations, v);}
-    
-   /** @generated */
-  public String getQuotations(int addr, int i) {
-        if (featOkTst && casFeat_quotations == null)
-      jcas.throwFeatMissing("quotations", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    if (lowLevelTypeChecks)
-      return ll_cas.ll_getStringArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_quotations), i, true);
-    jcas.checkArrayBounds(ll_cas.ll_getRefValue(addr, casFeatCode_quotations), i);
-  return ll_cas.ll_getStringArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_quotations), i);
-  }
-   
-  /** @generated */ 
-  public void setQuotations(int addr, int i, String v) {
-        if (featOkTst && casFeat_quotations == null)
-      jcas.throwFeatMissing("quotations", "org.apache.uima.alchemy.ts.entity.RadioStation");
-    if (lowLevelTypeChecks)
-      ll_cas.ll_setStringArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_quotations), i, v, true);
-    jcas.checkArrayBounds(ll_cas.ll_getRefValue(addr, casFeatCode_quotations), i);
-    ll_cas.ll_setStringArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_quotations), i, v);
-  }
- 
-
-
-
   /** initialize variables to correspond with Cas Type and Features
 	* @generated */
   public RadioStation_Type(JCas jcas, Type casType) {
     super(jcas, casType);
     casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
 
- 
-    casFeat_text = jcas.getRequiredFeatureDE(casType, "text", "uima.cas.String", featOkTst);
-    casFeatCode_text  = (null == casFeat_text) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_text).getCode();
-
- 
-    casFeat_count = jcas.getRequiredFeatureDE(casType, "count", "uima.cas.String", featOkTst);
-    casFeatCode_count  = (null == casFeat_count) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_count).getCode();
-
- 
-    casFeat_relevance = jcas.getRequiredFeatureDE(casType, "relevance", "uima.cas.String", featOkTst);
-    casFeatCode_relevance  = (null == casFeat_relevance) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_relevance).getCode();
-
- 
-    casFeat_disambiguation = jcas.getRequiredFeatureDE(casType, "disambiguation", "uima.cas.String", featOkTst);
-    casFeatCode_disambiguation  = (null == casFeat_disambiguation) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_disambiguation).getCode();
-
- 
-    casFeat_subType = jcas.getRequiredFeatureDE(casType, "subType", "uima.cas.String", featOkTst);
-    casFeatCode_subType  = (null == casFeat_subType) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_subType).getCode();
-
- 
-    casFeat_website = jcas.getRequiredFeatureDE(casType, "website", "uima.cas.String", featOkTst);
-    casFeatCode_website  = (null == casFeat_website) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_website).getCode();
-
- 
-    casFeat_geo = jcas.getRequiredFeatureDE(casType, "geo", "uima.cas.String", featOkTst);
-    casFeatCode_geo  = (null == casFeat_geo) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_geo).getCode();
-
- 
-    casFeat_dbpedia = jcas.getRequiredFeatureDE(casType, "dbpedia", "uima.cas.String", featOkTst);
-    casFeatCode_dbpedia  = (null == casFeat_dbpedia) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_dbpedia).getCode();
-
- 
-    casFeat_yago = jcas.getRequiredFeatureDE(casType, "yago", "uima.cas.String", featOkTst);
-    casFeatCode_yago  = (null == casFeat_yago) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_yago).getCode();
-
- 
-    casFeat_opencyc = jcas.getRequiredFeatureDE(casType, "opencyc", "uima.cas.String", featOkTst);
-    casFeatCode_opencyc  = (null == casFeat_opencyc) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_opencyc).getCode();
-
- 
-    casFeat_umbel = jcas.getRequiredFeatureDE(casType, "umbel", "uima.cas.String", featOkTst);
-    casFeatCode_umbel  = (null == casFeat_umbel) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_umbel).getCode();
-
- 
-    casFeat_freebase = jcas.getRequiredFeatureDE(casType, "freebase", "uima.cas.String", featOkTst);
-    casFeatCode_freebase  = (null == casFeat_freebase) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_freebase).getCode();
-
- 
-    casFeat_ciaFactbook = jcas.getRequiredFeatureDE(casType, "ciaFactbook", "uima.cas.String", featOkTst);
-    casFeatCode_ciaFactbook  = (null == casFeat_ciaFactbook) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_ciaFactbook).getCode();
-
- 
-    casFeat_census = jcas.getRequiredFeatureDE(casType, "census", "uima.cas.String", featOkTst);
-    casFeatCode_census  = (null == casFeat_census) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_census).getCode();
-
- 
-    casFeat_geonames = jcas.getRequiredFeatureDE(casType, "geonames", "uima.cas.String", featOkTst);
-    casFeatCode_geonames  = (null == casFeat_geonames) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_geonames).getCode();
-
- 
-    casFeat_musicBrainz = jcas.getRequiredFeatureDE(casType, "musicBrainz", "uima.cas.String", featOkTst);
-    casFeatCode_musicBrainz  = (null == casFeat_musicBrainz) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_musicBrainz).getCode();
-
- 
-    casFeat_quotations = jcas.getRequiredFeatureDE(casType, "quotations", "uima.cas.StringArray", featOkTst);
-    casFeatCode_quotations  = (null == casFeat_quotations) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_quotations).getCode();
-
   }
 }
 

Modified: uima/sandbox/trunk/AlchemyAPIAnnotator/src/main/java/org/apache/uima/alchemy/ts/entity/Region.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/AlchemyAPIAnnotator/src/main/java/org/apache/uima/alchemy/ts/entity/Region.java?rev=992621&r1=992620&r2=992621&view=diff
==============================================================================
--- uima/sandbox/trunk/AlchemyAPIAnnotator/src/main/java/org/apache/uima/alchemy/ts/entity/Region.java (original)
+++ uima/sandbox/trunk/AlchemyAPIAnnotator/src/main/java/org/apache/uima/alchemy/ts/entity/Region.java Sat Sep  4 15:05:01 2010
@@ -21,16 +21,13 @@ package org.apache.uima.alchemy.ts.entit
 
 import org.apache.uima.jcas.JCas;
 import org.apache.uima.jcas.JCasRegistry;
-import org.apache.uima.jcas.cas.StringArray;
-import org.apache.uima.jcas.cas.TOP;
 import org.apache.uima.jcas.cas.TOP_Type;
 
-/**
- * Updated by JCasGen Sun Nov 15 23:15:41 CET 2009 XML source:
- * 
- * @generated
- */
-public class Region extends TOP {
+/** 
+ * Updated by JCasGen Sat Sep 04 11:45:20 CEST 2010
+ * XML source: /Users/tommaso/Documents/workspaces/uima_ws/sandbox/AlchemyAPIAnnotator/desc/TextRankedEntityExtractionAEDescriptor.xml
+ * @generated */
+public class Region extends BaseEntity {
   /**
    * @generated
    * @ordered
@@ -44,18 +41,15 @@ public class Region extends TOP {
   public final static int type = typeIndexID;
 
   /** @generated */
-  public int getTypeIndexID() {
-    return typeIndexID;
-  }
-
+  public int getTypeIndexID() {return typeIndexID;}
+ 
   /**
    * Never called. Disable default constructor
    * 
    * @generated
    */
-  protected Region() {
-  }
-
+  protected Region() {}
+    
   /**
    * Internal - constructor used by generator
    * 
@@ -65,476 +59,16 @@ public class Region extends TOP {
     super(addr, type);
     readObject();
   }
-
+  
   /** @generated */
   public Region(JCas jcas) {
     super(jcas);
-    readObject();
-  }
+    readObject();   
+  } 
 
-  /**
-   * <!-- begin-user-doc --> Write your own initialization here <!-- end-user-doc -->
-   * 
-   * @generated modifiable
-   */
+  /** <!-- begin-user-doc --> Write your own initialization here <!-- end-user-doc -->
+  @generated modifiable */
   private void readObject() {
   }
 
-  // *--------------*
-  // * Feature: text
-
-  /**
-   * getter for text - gets
-   * 
-   * @generated
-   */
-  public String getText() {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_text == null)
-      jcasType.jcas.throwFeatMissing("text", "org.apache.uima.alchemy.ts.entity.Region");
-    return jcasType.ll_cas.ll_getStringValue(addr, ((Region_Type) jcasType).casFeatCode_text);
-  }
-
-  /**
-   * setter for text - sets
-   * 
-   * @generated
-   */
-  public void setText(String v) {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_text == null)
-      jcasType.jcas.throwFeatMissing("text", "org.apache.uima.alchemy.ts.entity.Region");
-    jcasType.ll_cas.ll_setStringValue(addr, ((Region_Type) jcasType).casFeatCode_text, v);
-  }
-
-  // *--------------*
-  // * Feature: relevance
-
-  /**
-   * getter for relevance - gets
-   * 
-   * @generated
-   */
-  public String getRelevance() {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_relevance == null)
-      jcasType.jcas.throwFeatMissing("relevance", "org.apache.uima.alchemy.ts.entity.Region");
-    return jcasType.ll_cas.ll_getStringValue(addr, ((Region_Type) jcasType).casFeatCode_relevance);
-  }
-
-  /**
-   * setter for relevance - sets
-   * 
-   * @generated
-   */
-  public void setRelevance(String v) {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_relevance == null)
-      jcasType.jcas.throwFeatMissing("relevance", "org.apache.uima.alchemy.ts.entity.Region");
-    jcasType.ll_cas.ll_setStringValue(addr, ((Region_Type) jcasType).casFeatCode_relevance, v);
-  }
-
-  // *--------------*
-  // * Feature: count
-
-  /**
-   * getter for count - gets
-   * 
-   * @generated
-   */
-  public String getCount() {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_count == null)
-      jcasType.jcas.throwFeatMissing("count", "org.apache.uima.alchemy.ts.entity.Region");
-    return jcasType.ll_cas.ll_getStringValue(addr, ((Region_Type) jcasType).casFeatCode_count);
-  }
-
-  /**
-   * setter for count - sets
-   * 
-   * @generated
-   */
-  public void setCount(String v) {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_count == null)
-      jcasType.jcas.throwFeatMissing("count", "org.apache.uima.alchemy.ts.entity.Region");
-    jcasType.ll_cas.ll_setStringValue(addr, ((Region_Type) jcasType).casFeatCode_count, v);
-  }
-
-  // *--------------*
-  // * Feature: disambiguation
-
-  /**
-   * getter for disambiguation - gets
-   * 
-   * @generated
-   */
-  public String getDisambiguation() {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_disambiguation == null)
-      jcasType.jcas.throwFeatMissing("disambiguation", "org.apache.uima.alchemy.ts.entity.Region");
-    return jcasType.ll_cas.ll_getStringValue(addr,
-            ((Region_Type) jcasType).casFeatCode_disambiguation);
-  }
-
-  /**
-   * setter for disambiguation - sets
-   * 
-   * @generated
-   */
-  public void setDisambiguation(String v) {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_disambiguation == null)
-      jcasType.jcas.throwFeatMissing("disambiguation", "org.apache.uima.alchemy.ts.entity.Region");
-    jcasType.ll_cas.ll_setStringValue(addr, ((Region_Type) jcasType).casFeatCode_disambiguation, v);
-  }
-
-  // *--------------*
-  // * Feature: subType
-
-  /**
-   * getter for subType - gets
-   * 
-   * @generated
-   */
-  public String getSubType() {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_subType == null)
-      jcasType.jcas.throwFeatMissing("subType", "org.apache.uima.alchemy.ts.entity.Region");
-    return jcasType.ll_cas.ll_getStringValue(addr, ((Region_Type) jcasType).casFeatCode_subType);
-  }
-
-  /**
-   * setter for subType - sets
-   * 
-   * @generated
-   */
-  public void setSubType(String v) {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_subType == null)
-      jcasType.jcas.throwFeatMissing("subType", "org.apache.uima.alchemy.ts.entity.Region");
-    jcasType.ll_cas.ll_setStringValue(addr, ((Region_Type) jcasType).casFeatCode_subType, v);
-  }
-
-  // *--------------*
-  // * Feature: website
-
-  /**
-   * getter for website - gets
-   * 
-   * @generated
-   */
-  public String getWebsite() {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_website == null)
-      jcasType.jcas.throwFeatMissing("website", "org.apache.uima.alchemy.ts.entity.Region");
-    return jcasType.ll_cas.ll_getStringValue(addr, ((Region_Type) jcasType).casFeatCode_website);
-  }
-
-  /**
-   * setter for website - sets
-   * 
-   * @generated
-   */
-  public void setWebsite(String v) {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_website == null)
-      jcasType.jcas.throwFeatMissing("website", "org.apache.uima.alchemy.ts.entity.Region");
-    jcasType.ll_cas.ll_setStringValue(addr, ((Region_Type) jcasType).casFeatCode_website, v);
-  }
-
-  // *--------------*
-  // * Feature: geo
-
-  /**
-   * getter for geo - gets
-   * 
-   * @generated
-   */
-  public String getGeo() {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_geo == null)
-      jcasType.jcas.throwFeatMissing("geo", "org.apache.uima.alchemy.ts.entity.Region");
-    return jcasType.ll_cas.ll_getStringValue(addr, ((Region_Type) jcasType).casFeatCode_geo);
-  }
-
-  /**
-   * setter for geo - sets
-   * 
-   * @generated
-   */
-  public void setGeo(String v) {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_geo == null)
-      jcasType.jcas.throwFeatMissing("geo", "org.apache.uima.alchemy.ts.entity.Region");
-    jcasType.ll_cas.ll_setStringValue(addr, ((Region_Type) jcasType).casFeatCode_geo, v);
-  }
-
-  // *--------------*
-  // * Feature: dbpedia
-
-  /**
-   * getter for dbpedia - gets
-   * 
-   * @generated
-   */
-  public String getDbpedia() {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_dbpedia == null)
-      jcasType.jcas.throwFeatMissing("dbpedia", "org.apache.uima.alchemy.ts.entity.Region");
-    return jcasType.ll_cas.ll_getStringValue(addr, ((Region_Type) jcasType).casFeatCode_dbpedia);
-  }
-
-  /**
-   * setter for dbpedia - sets
-   * 
-   * @generated
-   */
-  public void setDbpedia(String v) {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_dbpedia == null)
-      jcasType.jcas.throwFeatMissing("dbpedia", "org.apache.uima.alchemy.ts.entity.Region");
-    jcasType.ll_cas.ll_setStringValue(addr, ((Region_Type) jcasType).casFeatCode_dbpedia, v);
-  }
-
-  // *--------------*
-  // * Feature: yago
-
-  /**
-   * getter for yago - gets
-   * 
-   * @generated
-   */
-  public String getYago() {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_yago == null)
-      jcasType.jcas.throwFeatMissing("yago", "org.apache.uima.alchemy.ts.entity.Region");
-    return jcasType.ll_cas.ll_getStringValue(addr, ((Region_Type) jcasType).casFeatCode_yago);
-  }
-
-  /**
-   * setter for yago - sets
-   * 
-   * @generated
-   */
-  public void setYago(String v) {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_yago == null)
-      jcasType.jcas.throwFeatMissing("yago", "org.apache.uima.alchemy.ts.entity.Region");
-    jcasType.ll_cas.ll_setStringValue(addr, ((Region_Type) jcasType).casFeatCode_yago, v);
-  }
-
-  // *--------------*
-  // * Feature: opencyc
-
-  /**
-   * getter for opencyc - gets
-   * 
-   * @generated
-   */
-  public String getOpencyc() {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_opencyc == null)
-      jcasType.jcas.throwFeatMissing("opencyc", "org.apache.uima.alchemy.ts.entity.Region");
-    return jcasType.ll_cas.ll_getStringValue(addr, ((Region_Type) jcasType).casFeatCode_opencyc);
-  }
-
-  /**
-   * setter for opencyc - sets
-   * 
-   * @generated
-   */
-  public void setOpencyc(String v) {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_opencyc == null)
-      jcasType.jcas.throwFeatMissing("opencyc", "org.apache.uima.alchemy.ts.entity.Region");
-    jcasType.ll_cas.ll_setStringValue(addr, ((Region_Type) jcasType).casFeatCode_opencyc, v);
-  }
-
-  // *--------------*
-  // * Feature: umbel
-
-  /**
-   * getter for umbel - gets
-   * 
-   * @generated
-   */
-  public String getUmbel() {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_umbel == null)
-      jcasType.jcas.throwFeatMissing("umbel", "org.apache.uima.alchemy.ts.entity.Region");
-    return jcasType.ll_cas.ll_getStringValue(addr, ((Region_Type) jcasType).casFeatCode_umbel);
-  }
-
-  /**
-   * setter for umbel - sets
-   * 
-   * @generated
-   */
-  public void setUmbel(String v) {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_umbel == null)
-      jcasType.jcas.throwFeatMissing("umbel", "org.apache.uima.alchemy.ts.entity.Region");
-    jcasType.ll_cas.ll_setStringValue(addr, ((Region_Type) jcasType).casFeatCode_umbel, v);
-  }
-
-  // *--------------*
-  // * Feature: freebase
-
-  /**
-   * getter for freebase - gets
-   * 
-   * @generated
-   */
-  public String getFreebase() {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_freebase == null)
-      jcasType.jcas.throwFeatMissing("freebase", "org.apache.uima.alchemy.ts.entity.Region");
-    return jcasType.ll_cas.ll_getStringValue(addr, ((Region_Type) jcasType).casFeatCode_freebase);
-  }
-
-  /**
-   * setter for freebase - sets
-   * 
-   * @generated
-   */
-  public void setFreebase(String v) {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_freebase == null)
-      jcasType.jcas.throwFeatMissing("freebase", "org.apache.uima.alchemy.ts.entity.Region");
-    jcasType.ll_cas.ll_setStringValue(addr, ((Region_Type) jcasType).casFeatCode_freebase, v);
-  }
-
-  // *--------------*
-  // * Feature: ciaFactbook
-
-  /**
-   * getter for ciaFactbook - gets
-   * 
-   * @generated
-   */
-  public String getCiaFactbook() {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_ciaFactbook == null)
-      jcasType.jcas.throwFeatMissing("ciaFactbook", "org.apache.uima.alchemy.ts.entity.Region");
-    return jcasType.ll_cas
-            .ll_getStringValue(addr, ((Region_Type) jcasType).casFeatCode_ciaFactbook);
-  }
-
-  /**
-   * setter for ciaFactbook - sets
-   * 
-   * @generated
-   */
-  public void setCiaFactbook(String v) {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_ciaFactbook == null)
-      jcasType.jcas.throwFeatMissing("ciaFactbook", "org.apache.uima.alchemy.ts.entity.Region");
-    jcasType.ll_cas.ll_setStringValue(addr, ((Region_Type) jcasType).casFeatCode_ciaFactbook, v);
-  }
-
-  // *--------------*
-  // * Feature: census
-
-  /**
-   * getter for census - gets
-   * 
-   * @generated
-   */
-  public String getCensus() {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_census == null)
-      jcasType.jcas.throwFeatMissing("census", "org.apache.uima.alchemy.ts.entity.Region");
-    return jcasType.ll_cas.ll_getStringValue(addr, ((Region_Type) jcasType).casFeatCode_census);
-  }
-
-  /**
-   * setter for census - sets
-   * 
-   * @generated
-   */
-  public void setCensus(String v) {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_census == null)
-      jcasType.jcas.throwFeatMissing("census", "org.apache.uima.alchemy.ts.entity.Region");
-    jcasType.ll_cas.ll_setStringValue(addr, ((Region_Type) jcasType).casFeatCode_census, v);
-  }
-
-  // *--------------*
-  // * Feature: geonames
-
-  /**
-   * getter for geonames - gets
-   * 
-   * @generated
-   */
-  public String getGeonames() {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_geonames == null)
-      jcasType.jcas.throwFeatMissing("geonames", "org.apache.uima.alchemy.ts.entity.Region");
-    return jcasType.ll_cas.ll_getStringValue(addr, ((Region_Type) jcasType).casFeatCode_geonames);
-  }
-
-  /**
-   * setter for geonames - sets
-   * 
-   * @generated
-   */
-  public void setGeonames(String v) {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_geonames == null)
-      jcasType.jcas.throwFeatMissing("geonames", "org.apache.uima.alchemy.ts.entity.Region");
-    jcasType.ll_cas.ll_setStringValue(addr, ((Region_Type) jcasType).casFeatCode_geonames, v);
-  }
-
-  // *--------------*
-  // * Feature: musicBrainz
-
-  /**
-   * getter for musicBrainz - gets
-   * 
-   * @generated
-   */
-  public String getMusicBrainz() {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_musicBrainz == null)
-      jcasType.jcas.throwFeatMissing("musicBrainz", "org.apache.uima.alchemy.ts.entity.Region");
-    return jcasType.ll_cas
-            .ll_getStringValue(addr, ((Region_Type) jcasType).casFeatCode_musicBrainz);
-  }
-
-  /**
-   * setter for musicBrainz - sets
-   * 
-   * @generated
-   */
-  public void setMusicBrainz(String v) {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_musicBrainz == null)
-      jcasType.jcas.throwFeatMissing("musicBrainz", "org.apache.uima.alchemy.ts.entity.Region");
-    jcasType.ll_cas.ll_setStringValue(addr, ((Region_Type) jcasType).casFeatCode_musicBrainz, v);
-  }
-
-  // *--------------*
-  // * Feature: quotations
-
-  /**
-   * getter for quotations - gets
-   * 
-   * @generated
-   */
-  public StringArray getQuotations() {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_quotations == null)
-      jcasType.jcas.throwFeatMissing("quotations", "org.apache.uima.alchemy.ts.entity.Region");
-    return (StringArray) (jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr,
-            ((Region_Type) jcasType).casFeatCode_quotations)));
-  }
-
-  /**
-   * setter for quotations - sets
-   * 
-   * @generated
-   */
-  public void setQuotations(StringArray v) {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_quotations == null)
-      jcasType.jcas.throwFeatMissing("quotations", "org.apache.uima.alchemy.ts.entity.Region");
-    jcasType.ll_cas.ll_setRefValue(addr, ((Region_Type) jcasType).casFeatCode_quotations,
-            jcasType.ll_cas.ll_getFSRef(v));
-  }
-
-  /**
-   * indexed getter for quotations - gets an indexed value -
-   * 
-   * @generated
-   */
-  public String getQuotations(int i) {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_quotations == null)
-      jcasType.jcas.throwFeatMissing("quotations", "org.apache.uima.alchemy.ts.entity.Region");
-    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr,
-            ((Region_Type) jcasType).casFeatCode_quotations), i);
-    return jcasType.ll_cas.ll_getStringArrayValue(jcasType.ll_cas.ll_getRefValue(addr,
-            ((Region_Type) jcasType).casFeatCode_quotations), i);
-  }
-
-  /**
-   * indexed setter for quotations - sets an indexed value -
-   * 
-   * @generated
-   */
-  public void setQuotations(int i, String v) {
-    if (Region_Type.featOkTst && ((Region_Type) jcasType).casFeat_quotations == null)
-      jcasType.jcas.throwFeatMissing("quotations", "org.apache.uima.alchemy.ts.entity.Region");
-    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr,
-            ((Region_Type) jcasType).casFeatCode_quotations), i);
-    jcasType.ll_cas.ll_setStringArrayValue(jcasType.ll_cas.ll_getRefValue(addr,
-            ((Region_Type) jcasType).casFeatCode_quotations), i, v);
-  }
 }

Modified: uima/sandbox/trunk/AlchemyAPIAnnotator/src/main/java/org/apache/uima/alchemy/ts/entity/Region_Type.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/AlchemyAPIAnnotator/src/main/java/org/apache/uima/alchemy/ts/entity/Region_Type.java?rev=992621&r1=992620&r2=992621&view=diff
==============================================================================
--- uima/sandbox/trunk/AlchemyAPIAnnotator/src/main/java/org/apache/uima/alchemy/ts/entity/Region_Type.java (original)
+++ uima/sandbox/trunk/AlchemyAPIAnnotator/src/main/java/org/apache/uima/alchemy/ts/entity/Region_Type.java Sat Sep  4 15:05:01 2010
@@ -19,44 +19,36 @@
 /* First created by JCasGen Mon Nov 09 23:02:37 CET 2009 */
 package org.apache.uima.alchemy.ts.entity;
 
-import org.apache.uima.cas.Feature;
 import org.apache.uima.cas.FeatureStructure;
 import org.apache.uima.cas.Type;
 import org.apache.uima.cas.impl.CASImpl;
 import org.apache.uima.cas.impl.FSGenerator;
-import org.apache.uima.cas.impl.FeatureImpl;
 import org.apache.uima.cas.impl.TypeImpl;
 import org.apache.uima.jcas.JCas;
 import org.apache.uima.jcas.JCasRegistry;
-import org.apache.uima.jcas.cas.TOP_Type;
 
-/**
- * Updated by JCasGen Sun Nov 15 23:15:41 CET 2009
- * 
- * @generated
- */
-public class Region_Type extends TOP_Type {
-  /** @generated */
-  protected FSGenerator getFSGenerator() {
-    return fsGenerator;
-  }
-
-  /** @generated */
-  private final FSGenerator fsGenerator = new FSGenerator() {
-    public FeatureStructure createFS(int addr, CASImpl cas) {
-      if (Region_Type.this.useExistingInstance) {
-        // Return eq fs instance if already created
-        FeatureStructure fs = Region_Type.this.jcas.getJfsFromCaddr(addr);
-        if (null == fs) {
-          fs = new Region(addr, Region_Type.this);
-          Region_Type.this.jcas.putJfsFromCaddr(addr, fs);
-          return fs;
-        }
-        return fs;
-      } else
-        return new Region(addr, Region_Type.this);
-    }
-  };
+/** 
+ * Updated by JCasGen Sat Sep 04 11:45:20 CEST 2010
+ * @generated */
+public class Region_Type extends BaseEntity_Type {
+  /** @generated */
+  protected FSGenerator getFSGenerator() {return fsGenerator;}
+  /** @generated */
+  private final FSGenerator fsGenerator = 
+    new FSGenerator() {
+      public FeatureStructure createFS(int addr, CASImpl cas) {
+  			 if (Region_Type.this.useExistingInstance) {
+  			   // Return eq fs instance if already created
+  		     FeatureStructure fs = Region_Type.this.jcas.getJfsFromCaddr(addr);
+  		     if (null == fs) {
+  		       fs = new Region(addr, Region_Type.this);
+  			   Region_Type.this.jcas.putJfsFromCaddr(addr, fs);
+  			   return fs;
+  		     }
+  		     return fs;
+        } else return new Region(addr, Region_Type.this);
+  	  }
+    };
 
   /** @generated */
   public final static int typeIndexID = Region.typeIndexID;
@@ -65,371 +57,7 @@ public class Region_Type extends TOP_Typ
    * @generated
    * @modifiable
    */
-  public final static boolean featOkTst = JCasRegistry
-          .getFeatOkTst("org.apache.uima.alchemy.ts.entity.Region");
-
-  /** @generated */
-  final Feature casFeat_text;
-
-  /** @generated */
-  final int casFeatCode_text;
-
-  /** @generated */
-  public String getText(int addr) {
-    if (featOkTst && casFeat_text == null)
-      jcas.throwFeatMissing("text", "org.apache.uima.alchemy.ts.entity.Region");
-    return ll_cas.ll_getStringValue(addr, casFeatCode_text);
-  }
-
-  /** @generated */
-  public void setText(int addr, String v) {
-    if (featOkTst && casFeat_text == null)
-      jcas.throwFeatMissing("text", "org.apache.uima.alchemy.ts.entity.Region");
-    ll_cas.ll_setStringValue(addr, casFeatCode_text, v);
-  }
-
-  /** @generated */
-  final Feature casFeat_relevance;
-
-  /** @generated */
-  final int casFeatCode_relevance;
-
-  /** @generated */
-  public String getRelevance(int addr) {
-    if (featOkTst && casFeat_relevance == null)
-      jcas.throwFeatMissing("relevance", "org.apache.uima.alchemy.ts.entity.Region");
-    return ll_cas.ll_getStringValue(addr, casFeatCode_relevance);
-  }
-
-  /** @generated */
-  public void setRelevance(int addr, String v) {
-    if (featOkTst && casFeat_relevance == null)
-      jcas.throwFeatMissing("relevance", "org.apache.uima.alchemy.ts.entity.Region");
-    ll_cas.ll_setStringValue(addr, casFeatCode_relevance, v);
-  }
-
-  /** @generated */
-  final Feature casFeat_count;
-
-  /** @generated */
-  final int casFeatCode_count;
-
-  /** @generated */
-  public String getCount(int addr) {
-    if (featOkTst && casFeat_count == null)
-      jcas.throwFeatMissing("count", "org.apache.uima.alchemy.ts.entity.Region");
-    return ll_cas.ll_getStringValue(addr, casFeatCode_count);
-  }
-
-  /** @generated */
-  public void setCount(int addr, String v) {
-    if (featOkTst && casFeat_count == null)
-      jcas.throwFeatMissing("count", "org.apache.uima.alchemy.ts.entity.Region");
-    ll_cas.ll_setStringValue(addr, casFeatCode_count, v);
-  }
-
-  /** @generated */
-  final Feature casFeat_disambiguation;
-
-  /** @generated */
-  final int casFeatCode_disambiguation;
-
-  /** @generated */
-  public String getDisambiguation(int addr) {
-    if (featOkTst && casFeat_disambiguation == null)
-      jcas.throwFeatMissing("disambiguation", "org.apache.uima.alchemy.ts.entity.Region");
-    return ll_cas.ll_getStringValue(addr, casFeatCode_disambiguation);
-  }
-
-  /** @generated */
-  public void setDisambiguation(int addr, String v) {
-    if (featOkTst && casFeat_disambiguation == null)
-      jcas.throwFeatMissing("disambiguation", "org.apache.uima.alchemy.ts.entity.Region");
-    ll_cas.ll_setStringValue(addr, casFeatCode_disambiguation, v);
-  }
-
-  /** @generated */
-  final Feature casFeat_subType;
-
-  /** @generated */
-  final int casFeatCode_subType;
-
-  /** @generated */
-  public String getSubType(int addr) {
-    if (featOkTst && casFeat_subType == null)
-      jcas.throwFeatMissing("subType", "org.apache.uima.alchemy.ts.entity.Region");
-    return ll_cas.ll_getStringValue(addr, casFeatCode_subType);
-  }
-
-  /** @generated */
-  public void setSubType(int addr, String v) {
-    if (featOkTst && casFeat_subType == null)
-      jcas.throwFeatMissing("subType", "org.apache.uima.alchemy.ts.entity.Region");
-    ll_cas.ll_setStringValue(addr, casFeatCode_subType, v);
-  }
-
-  /** @generated */
-  final Feature casFeat_website;
-
-  /** @generated */
-  final int casFeatCode_website;
-
-  /** @generated */
-  public String getWebsite(int addr) {
-    if (featOkTst && casFeat_website == null)
-      jcas.throwFeatMissing("website", "org.apache.uima.alchemy.ts.entity.Region");
-    return ll_cas.ll_getStringValue(addr, casFeatCode_website);
-  }
-
-  /** @generated */
-  public void setWebsite(int addr, String v) {
-    if (featOkTst && casFeat_website == null)
-      jcas.throwFeatMissing("website", "org.apache.uima.alchemy.ts.entity.Region");
-    ll_cas.ll_setStringValue(addr, casFeatCode_website, v);
-  }
-
-  /** @generated */
-  final Feature casFeat_geo;
-
-  /** @generated */
-  final int casFeatCode_geo;
-
-  /** @generated */
-  public String getGeo(int addr) {
-    if (featOkTst && casFeat_geo == null)
-      jcas.throwFeatMissing("geo", "org.apache.uima.alchemy.ts.entity.Region");
-    return ll_cas.ll_getStringValue(addr, casFeatCode_geo);
-  }
-
-  /** @generated */
-  public void setGeo(int addr, String v) {
-    if (featOkTst && casFeat_geo == null)
-      jcas.throwFeatMissing("geo", "org.apache.uima.alchemy.ts.entity.Region");
-    ll_cas.ll_setStringValue(addr, casFeatCode_geo, v);
-  }
-
-  /** @generated */
-  final Feature casFeat_dbpedia;
-
-  /** @generated */
-  final int casFeatCode_dbpedia;
-
-  /** @generated */
-  public String getDbpedia(int addr) {
-    if (featOkTst && casFeat_dbpedia == null)
-      jcas.throwFeatMissing("dbpedia", "org.apache.uima.alchemy.ts.entity.Region");
-    return ll_cas.ll_getStringValue(addr, casFeatCode_dbpedia);
-  }
-
-  /** @generated */
-  public void setDbpedia(int addr, String v) {
-    if (featOkTst && casFeat_dbpedia == null)
-      jcas.throwFeatMissing("dbpedia", "org.apache.uima.alchemy.ts.entity.Region");
-    ll_cas.ll_setStringValue(addr, casFeatCode_dbpedia, v);
-  }
-
-  /** @generated */
-  final Feature casFeat_yago;
-
-  /** @generated */
-  final int casFeatCode_yago;
-
-  /** @generated */
-  public String getYago(int addr) {
-    if (featOkTst && casFeat_yago == null)
-      jcas.throwFeatMissing("yago", "org.apache.uima.alchemy.ts.entity.Region");
-    return ll_cas.ll_getStringValue(addr, casFeatCode_yago);
-  }
-
-  /** @generated */
-  public void setYago(int addr, String v) {
-    if (featOkTst && casFeat_yago == null)
-      jcas.throwFeatMissing("yago", "org.apache.uima.alchemy.ts.entity.Region");
-    ll_cas.ll_setStringValue(addr, casFeatCode_yago, v);
-  }
-
-  /** @generated */
-  final Feature casFeat_opencyc;
-
-  /** @generated */
-  final int casFeatCode_opencyc;
-
-  /** @generated */
-  public String getOpencyc(int addr) {
-    if (featOkTst && casFeat_opencyc == null)
-      jcas.throwFeatMissing("opencyc", "org.apache.uima.alchemy.ts.entity.Region");
-    return ll_cas.ll_getStringValue(addr, casFeatCode_opencyc);
-  }
-
-  /** @generated */
-  public void setOpencyc(int addr, String v) {
-    if (featOkTst && casFeat_opencyc == null)
-      jcas.throwFeatMissing("opencyc", "org.apache.uima.alchemy.ts.entity.Region");
-    ll_cas.ll_setStringValue(addr, casFeatCode_opencyc, v);
-  }
-
-  /** @generated */
-  final Feature casFeat_umbel;
-
-  /** @generated */
-  final int casFeatCode_umbel;
-
-  /** @generated */
-  public String getUmbel(int addr) {
-    if (featOkTst && casFeat_umbel == null)
-      jcas.throwFeatMissing("umbel", "org.apache.uima.alchemy.ts.entity.Region");
-    return ll_cas.ll_getStringValue(addr, casFeatCode_umbel);
-  }
-
-  /** @generated */
-  public void setUmbel(int addr, String v) {
-    if (featOkTst && casFeat_umbel == null)
-      jcas.throwFeatMissing("umbel", "org.apache.uima.alchemy.ts.entity.Region");
-    ll_cas.ll_setStringValue(addr, casFeatCode_umbel, v);
-  }
-
-  /** @generated */
-  final Feature casFeat_freebase;
-
-  /** @generated */
-  final int casFeatCode_freebase;
-
-  /** @generated */
-  public String getFreebase(int addr) {
-    if (featOkTst && casFeat_freebase == null)
-      jcas.throwFeatMissing("freebase", "org.apache.uima.alchemy.ts.entity.Region");
-    return ll_cas.ll_getStringValue(addr, casFeatCode_freebase);
-  }
-
-  /** @generated */
-  public void setFreebase(int addr, String v) {
-    if (featOkTst && casFeat_freebase == null)
-      jcas.throwFeatMissing("freebase", "org.apache.uima.alchemy.ts.entity.Region");
-    ll_cas.ll_setStringValue(addr, casFeatCode_freebase, v);
-  }
-
-  /** @generated */
-  final Feature casFeat_ciaFactbook;
-
-  /** @generated */
-  final int casFeatCode_ciaFactbook;
-
-  /** @generated */
-  public String getCiaFactbook(int addr) {
-    if (featOkTst && casFeat_ciaFactbook == null)
-      jcas.throwFeatMissing("ciaFactbook", "org.apache.uima.alchemy.ts.entity.Region");
-    return ll_cas.ll_getStringValue(addr, casFeatCode_ciaFactbook);
-  }
-
-  /** @generated */
-  public void setCiaFactbook(int addr, String v) {
-    if (featOkTst && casFeat_ciaFactbook == null)
-      jcas.throwFeatMissing("ciaFactbook", "org.apache.uima.alchemy.ts.entity.Region");
-    ll_cas.ll_setStringValue(addr, casFeatCode_ciaFactbook, v);
-  }
-
-  /** @generated */
-  final Feature casFeat_census;
-
-  /** @generated */
-  final int casFeatCode_census;
-
-  /** @generated */
-  public String getCensus(int addr) {
-    if (featOkTst && casFeat_census == null)
-      jcas.throwFeatMissing("census", "org.apache.uima.alchemy.ts.entity.Region");
-    return ll_cas.ll_getStringValue(addr, casFeatCode_census);
-  }
-
-  /** @generated */
-  public void setCensus(int addr, String v) {
-    if (featOkTst && casFeat_census == null)
-      jcas.throwFeatMissing("census", "org.apache.uima.alchemy.ts.entity.Region");
-    ll_cas.ll_setStringValue(addr, casFeatCode_census, v);
-  }
-
-  /** @generated */
-  final Feature casFeat_geonames;
-
-  /** @generated */
-  final int casFeatCode_geonames;
-
-  /** @generated */
-  public String getGeonames(int addr) {
-    if (featOkTst && casFeat_geonames == null)
-      jcas.throwFeatMissing("geonames", "org.apache.uima.alchemy.ts.entity.Region");
-    return ll_cas.ll_getStringValue(addr, casFeatCode_geonames);
-  }
-
-  /** @generated */
-  public void setGeonames(int addr, String v) {
-    if (featOkTst && casFeat_geonames == null)
-      jcas.throwFeatMissing("geonames", "org.apache.uima.alchemy.ts.entity.Region");
-    ll_cas.ll_setStringValue(addr, casFeatCode_geonames, v);
-  }
-
-  /** @generated */
-  final Feature casFeat_musicBrainz;
-
-  /** @generated */
-  final int casFeatCode_musicBrainz;
-
-  /** @generated */
-  public String getMusicBrainz(int addr) {
-    if (featOkTst && casFeat_musicBrainz == null)
-      jcas.throwFeatMissing("musicBrainz", "org.apache.uima.alchemy.ts.entity.Region");
-    return ll_cas.ll_getStringValue(addr, casFeatCode_musicBrainz);
-  }
-
-  /** @generated */
-  public void setMusicBrainz(int addr, String v) {
-    if (featOkTst && casFeat_musicBrainz == null)
-      jcas.throwFeatMissing("musicBrainz", "org.apache.uima.alchemy.ts.entity.Region");
-    ll_cas.ll_setStringValue(addr, casFeatCode_musicBrainz, v);
-  }
-
-  /** @generated */
-  final Feature casFeat_quotations;
-
-  /** @generated */
-  final int casFeatCode_quotations;
-
-  /** @generated */
-  public int getQuotations(int addr) {
-    if (featOkTst && casFeat_quotations == null)
-      jcas.throwFeatMissing("quotations", "org.apache.uima.alchemy.ts.entity.Region");
-    return ll_cas.ll_getRefValue(addr, casFeatCode_quotations);
-  }
-
-  /** @generated */
-  public void setQuotations(int addr, int v) {
-    if (featOkTst && casFeat_quotations == null)
-      jcas.throwFeatMissing("quotations", "org.apache.uima.alchemy.ts.entity.Region");
-    ll_cas.ll_setRefValue(addr, casFeatCode_quotations, v);
-  }
-
-  /** @generated */
-  public String getQuotations(int addr, int i) {
-    if (featOkTst && casFeat_quotations == null)
-      jcas.throwFeatMissing("quotations", "org.apache.uima.alchemy.ts.entity.Region");
-    if (lowLevelTypeChecks)
-      return ll_cas.ll_getStringArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_quotations), i,
-              true);
-    jcas.checkArrayBounds(ll_cas.ll_getRefValue(addr, casFeatCode_quotations), i);
-    return ll_cas.ll_getStringArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_quotations), i);
-  }
-
-  /** @generated */
-  public void setQuotations(int addr, int i, String v) {
-    if (featOkTst && casFeat_quotations == null)
-      jcas.throwFeatMissing("quotations", "org.apache.uima.alchemy.ts.entity.Region");
-    if (lowLevelTypeChecks)
-      ll_cas
-              .ll_setStringArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_quotations), i, v,
-                      true);
-    jcas.checkArrayBounds(ll_cas.ll_getRefValue(addr, casFeatCode_quotations), i);
-    ll_cas.ll_setStringArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_quotations), i, v);
-  }
+  public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.alchemy.ts.entity.Region");
 
   /**
    * initialize variables to correspond with Cas Type and Features
@@ -438,80 +66,7 @@ public class Region_Type extends TOP_Typ
    */
   public Region_Type(JCas jcas, Type casType) {
     super(jcas, casType);
-    casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator());
-
-    casFeat_text = jcas.getRequiredFeatureDE(casType, "text", "uima.cas.String", featOkTst);
-    casFeatCode_text = (null == casFeat_text) ? JCas.INVALID_FEATURE_CODE
-            : ((FeatureImpl) casFeat_text).getCode();
-
-    casFeat_relevance = jcas.getRequiredFeatureDE(casType, "relevance", "uima.cas.String",
-            featOkTst);
-    casFeatCode_relevance = (null == casFeat_relevance) ? JCas.INVALID_FEATURE_CODE
-            : ((FeatureImpl) casFeat_relevance).getCode();
-
-    casFeat_count = jcas.getRequiredFeatureDE(casType, "count", "uima.cas.String", featOkTst);
-    casFeatCode_count = (null == casFeat_count) ? JCas.INVALID_FEATURE_CODE
-            : ((FeatureImpl) casFeat_count).getCode();
-
-    casFeat_disambiguation = jcas.getRequiredFeatureDE(casType, "disambiguation",
-            "uima.cas.String", featOkTst);
-    casFeatCode_disambiguation = (null == casFeat_disambiguation) ? JCas.INVALID_FEATURE_CODE
-            : ((FeatureImpl) casFeat_disambiguation).getCode();
-
-    casFeat_subType = jcas.getRequiredFeatureDE(casType, "subType", "uima.cas.String", featOkTst);
-    casFeatCode_subType = (null == casFeat_subType) ? JCas.INVALID_FEATURE_CODE
-            : ((FeatureImpl) casFeat_subType).getCode();
-
-    casFeat_website = jcas.getRequiredFeatureDE(casType, "website", "uima.cas.String", featOkTst);
-    casFeatCode_website = (null == casFeat_website) ? JCas.INVALID_FEATURE_CODE
-            : ((FeatureImpl) casFeat_website).getCode();
-
-    casFeat_geo = jcas.getRequiredFeatureDE(casType, "geo", "uima.cas.String", featOkTst);
-    casFeatCode_geo = (null == casFeat_geo) ? JCas.INVALID_FEATURE_CODE
-            : ((FeatureImpl) casFeat_geo).getCode();
-
-    casFeat_dbpedia = jcas.getRequiredFeatureDE(casType, "dbpedia", "uima.cas.String", featOkTst);
-    casFeatCode_dbpedia = (null == casFeat_dbpedia) ? JCas.INVALID_FEATURE_CODE
-            : ((FeatureImpl) casFeat_dbpedia).getCode();
-
-    casFeat_yago = jcas.getRequiredFeatureDE(casType, "yago", "uima.cas.String", featOkTst);
-    casFeatCode_yago = (null == casFeat_yago) ? JCas.INVALID_FEATURE_CODE
-            : ((FeatureImpl) casFeat_yago).getCode();
-
-    casFeat_opencyc = jcas.getRequiredFeatureDE(casType, "opencyc", "uima.cas.String", featOkTst);
-    casFeatCode_opencyc = (null == casFeat_opencyc) ? JCas.INVALID_FEATURE_CODE
-            : ((FeatureImpl) casFeat_opencyc).getCode();
-
-    casFeat_umbel = jcas.getRequiredFeatureDE(casType, "umbel", "uima.cas.String", featOkTst);
-    casFeatCode_umbel = (null == casFeat_umbel) ? JCas.INVALID_FEATURE_CODE
-            : ((FeatureImpl) casFeat_umbel).getCode();
-
-    casFeat_freebase = jcas.getRequiredFeatureDE(casType, "freebase", "uima.cas.String", featOkTst);
-    casFeatCode_freebase = (null == casFeat_freebase) ? JCas.INVALID_FEATURE_CODE
-            : ((FeatureImpl) casFeat_freebase).getCode();
-
-    casFeat_ciaFactbook = jcas.getRequiredFeatureDE(casType, "ciaFactbook", "uima.cas.String",
-            featOkTst);
-    casFeatCode_ciaFactbook = (null == casFeat_ciaFactbook) ? JCas.INVALID_FEATURE_CODE
-            : ((FeatureImpl) casFeat_ciaFactbook).getCode();
-
-    casFeat_census = jcas.getRequiredFeatureDE(casType, "census", "uima.cas.String", featOkTst);
-    casFeatCode_census = (null == casFeat_census) ? JCas.INVALID_FEATURE_CODE
-            : ((FeatureImpl) casFeat_census).getCode();
-
-    casFeat_geonames = jcas.getRequiredFeatureDE(casType, "geonames", "uima.cas.String", featOkTst);
-    casFeatCode_geonames = (null == casFeat_geonames) ? JCas.INVALID_FEATURE_CODE
-            : ((FeatureImpl) casFeat_geonames).getCode();
-
-    casFeat_musicBrainz = jcas.getRequiredFeatureDE(casType, "musicBrainz", "uima.cas.String",
-            featOkTst);
-    casFeatCode_musicBrainz = (null == casFeat_musicBrainz) ? JCas.INVALID_FEATURE_CODE
-            : ((FeatureImpl) casFeat_musicBrainz).getCode();
-
-    casFeat_quotations = jcas.getRequiredFeatureDE(casType, "quotations", "uima.cas.StringArray",
-            featOkTst);
-    casFeatCode_quotations = (null == casFeat_quotations) ? JCas.INVALID_FEATURE_CODE
-            : ((FeatureImpl) casFeat_quotations).getCode();
+    casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
 
   }
 }

Modified: uima/sandbox/trunk/AlchemyAPIAnnotator/src/main/java/org/apache/uima/alchemy/ts/entity/Sport.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/AlchemyAPIAnnotator/src/main/java/org/apache/uima/alchemy/ts/entity/Sport.java?rev=992621&r1=992620&r2=992621&view=diff
==============================================================================
--- uima/sandbox/trunk/AlchemyAPIAnnotator/src/main/java/org/apache/uima/alchemy/ts/entity/Sport.java (original)
+++ uima/sandbox/trunk/AlchemyAPIAnnotator/src/main/java/org/apache/uima/alchemy/ts/entity/Sport.java Sat Sep  4 15:05:01 2010
@@ -21,16 +21,13 @@ package org.apache.uima.alchemy.ts.entit
 
 import org.apache.uima.jcas.JCas;
 import org.apache.uima.jcas.JCasRegistry;
-import org.apache.uima.jcas.cas.StringArray;
-import org.apache.uima.jcas.cas.TOP;
 import org.apache.uima.jcas.cas.TOP_Type;
 
-/**
- * Updated by JCasGen Sun Nov 15 23:15:41 CET 2009 XML source:
- * 
- * @generated
- */
-public class Sport extends TOP {
+/** 
+ * Updated by JCasGen Sat Sep 04 11:45:20 CEST 2010
+ * XML source: /Users/tommaso/Documents/workspaces/uima_ws/sandbox/AlchemyAPIAnnotator/desc/TextRankedEntityExtractionAEDescriptor.xml
+ * @generated */
+public class Sport extends BaseEntity {
   /**
    * @generated
    * @ordered
@@ -44,18 +41,15 @@ public class Sport extends TOP {
   public final static int type = typeIndexID;
 
   /** @generated */
-  public int getTypeIndexID() {
-    return typeIndexID;
-  }
-
+  public int getTypeIndexID() {return typeIndexID;}
+ 
   /**
    * Never called. Disable default constructor
    * 
    * @generated
    */
-  protected Sport() {
-  }
-
+  protected Sport() {}
+    
   /**
    * Internal - constructor used by generator
    * 
@@ -65,474 +59,16 @@ public class Sport extends TOP {
     super(addr, type);
     readObject();
   }
-
+  
   /** @generated */
   public Sport(JCas jcas) {
     super(jcas);
-    readObject();
-  }
+    readObject();   
+  } 
 
-  /**
-   * <!-- begin-user-doc --> Write your own initialization here <!-- end-user-doc -->
-   * 
-   * @generated modifiable
-   */
+  /** <!-- begin-user-doc --> Write your own initialization here <!-- end-user-doc -->
+  @generated modifiable */
   private void readObject() {
   }
 
-  // *--------------*
-  // * Feature: text
-
-  /**
-   * getter for text - gets
-   * 
-   * @generated
-   */
-  public String getText() {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_text == null)
-      jcasType.jcas.throwFeatMissing("text", "org.apache.uima.alchemy.ts.entity.Sport");
-    return jcasType.ll_cas.ll_getStringValue(addr, ((Sport_Type) jcasType).casFeatCode_text);
-  }
-
-  /**
-   * setter for text - sets
-   * 
-   * @generated
-   */
-  public void setText(String v) {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_text == null)
-      jcasType.jcas.throwFeatMissing("text", "org.apache.uima.alchemy.ts.entity.Sport");
-    jcasType.ll_cas.ll_setStringValue(addr, ((Sport_Type) jcasType).casFeatCode_text, v);
-  }
-
-  // *--------------*
-  // * Feature: relevance
-
-  /**
-   * getter for relevance - gets
-   * 
-   * @generated
-   */
-  public String getRelevance() {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_relevance == null)
-      jcasType.jcas.throwFeatMissing("relevance", "org.apache.uima.alchemy.ts.entity.Sport");
-    return jcasType.ll_cas.ll_getStringValue(addr, ((Sport_Type) jcasType).casFeatCode_relevance);
-  }
-
-  /**
-   * setter for relevance - sets
-   * 
-   * @generated
-   */
-  public void setRelevance(String v) {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_relevance == null)
-      jcasType.jcas.throwFeatMissing("relevance", "org.apache.uima.alchemy.ts.entity.Sport");
-    jcasType.ll_cas.ll_setStringValue(addr, ((Sport_Type) jcasType).casFeatCode_relevance, v);
-  }
-
-  // *--------------*
-  // * Feature: count
-
-  /**
-   * getter for count - gets
-   * 
-   * @generated
-   */
-  public String getCount() {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_count == null)
-      jcasType.jcas.throwFeatMissing("count", "org.apache.uima.alchemy.ts.entity.Sport");
-    return jcasType.ll_cas.ll_getStringValue(addr, ((Sport_Type) jcasType).casFeatCode_count);
-  }
-
-  /**
-   * setter for count - sets
-   * 
-   * @generated
-   */
-  public void setCount(String v) {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_count == null)
-      jcasType.jcas.throwFeatMissing("count", "org.apache.uima.alchemy.ts.entity.Sport");
-    jcasType.ll_cas.ll_setStringValue(addr, ((Sport_Type) jcasType).casFeatCode_count, v);
-  }
-
-  // *--------------*
-  // * Feature: disambiguation
-
-  /**
-   * getter for disambiguation - gets
-   * 
-   * @generated
-   */
-  public String getDisambiguation() {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_disambiguation == null)
-      jcasType.jcas.throwFeatMissing("disambiguation", "org.apache.uima.alchemy.ts.entity.Sport");
-    return jcasType.ll_cas.ll_getStringValue(addr,
-            ((Sport_Type) jcasType).casFeatCode_disambiguation);
-  }
-
-  /**
-   * setter for disambiguation - sets
-   * 
-   * @generated
-   */
-  public void setDisambiguation(String v) {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_disambiguation == null)
-      jcasType.jcas.throwFeatMissing("disambiguation", "org.apache.uima.alchemy.ts.entity.Sport");
-    jcasType.ll_cas.ll_setStringValue(addr, ((Sport_Type) jcasType).casFeatCode_disambiguation, v);
-  }
-
-  // *--------------*
-  // * Feature: subType
-
-  /**
-   * getter for subType - gets
-   * 
-   * @generated
-   */
-  public String getSubType() {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_subType == null)
-      jcasType.jcas.throwFeatMissing("subType", "org.apache.uima.alchemy.ts.entity.Sport");
-    return jcasType.ll_cas.ll_getStringValue(addr, ((Sport_Type) jcasType).casFeatCode_subType);
-  }
-
-  /**
-   * setter for subType - sets
-   * 
-   * @generated
-   */
-  public void setSubType(String v) {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_subType == null)
-      jcasType.jcas.throwFeatMissing("subType", "org.apache.uima.alchemy.ts.entity.Sport");
-    jcasType.ll_cas.ll_setStringValue(addr, ((Sport_Type) jcasType).casFeatCode_subType, v);
-  }
-
-  // *--------------*
-  // * Feature: website
-
-  /**
-   * getter for website - gets
-   * 
-   * @generated
-   */
-  public String getWebsite() {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_website == null)
-      jcasType.jcas.throwFeatMissing("website", "org.apache.uima.alchemy.ts.entity.Sport");
-    return jcasType.ll_cas.ll_getStringValue(addr, ((Sport_Type) jcasType).casFeatCode_website);
-  }
-
-  /**
-   * setter for website - sets
-   * 
-   * @generated
-   */
-  public void setWebsite(String v) {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_website == null)
-      jcasType.jcas.throwFeatMissing("website", "org.apache.uima.alchemy.ts.entity.Sport");
-    jcasType.ll_cas.ll_setStringValue(addr, ((Sport_Type) jcasType).casFeatCode_website, v);
-  }
-
-  // *--------------*
-  // * Feature: geo
-
-  /**
-   * getter for geo - gets
-   * 
-   * @generated
-   */
-  public String getGeo() {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_geo == null)
-      jcasType.jcas.throwFeatMissing("geo", "org.apache.uima.alchemy.ts.entity.Sport");
-    return jcasType.ll_cas.ll_getStringValue(addr, ((Sport_Type) jcasType).casFeatCode_geo);
-  }
-
-  /**
-   * setter for geo - sets
-   * 
-   * @generated
-   */
-  public void setGeo(String v) {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_geo == null)
-      jcasType.jcas.throwFeatMissing("geo", "org.apache.uima.alchemy.ts.entity.Sport");
-    jcasType.ll_cas.ll_setStringValue(addr, ((Sport_Type) jcasType).casFeatCode_geo, v);
-  }
-
-  // *--------------*
-  // * Feature: dbpedia
-
-  /**
-   * getter for dbpedia - gets
-   * 
-   * @generated
-   */
-  public String getDbpedia() {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_dbpedia == null)
-      jcasType.jcas.throwFeatMissing("dbpedia", "org.apache.uima.alchemy.ts.entity.Sport");
-    return jcasType.ll_cas.ll_getStringValue(addr, ((Sport_Type) jcasType).casFeatCode_dbpedia);
-  }
-
-  /**
-   * setter for dbpedia - sets
-   * 
-   * @generated
-   */
-  public void setDbpedia(String v) {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_dbpedia == null)
-      jcasType.jcas.throwFeatMissing("dbpedia", "org.apache.uima.alchemy.ts.entity.Sport");
-    jcasType.ll_cas.ll_setStringValue(addr, ((Sport_Type) jcasType).casFeatCode_dbpedia, v);
-  }
-
-  // *--------------*
-  // * Feature: yago
-
-  /**
-   * getter for yago - gets
-   * 
-   * @generated
-   */
-  public String getYago() {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_yago == null)
-      jcasType.jcas.throwFeatMissing("yago", "org.apache.uima.alchemy.ts.entity.Sport");
-    return jcasType.ll_cas.ll_getStringValue(addr, ((Sport_Type) jcasType).casFeatCode_yago);
-  }
-
-  /**
-   * setter for yago - sets
-   * 
-   * @generated
-   */
-  public void setYago(String v) {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_yago == null)
-      jcasType.jcas.throwFeatMissing("yago", "org.apache.uima.alchemy.ts.entity.Sport");
-    jcasType.ll_cas.ll_setStringValue(addr, ((Sport_Type) jcasType).casFeatCode_yago, v);
-  }
-
-  // *--------------*
-  // * Feature: opencyc
-
-  /**
-   * getter for opencyc - gets
-   * 
-   * @generated
-   */
-  public String getOpencyc() {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_opencyc == null)
-      jcasType.jcas.throwFeatMissing("opencyc", "org.apache.uima.alchemy.ts.entity.Sport");
-    return jcasType.ll_cas.ll_getStringValue(addr, ((Sport_Type) jcasType).casFeatCode_opencyc);
-  }
-
-  /**
-   * setter for opencyc - sets
-   * 
-   * @generated
-   */
-  public void setOpencyc(String v) {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_opencyc == null)
-      jcasType.jcas.throwFeatMissing("opencyc", "org.apache.uima.alchemy.ts.entity.Sport");
-    jcasType.ll_cas.ll_setStringValue(addr, ((Sport_Type) jcasType).casFeatCode_opencyc, v);
-  }
-
-  // *--------------*
-  // * Feature: umbel
-
-  /**
-   * getter for umbel - gets
-   * 
-   * @generated
-   */
-  public String getUmbel() {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_umbel == null)
-      jcasType.jcas.throwFeatMissing("umbel", "org.apache.uima.alchemy.ts.entity.Sport");
-    return jcasType.ll_cas.ll_getStringValue(addr, ((Sport_Type) jcasType).casFeatCode_umbel);
-  }
-
-  /**
-   * setter for umbel - sets
-   * 
-   * @generated
-   */
-  public void setUmbel(String v) {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_umbel == null)
-      jcasType.jcas.throwFeatMissing("umbel", "org.apache.uima.alchemy.ts.entity.Sport");
-    jcasType.ll_cas.ll_setStringValue(addr, ((Sport_Type) jcasType).casFeatCode_umbel, v);
-  }
-
-  // *--------------*
-  // * Feature: freebase
-
-  /**
-   * getter for freebase - gets
-   * 
-   * @generated
-   */
-  public String getFreebase() {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_freebase == null)
-      jcasType.jcas.throwFeatMissing("freebase", "org.apache.uima.alchemy.ts.entity.Sport");
-    return jcasType.ll_cas.ll_getStringValue(addr, ((Sport_Type) jcasType).casFeatCode_freebase);
-  }
-
-  /**
-   * setter for freebase - sets
-   * 
-   * @generated
-   */
-  public void setFreebase(String v) {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_freebase == null)
-      jcasType.jcas.throwFeatMissing("freebase", "org.apache.uima.alchemy.ts.entity.Sport");
-    jcasType.ll_cas.ll_setStringValue(addr, ((Sport_Type) jcasType).casFeatCode_freebase, v);
-  }
-
-  // *--------------*
-  // * Feature: ciaFactbook
-
-  /**
-   * getter for ciaFactbook - gets
-   * 
-   * @generated
-   */
-  public String getCiaFactbook() {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_ciaFactbook == null)
-      jcasType.jcas.throwFeatMissing("ciaFactbook", "org.apache.uima.alchemy.ts.entity.Sport");
-    return jcasType.ll_cas.ll_getStringValue(addr, ((Sport_Type) jcasType).casFeatCode_ciaFactbook);
-  }
-
-  /**
-   * setter for ciaFactbook - sets
-   * 
-   * @generated
-   */
-  public void setCiaFactbook(String v) {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_ciaFactbook == null)
-      jcasType.jcas.throwFeatMissing("ciaFactbook", "org.apache.uima.alchemy.ts.entity.Sport");
-    jcasType.ll_cas.ll_setStringValue(addr, ((Sport_Type) jcasType).casFeatCode_ciaFactbook, v);
-  }
-
-  // *--------------*
-  // * Feature: census
-
-  /**
-   * getter for census - gets
-   * 
-   * @generated
-   */
-  public String getCensus() {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_census == null)
-      jcasType.jcas.throwFeatMissing("census", "org.apache.uima.alchemy.ts.entity.Sport");
-    return jcasType.ll_cas.ll_getStringValue(addr, ((Sport_Type) jcasType).casFeatCode_census);
-  }
-
-  /**
-   * setter for census - sets
-   * 
-   * @generated
-   */
-  public void setCensus(String v) {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_census == null)
-      jcasType.jcas.throwFeatMissing("census", "org.apache.uima.alchemy.ts.entity.Sport");
-    jcasType.ll_cas.ll_setStringValue(addr, ((Sport_Type) jcasType).casFeatCode_census, v);
-  }
-
-  // *--------------*
-  // * Feature: geonames
-
-  /**
-   * getter for geonames - gets
-   * 
-   * @generated
-   */
-  public String getGeonames() {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_geonames == null)
-      jcasType.jcas.throwFeatMissing("geonames", "org.apache.uima.alchemy.ts.entity.Sport");
-    return jcasType.ll_cas.ll_getStringValue(addr, ((Sport_Type) jcasType).casFeatCode_geonames);
-  }
-
-  /**
-   * setter for geonames - sets
-   * 
-   * @generated
-   */
-  public void setGeonames(String v) {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_geonames == null)
-      jcasType.jcas.throwFeatMissing("geonames", "org.apache.uima.alchemy.ts.entity.Sport");
-    jcasType.ll_cas.ll_setStringValue(addr, ((Sport_Type) jcasType).casFeatCode_geonames, v);
-  }
-
-  // *--------------*
-  // * Feature: musicBrainz
-
-  /**
-   * getter for musicBrainz - gets
-   * 
-   * @generated
-   */
-  public String getMusicBrainz() {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_musicBrainz == null)
-      jcasType.jcas.throwFeatMissing("musicBrainz", "org.apache.uima.alchemy.ts.entity.Sport");
-    return jcasType.ll_cas.ll_getStringValue(addr, ((Sport_Type) jcasType).casFeatCode_musicBrainz);
-  }
-
-  /**
-   * setter for musicBrainz - sets
-   * 
-   * @generated
-   */
-  public void setMusicBrainz(String v) {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_musicBrainz == null)
-      jcasType.jcas.throwFeatMissing("musicBrainz", "org.apache.uima.alchemy.ts.entity.Sport");
-    jcasType.ll_cas.ll_setStringValue(addr, ((Sport_Type) jcasType).casFeatCode_musicBrainz, v);
-  }
-
-  // *--------------*
-  // * Feature: quotations
-
-  /**
-   * getter for quotations - gets
-   * 
-   * @generated
-   */
-  public StringArray getQuotations() {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_quotations == null)
-      jcasType.jcas.throwFeatMissing("quotations", "org.apache.uima.alchemy.ts.entity.Sport");
-    return (StringArray) (jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr,
-            ((Sport_Type) jcasType).casFeatCode_quotations)));
-  }
-
-  /**
-   * setter for quotations - sets
-   * 
-   * @generated
-   */
-  public void setQuotations(StringArray v) {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_quotations == null)
-      jcasType.jcas.throwFeatMissing("quotations", "org.apache.uima.alchemy.ts.entity.Sport");
-    jcasType.ll_cas.ll_setRefValue(addr, ((Sport_Type) jcasType).casFeatCode_quotations,
-            jcasType.ll_cas.ll_getFSRef(v));
-  }
-
-  /**
-   * indexed getter for quotations - gets an indexed value -
-   * 
-   * @generated
-   */
-  public String getQuotations(int i) {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_quotations == null)
-      jcasType.jcas.throwFeatMissing("quotations", "org.apache.uima.alchemy.ts.entity.Sport");
-    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr,
-            ((Sport_Type) jcasType).casFeatCode_quotations), i);
-    return jcasType.ll_cas.ll_getStringArrayValue(jcasType.ll_cas.ll_getRefValue(addr,
-            ((Sport_Type) jcasType).casFeatCode_quotations), i);
-  }
-
-  /**
-   * indexed setter for quotations - sets an indexed value -
-   * 
-   * @generated
-   */
-  public void setQuotations(int i, String v) {
-    if (Sport_Type.featOkTst && ((Sport_Type) jcasType).casFeat_quotations == null)
-      jcasType.jcas.throwFeatMissing("quotations", "org.apache.uima.alchemy.ts.entity.Sport");
-    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr,
-            ((Sport_Type) jcasType).casFeatCode_quotations), i);
-    jcasType.ll_cas.ll_setStringArrayValue(jcasType.ll_cas.ll_getRefValue(addr,
-            ((Sport_Type) jcasType).casFeatCode_quotations), i, v);
-  }
 }



Mime
View raw message