You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2008/05/27 17:14:03 UTC
svn commit: r660553 [6/10] - in
/incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy: ./ src/ src/main/
src/main/descriptors/ src/main/groovy/ src/main/groovy/org/
src/main/groovy/org/apache/ src/main/groovy/org/apache/uima/
src/main/groovy/org/apac...
Propchange: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Acquisition.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Acquisition_Type.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Acquisition_Type.java?rev=660553&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Acquisition_Type.java (added)
+++ incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Acquisition_Type.java Tue May 27 08:13:37 2008
@@ -0,0 +1,123 @@
+
+/* First created by JCasGen Mon May 26 21:43:19 EDT 2008 */
+package org.apache.uima.calaisType.relation;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+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.calaisType.Relation_Type;
+
+/**
+ * Updated by JCasGen Mon May 26 21:43:19 EDT 2008
+ * @generated */
+public class Acquisition_Type extends Relation_Type {
+ /** @generated */
+ protected FSGenerator getFSGenerator() {return fsGenerator;}
+ /** @generated */
+ private final FSGenerator fsGenerator =
+ new FSGenerator() {
+ public FeatureStructure createFS(int addr, CASImpl cas) {
+ if (Acquisition_Type.this.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = Acquisition_Type.this.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new Acquisition(addr, Acquisition_Type.this);
+ Acquisition_Type.this.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else return new Acquisition(addr, Acquisition_Type.this);
+ }
+ };
+ /** @generated */
+ public final static int typeIndexID = Acquisition.typeIndexID;
+ /** @generated
+ @modifiable */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.calaisType.relation.Acquisition");
+
+ /** @generated */
+ final Feature casFeat_company_acquirer;
+ /** @generated */
+ final int casFeatCode_company_acquirer;
+ /** @generated */
+ public int getCompany_acquirer(int addr) {
+ if (featOkTst && casFeat_company_acquirer == null)
+ jcas.throwFeatMissing("company_acquirer", "org.apache.uima.calaisType.relation.Acquisition");
+ return ll_cas.ll_getRefValue(addr, casFeatCode_company_acquirer);
+ }
+ /** @generated */
+ public void setCompany_acquirer(int addr, int v) {
+ if (featOkTst && casFeat_company_acquirer == null)
+ jcas.throwFeatMissing("company_acquirer", "org.apache.uima.calaisType.relation.Acquisition");
+ ll_cas.ll_setRefValue(addr, casFeatCode_company_acquirer, v);}
+
+
+
+ /** @generated */
+ final Feature casFeat_company_beingacquired;
+ /** @generated */
+ final int casFeatCode_company_beingacquired;
+ /** @generated */
+ public int getCompany_beingacquired(int addr) {
+ if (featOkTst && casFeat_company_beingacquired == null)
+ jcas.throwFeatMissing("company_beingacquired", "org.apache.uima.calaisType.relation.Acquisition");
+ return ll_cas.ll_getRefValue(addr, casFeatCode_company_beingacquired);
+ }
+ /** @generated */
+ public void setCompany_beingacquired(int addr, int v) {
+ if (featOkTst && casFeat_company_beingacquired == null)
+ jcas.throwFeatMissing("company_beingacquired", "org.apache.uima.calaisType.relation.Acquisition");
+ ll_cas.ll_setRefValue(addr, casFeatCode_company_beingacquired, v);}
+
+
+
+ /** @generated */
+ final Feature casFeat_status;
+ /** @generated */
+ final int casFeatCode_status;
+ /** @generated */
+ public String getStatus(int addr) {
+ if (featOkTst && casFeat_status == null)
+ jcas.throwFeatMissing("status", "org.apache.uima.calaisType.relation.Acquisition");
+ return ll_cas.ll_getStringValue(addr, casFeatCode_status);
+ }
+ /** @generated */
+ public void setStatus(int addr, String v) {
+ if (featOkTst && casFeat_status == null)
+ jcas.throwFeatMissing("status", "org.apache.uima.calaisType.relation.Acquisition");
+ ll_cas.ll_setStringValue(addr, casFeatCode_status, v);}
+
+
+
+
+
+ /** initialize variables to correspond with Cas Type and Features
+ * @generated */
+ public Acquisition_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
+
+
+ casFeat_company_acquirer = jcas.getRequiredFeatureDE(casType, "company_acquirer", "org.apache.uima.calaisType.entity.Company", featOkTst);
+ casFeatCode_company_acquirer = (null == casFeat_company_acquirer) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_company_acquirer).getCode();
+
+
+ casFeat_company_beingacquired = jcas.getRequiredFeatureDE(casType, "company_beingacquired", "org.apache.uima.calaisType.entity.Company", featOkTst);
+ casFeatCode_company_beingacquired = (null == casFeat_company_beingacquired) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_company_beingacquired).getCode();
+
+
+ casFeat_status = jcas.getRequiredFeatureDE(casType, "status", "uima.cas.String", featOkTst);
+ casFeatCode_status = (null == casFeat_status) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_status).getCode();
+
+ }
+}
+
+
+
+
\ No newline at end of file
Propchange: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Acquisition_Type.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Alliance.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Alliance.java?rev=660553&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Alliance.java (added)
+++ incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Alliance.java Tue May 27 08:13:37 2008
@@ -0,0 +1,108 @@
+
+
+/* First created by JCasGen Mon May 26 21:43:19 EDT 2008 */
+package org.apache.uima.calaisType.relation;
+
+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.FSArray;
+import org.apache.uima.calaisType.Relation;
+import org.apache.uima.calaisType.entity.Company;
+
+
+/**
+ * Updated by JCasGen Mon May 26 21:43:19 EDT 2008
+ * XML source: C:/a/Eclipse/3.3/apache/OpenCalaisAnnotatorGroovy/src/main/descriptors/CalaisTestCollectionReader.xml
+ * @generated */
+public class Alliance extends Relation {
+ /** @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(Alliance.class);
+ /** @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+ /** @generated */
+ public int getTypeIndexID() {return typeIndexID;}
+
+ /** Never called. Disable default constructor
+ * @generated */
+ protected Alliance() {}
+
+ /** Internal - constructor used by generator
+ * @generated */
+ public Alliance(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public Alliance(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ /** <!-- begin-user-doc -->
+ * Write your own initialization here
+ * <!-- end-user-doc -->
+ @generated modifiable */
+ private void readObject() {}
+
+
+
+ //*--------------*
+ //* Feature: company
+
+ /** getter for company - gets
+ * @generated */
+ public FSArray getCompany() {
+ if (Alliance_Type.featOkTst && ((Alliance_Type)jcasType).casFeat_company == null)
+ jcasType.jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.Alliance");
+ return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Alliance_Type)jcasType).casFeatCode_company)));}
+
+ /** setter for company - sets
+ * @generated */
+ public void setCompany(FSArray v) {
+ if (Alliance_Type.featOkTst && ((Alliance_Type)jcasType).casFeat_company == null)
+ jcasType.jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.Alliance");
+ jcasType.ll_cas.ll_setRefValue(addr, ((Alliance_Type)jcasType).casFeatCode_company, jcasType.ll_cas.ll_getFSRef(v));}
+
+ /** indexed getter for company - gets an indexed value -
+ * @generated */
+ public Company getCompany(int i) {
+ if (Alliance_Type.featOkTst && ((Alliance_Type)jcasType).casFeat_company == null)
+ jcasType.jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.Alliance");
+ jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Alliance_Type)jcasType).casFeatCode_company), i);
+ return (Company)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((Alliance_Type)jcasType).casFeatCode_company), i)));}
+
+ /** indexed setter for company - sets an indexed value -
+ * @generated */
+ public void setCompany(int i, Company v) {
+ if (Alliance_Type.featOkTst && ((Alliance_Type)jcasType).casFeat_company == null)
+ jcasType.jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.Alliance");
+ jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Alliance_Type)jcasType).casFeatCode_company), i);
+ jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((Alliance_Type)jcasType).casFeatCode_company), i, jcasType.ll_cas.ll_getFSRef(v));}
+
+
+ //*--------------*
+ //* Feature: status
+
+ /** getter for status - gets
+ * @generated */
+ public String getStatus() {
+ if (Alliance_Type.featOkTst && ((Alliance_Type)jcasType).casFeat_status == null)
+ jcasType.jcas.throwFeatMissing("status", "org.apache.uima.calaisType.relation.Alliance");
+ return jcasType.ll_cas.ll_getStringValue(addr, ((Alliance_Type)jcasType).casFeatCode_status);}
+
+ /** setter for status - sets
+ * @generated */
+ public void setStatus(String v) {
+ if (Alliance_Type.featOkTst && ((Alliance_Type)jcasType).casFeat_status == null)
+ jcasType.jcas.throwFeatMissing("status", "org.apache.uima.calaisType.relation.Alliance");
+ jcasType.ll_cas.ll_setStringValue(addr, ((Alliance_Type)jcasType).casFeatCode_status, v);}
+ }
+
+
\ No newline at end of file
Propchange: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Alliance.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Alliance_Type.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Alliance_Type.java?rev=660553&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Alliance_Type.java (added)
+++ incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Alliance_Type.java Tue May 27 08:13:37 2008
@@ -0,0 +1,120 @@
+
+/* First created by JCasGen Mon May 26 21:43:19 EDT 2008 */
+package org.apache.uima.calaisType.relation;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+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.calaisType.Relation_Type;
+
+/**
+ * Updated by JCasGen Mon May 26 21:43:19 EDT 2008
+ * @generated */
+public class Alliance_Type extends Relation_Type {
+ /** @generated */
+ protected FSGenerator getFSGenerator() {return fsGenerator;}
+ /** @generated */
+ private final FSGenerator fsGenerator =
+ new FSGenerator() {
+ public FeatureStructure createFS(int addr, CASImpl cas) {
+ if (Alliance_Type.this.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = Alliance_Type.this.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new Alliance(addr, Alliance_Type.this);
+ Alliance_Type.this.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else return new Alliance(addr, Alliance_Type.this);
+ }
+ };
+ /** @generated */
+ public final static int typeIndexID = Alliance.typeIndexID;
+ /** @generated
+ @modifiable */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.calaisType.relation.Alliance");
+
+ /** @generated */
+ final Feature casFeat_company;
+ /** @generated */
+ final int casFeatCode_company;
+ /** @generated */
+ public int getCompany(int addr) {
+ if (featOkTst && casFeat_company == null)
+ jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.Alliance");
+ return ll_cas.ll_getRefValue(addr, casFeatCode_company);
+ }
+ /** @generated */
+ public void setCompany(int addr, int v) {
+ if (featOkTst && casFeat_company == null)
+ jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.Alliance");
+ ll_cas.ll_setRefValue(addr, casFeatCode_company, v);}
+
+ /** @generated */
+ public int getCompany(int addr, int i) {
+ if (featOkTst && casFeat_company == null)
+ jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.Alliance");
+ if (lowLevelTypeChecks)
+ return ll_cas.ll_getRefArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_company), i, true);
+ jcas.checkArrayBounds(ll_cas.ll_getRefValue(addr, casFeatCode_company), i);
+ return ll_cas.ll_getRefArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_company), i);
+ }
+
+ /** @generated */
+ public void setCompany(int addr, int i, int v) {
+ if (featOkTst && casFeat_company == null)
+ jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.Alliance");
+ if (lowLevelTypeChecks)
+ ll_cas.ll_setRefArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_company), i, v, true);
+ jcas.checkArrayBounds(ll_cas.ll_getRefValue(addr, casFeatCode_company), i);
+ ll_cas.ll_setRefArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_company), i, v);
+ }
+
+
+ /** @generated */
+ final Feature casFeat_status;
+ /** @generated */
+ final int casFeatCode_status;
+ /** @generated */
+ public String getStatus(int addr) {
+ if (featOkTst && casFeat_status == null)
+ jcas.throwFeatMissing("status", "org.apache.uima.calaisType.relation.Alliance");
+ return ll_cas.ll_getStringValue(addr, casFeatCode_status);
+ }
+ /** @generated */
+ public void setStatus(int addr, String v) {
+ if (featOkTst && casFeat_status == null)
+ jcas.throwFeatMissing("status", "org.apache.uima.calaisType.relation.Alliance");
+ ll_cas.ll_setStringValue(addr, casFeatCode_status, v);}
+
+
+
+
+
+ /** initialize variables to correspond with Cas Type and Features
+ * @generated */
+ public Alliance_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
+
+
+ casFeat_company = jcas.getRequiredFeatureDE(casType, "company", "uima.cas.FSArray", featOkTst);
+ casFeatCode_company = (null == casFeat_company) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_company).getCode();
+
+
+ casFeat_status = jcas.getRequiredFeatureDE(casType, "status", "uima.cas.String", featOkTst);
+ casFeatCode_status = (null == casFeat_status) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_status).getCode();
+
+ }
+}
+
+
+
+
\ No newline at end of file
Propchange: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Alliance_Type.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/AnalystEarningsEstimate.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/AnalystEarningsEstimate.java?rev=660553&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/AnalystEarningsEstimate.java (added)
+++ incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/AnalystEarningsEstimate.java Tue May 27 08:13:37 2008
@@ -0,0 +1,146 @@
+
+
+/* First created by JCasGen Mon May 26 21:43:19 EDT 2008 */
+package org.apache.uima.calaisType.relation;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.cas.TOP_Type;
+
+import org.apache.uima.calaisType.Relation;
+import org.apache.uima.calaisType.entity.Company;
+import org.apache.uima.calaisType.entity.Person;
+
+
+/**
+ * Updated by JCasGen Mon May 26 21:43:19 EDT 2008
+ * XML source: C:/a/Eclipse/3.3/apache/OpenCalaisAnnotatorGroovy/src/main/descriptors/CalaisTestCollectionReader.xml
+ * @generated */
+public class AnalystEarningsEstimate extends Relation {
+ /** @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(AnalystEarningsEstimate.class);
+ /** @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+ /** @generated */
+ public int getTypeIndexID() {return typeIndexID;}
+
+ /** Never called. Disable default constructor
+ * @generated */
+ protected AnalystEarningsEstimate() {}
+
+ /** Internal - constructor used by generator
+ * @generated */
+ public AnalystEarningsEstimate(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public AnalystEarningsEstimate(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ /** <!-- begin-user-doc -->
+ * Write your own initialization here
+ * <!-- end-user-doc -->
+ @generated modifiable */
+ private void readObject() {}
+
+
+
+ //*--------------*
+ //* Feature: company_source
+
+ /** getter for company_source - gets
+ * @generated */
+ public Company getCompany_source() {
+ if (AnalystEarningsEstimate_Type.featOkTst && ((AnalystEarningsEstimate_Type)jcasType).casFeat_company_source == null)
+ jcasType.jcas.throwFeatMissing("company_source", "org.apache.uima.calaisType.relation.AnalystEarningsEstimate");
+ return (Company)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((AnalystEarningsEstimate_Type)jcasType).casFeatCode_company_source)));}
+
+ /** setter for company_source - sets
+ * @generated */
+ public void setCompany_source(Company v) {
+ if (AnalystEarningsEstimate_Type.featOkTst && ((AnalystEarningsEstimate_Type)jcasType).casFeat_company_source == null)
+ jcasType.jcas.throwFeatMissing("company_source", "org.apache.uima.calaisType.relation.AnalystEarningsEstimate");
+ jcasType.ll_cas.ll_setRefValue(addr, ((AnalystEarningsEstimate_Type)jcasType).casFeatCode_company_source, jcasType.ll_cas.ll_getFSRef(v));}
+
+
+ //*--------------*
+ //* Feature: person_source
+
+ /** getter for person_source - gets
+ * @generated */
+ public Person getPerson_source() {
+ if (AnalystEarningsEstimate_Type.featOkTst && ((AnalystEarningsEstimate_Type)jcasType).casFeat_person_source == null)
+ jcasType.jcas.throwFeatMissing("person_source", "org.apache.uima.calaisType.relation.AnalystEarningsEstimate");
+ return (Person)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((AnalystEarningsEstimate_Type)jcasType).casFeatCode_person_source)));}
+
+ /** setter for person_source - sets
+ * @generated */
+ public void setPerson_source(Person v) {
+ if (AnalystEarningsEstimate_Type.featOkTst && ((AnalystEarningsEstimate_Type)jcasType).casFeat_person_source == null)
+ jcasType.jcas.throwFeatMissing("person_source", "org.apache.uima.calaisType.relation.AnalystEarningsEstimate");
+ jcasType.ll_cas.ll_setRefValue(addr, ((AnalystEarningsEstimate_Type)jcasType).casFeatCode_person_source, jcasType.ll_cas.ll_getFSRef(v));}
+
+
+ //*--------------*
+ //* Feature: company_rated
+
+ /** getter for company_rated - gets
+ * @generated */
+ public Company getCompany_rated() {
+ if (AnalystEarningsEstimate_Type.featOkTst && ((AnalystEarningsEstimate_Type)jcasType).casFeat_company_rated == null)
+ jcasType.jcas.throwFeatMissing("company_rated", "org.apache.uima.calaisType.relation.AnalystEarningsEstimate");
+ return (Company)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((AnalystEarningsEstimate_Type)jcasType).casFeatCode_company_rated)));}
+
+ /** setter for company_rated - sets
+ * @generated */
+ public void setCompany_rated(Company v) {
+ if (AnalystEarningsEstimate_Type.featOkTst && ((AnalystEarningsEstimate_Type)jcasType).casFeat_company_rated == null)
+ jcasType.jcas.throwFeatMissing("company_rated", "org.apache.uima.calaisType.relation.AnalystEarningsEstimate");
+ jcasType.ll_cas.ll_setRefValue(addr, ((AnalystEarningsEstimate_Type)jcasType).casFeatCode_company_rated, jcasType.ll_cas.ll_getFSRef(v));}
+
+
+ //*--------------*
+ //* Feature: quarter
+
+ /** getter for quarter - gets
+ * @generated */
+ public String getQuarter() {
+ if (AnalystEarningsEstimate_Type.featOkTst && ((AnalystEarningsEstimate_Type)jcasType).casFeat_quarter == null)
+ jcasType.jcas.throwFeatMissing("quarter", "org.apache.uima.calaisType.relation.AnalystEarningsEstimate");
+ return jcasType.ll_cas.ll_getStringValue(addr, ((AnalystEarningsEstimate_Type)jcasType).casFeatCode_quarter);}
+
+ /** setter for quarter - sets
+ * @generated */
+ public void setQuarter(String v) {
+ if (AnalystEarningsEstimate_Type.featOkTst && ((AnalystEarningsEstimate_Type)jcasType).casFeat_quarter == null)
+ jcasType.jcas.throwFeatMissing("quarter", "org.apache.uima.calaisType.relation.AnalystEarningsEstimate");
+ jcasType.ll_cas.ll_setStringValue(addr, ((AnalystEarningsEstimate_Type)jcasType).casFeatCode_quarter, v);}
+
+
+ //*--------------*
+ //* Feature: year
+
+ /** getter for year - gets
+ * @generated */
+ public String getYear() {
+ if (AnalystEarningsEstimate_Type.featOkTst && ((AnalystEarningsEstimate_Type)jcasType).casFeat_year == null)
+ jcasType.jcas.throwFeatMissing("year", "org.apache.uima.calaisType.relation.AnalystEarningsEstimate");
+ return jcasType.ll_cas.ll_getStringValue(addr, ((AnalystEarningsEstimate_Type)jcasType).casFeatCode_year);}
+
+ /** setter for year - sets
+ * @generated */
+ public void setYear(String v) {
+ if (AnalystEarningsEstimate_Type.featOkTst && ((AnalystEarningsEstimate_Type)jcasType).casFeat_year == null)
+ jcasType.jcas.throwFeatMissing("year", "org.apache.uima.calaisType.relation.AnalystEarningsEstimate");
+ jcasType.ll_cas.ll_setStringValue(addr, ((AnalystEarningsEstimate_Type)jcasType).casFeatCode_year, v);}
+ }
+
+
\ No newline at end of file
Propchange: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/AnalystEarningsEstimate.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/AnalystEarningsEstimate_Type.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/AnalystEarningsEstimate_Type.java?rev=660553&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/AnalystEarningsEstimate_Type.java (added)
+++ incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/AnalystEarningsEstimate_Type.java Tue May 27 08:13:37 2008
@@ -0,0 +1,167 @@
+
+/* First created by JCasGen Mon May 26 21:43:19 EDT 2008 */
+package org.apache.uima.calaisType.relation;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+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.calaisType.Relation_Type;
+
+/**
+ * Updated by JCasGen Mon May 26 21:43:19 EDT 2008
+ * @generated */
+public class AnalystEarningsEstimate_Type extends Relation_Type {
+ /** @generated */
+ protected FSGenerator getFSGenerator() {return fsGenerator;}
+ /** @generated */
+ private final FSGenerator fsGenerator =
+ new FSGenerator() {
+ public FeatureStructure createFS(int addr, CASImpl cas) {
+ if (AnalystEarningsEstimate_Type.this.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = AnalystEarningsEstimate_Type.this.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new AnalystEarningsEstimate(addr, AnalystEarningsEstimate_Type.this);
+ AnalystEarningsEstimate_Type.this.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else return new AnalystEarningsEstimate(addr, AnalystEarningsEstimate_Type.this);
+ }
+ };
+ /** @generated */
+ public final static int typeIndexID = AnalystEarningsEstimate.typeIndexID;
+ /** @generated
+ @modifiable */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.calaisType.relation.AnalystEarningsEstimate");
+
+ /** @generated */
+ final Feature casFeat_company_source;
+ /** @generated */
+ final int casFeatCode_company_source;
+ /** @generated */
+ public int getCompany_source(int addr) {
+ if (featOkTst && casFeat_company_source == null)
+ jcas.throwFeatMissing("company_source", "org.apache.uima.calaisType.relation.AnalystEarningsEstimate");
+ return ll_cas.ll_getRefValue(addr, casFeatCode_company_source);
+ }
+ /** @generated */
+ public void setCompany_source(int addr, int v) {
+ if (featOkTst && casFeat_company_source == null)
+ jcas.throwFeatMissing("company_source", "org.apache.uima.calaisType.relation.AnalystEarningsEstimate");
+ ll_cas.ll_setRefValue(addr, casFeatCode_company_source, v);}
+
+
+
+ /** @generated */
+ final Feature casFeat_person_source;
+ /** @generated */
+ final int casFeatCode_person_source;
+ /** @generated */
+ public int getPerson_source(int addr) {
+ if (featOkTst && casFeat_person_source == null)
+ jcas.throwFeatMissing("person_source", "org.apache.uima.calaisType.relation.AnalystEarningsEstimate");
+ return ll_cas.ll_getRefValue(addr, casFeatCode_person_source);
+ }
+ /** @generated */
+ public void setPerson_source(int addr, int v) {
+ if (featOkTst && casFeat_person_source == null)
+ jcas.throwFeatMissing("person_source", "org.apache.uima.calaisType.relation.AnalystEarningsEstimate");
+ ll_cas.ll_setRefValue(addr, casFeatCode_person_source, v);}
+
+
+
+ /** @generated */
+ final Feature casFeat_company_rated;
+ /** @generated */
+ final int casFeatCode_company_rated;
+ /** @generated */
+ public int getCompany_rated(int addr) {
+ if (featOkTst && casFeat_company_rated == null)
+ jcas.throwFeatMissing("company_rated", "org.apache.uima.calaisType.relation.AnalystEarningsEstimate");
+ return ll_cas.ll_getRefValue(addr, casFeatCode_company_rated);
+ }
+ /** @generated */
+ public void setCompany_rated(int addr, int v) {
+ if (featOkTst && casFeat_company_rated == null)
+ jcas.throwFeatMissing("company_rated", "org.apache.uima.calaisType.relation.AnalystEarningsEstimate");
+ ll_cas.ll_setRefValue(addr, casFeatCode_company_rated, v);}
+
+
+
+ /** @generated */
+ final Feature casFeat_quarter;
+ /** @generated */
+ final int casFeatCode_quarter;
+ /** @generated */
+ public String getQuarter(int addr) {
+ if (featOkTst && casFeat_quarter == null)
+ jcas.throwFeatMissing("quarter", "org.apache.uima.calaisType.relation.AnalystEarningsEstimate");
+ return ll_cas.ll_getStringValue(addr, casFeatCode_quarter);
+ }
+ /** @generated */
+ public void setQuarter(int addr, String v) {
+ if (featOkTst && casFeat_quarter == null)
+ jcas.throwFeatMissing("quarter", "org.apache.uima.calaisType.relation.AnalystEarningsEstimate");
+ ll_cas.ll_setStringValue(addr, casFeatCode_quarter, v);}
+
+
+
+ /** @generated */
+ final Feature casFeat_year;
+ /** @generated */
+ final int casFeatCode_year;
+ /** @generated */
+ public String getYear(int addr) {
+ if (featOkTst && casFeat_year == null)
+ jcas.throwFeatMissing("year", "org.apache.uima.calaisType.relation.AnalystEarningsEstimate");
+ return ll_cas.ll_getStringValue(addr, casFeatCode_year);
+ }
+ /** @generated */
+ public void setYear(int addr, String v) {
+ if (featOkTst && casFeat_year == null)
+ jcas.throwFeatMissing("year", "org.apache.uima.calaisType.relation.AnalystEarningsEstimate");
+ ll_cas.ll_setStringValue(addr, casFeatCode_year, v);}
+
+
+
+
+
+ /** initialize variables to correspond with Cas Type and Features
+ * @generated */
+ public AnalystEarningsEstimate_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
+
+
+ casFeat_company_source = jcas.getRequiredFeatureDE(casType, "company_source", "org.apache.uima.calaisType.entity.Company", featOkTst);
+ casFeatCode_company_source = (null == casFeat_company_source) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_company_source).getCode();
+
+
+ casFeat_person_source = jcas.getRequiredFeatureDE(casType, "person_source", "org.apache.uima.calaisType.entity.Person", featOkTst);
+ casFeatCode_person_source = (null == casFeat_person_source) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_person_source).getCode();
+
+
+ casFeat_company_rated = jcas.getRequiredFeatureDE(casType, "company_rated", "org.apache.uima.calaisType.entity.Company", featOkTst);
+ casFeatCode_company_rated = (null == casFeat_company_rated) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_company_rated).getCode();
+
+
+ casFeat_quarter = jcas.getRequiredFeatureDE(casType, "quarter", "uima.cas.String", featOkTst);
+ casFeatCode_quarter = (null == casFeat_quarter) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_quarter).getCode();
+
+
+ casFeat_year = jcas.getRequiredFeatureDE(casType, "year", "uima.cas.String", featOkTst);
+ casFeatCode_year = (null == casFeat_year) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_year).getCode();
+
+ }
+}
+
+
+
+
\ No newline at end of file
Propchange: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/AnalystEarningsEstimate_Type.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/AnalystRecommendation.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/AnalystRecommendation.java?rev=660553&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/AnalystRecommendation.java (added)
+++ incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/AnalystRecommendation.java Tue May 27 08:13:37 2008
@@ -0,0 +1,164 @@
+
+
+/* First created by JCasGen Mon May 26 21:43:19 EDT 2008 */
+package org.apache.uima.calaisType.relation;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.cas.TOP_Type;
+
+import org.apache.uima.calaisType.Relation;
+import org.apache.uima.calaisType.entity.Company;
+import org.apache.uima.calaisType.entity.Person;
+
+
+/**
+ * Updated by JCasGen Mon May 26 21:43:19 EDT 2008
+ * XML source: C:/a/Eclipse/3.3/apache/OpenCalaisAnnotatorGroovy/src/main/descriptors/CalaisTestCollectionReader.xml
+ * @generated */
+public class AnalystRecommendation extends Relation {
+ /** @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(AnalystRecommendation.class);
+ /** @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+ /** @generated */
+ public int getTypeIndexID() {return typeIndexID;}
+
+ /** Never called. Disable default constructor
+ * @generated */
+ protected AnalystRecommendation() {}
+
+ /** Internal - constructor used by generator
+ * @generated */
+ public AnalystRecommendation(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public AnalystRecommendation(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ /** <!-- begin-user-doc -->
+ * Write your own initialization here
+ * <!-- end-user-doc -->
+ @generated modifiable */
+ private void readObject() {}
+
+
+
+ //*--------------*
+ //* Feature: company_source
+
+ /** getter for company_source - gets
+ * @generated */
+ public Company getCompany_source() {
+ if (AnalystRecommendation_Type.featOkTst && ((AnalystRecommendation_Type)jcasType).casFeat_company_source == null)
+ jcasType.jcas.throwFeatMissing("company_source", "org.apache.uima.calaisType.relation.AnalystRecommendation");
+ return (Company)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((AnalystRecommendation_Type)jcasType).casFeatCode_company_source)));}
+
+ /** setter for company_source - sets
+ * @generated */
+ public void setCompany_source(Company v) {
+ if (AnalystRecommendation_Type.featOkTst && ((AnalystRecommendation_Type)jcasType).casFeat_company_source == null)
+ jcasType.jcas.throwFeatMissing("company_source", "org.apache.uima.calaisType.relation.AnalystRecommendation");
+ jcasType.ll_cas.ll_setRefValue(addr, ((AnalystRecommendation_Type)jcasType).casFeatCode_company_source, jcasType.ll_cas.ll_getFSRef(v));}
+
+
+ //*--------------*
+ //* Feature: person_source
+
+ /** getter for person_source - gets
+ * @generated */
+ public Person getPerson_source() {
+ if (AnalystRecommendation_Type.featOkTst && ((AnalystRecommendation_Type)jcasType).casFeat_person_source == null)
+ jcasType.jcas.throwFeatMissing("person_source", "org.apache.uima.calaisType.relation.AnalystRecommendation");
+ return (Person)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((AnalystRecommendation_Type)jcasType).casFeatCode_person_source)));}
+
+ /** setter for person_source - sets
+ * @generated */
+ public void setPerson_source(Person v) {
+ if (AnalystRecommendation_Type.featOkTst && ((AnalystRecommendation_Type)jcasType).casFeat_person_source == null)
+ jcasType.jcas.throwFeatMissing("person_source", "org.apache.uima.calaisType.relation.AnalystRecommendation");
+ jcasType.ll_cas.ll_setRefValue(addr, ((AnalystRecommendation_Type)jcasType).casFeatCode_person_source, jcasType.ll_cas.ll_getFSRef(v));}
+
+
+ //*--------------*
+ //* Feature: company_rated
+
+ /** getter for company_rated - gets
+ * @generated */
+ public Company getCompany_rated() {
+ if (AnalystRecommendation_Type.featOkTst && ((AnalystRecommendation_Type)jcasType).casFeat_company_rated == null)
+ jcasType.jcas.throwFeatMissing("company_rated", "org.apache.uima.calaisType.relation.AnalystRecommendation");
+ return (Company)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((AnalystRecommendation_Type)jcasType).casFeatCode_company_rated)));}
+
+ /** setter for company_rated - sets
+ * @generated */
+ public void setCompany_rated(Company v) {
+ if (AnalystRecommendation_Type.featOkTst && ((AnalystRecommendation_Type)jcasType).casFeat_company_rated == null)
+ jcasType.jcas.throwFeatMissing("company_rated", "org.apache.uima.calaisType.relation.AnalystRecommendation");
+ jcasType.ll_cas.ll_setRefValue(addr, ((AnalystRecommendation_Type)jcasType).casFeatCode_company_rated, jcasType.ll_cas.ll_getFSRef(v));}
+
+
+ //*--------------*
+ //* Feature: trend
+
+ /** getter for trend - gets
+ * @generated */
+ public String getTrend() {
+ if (AnalystRecommendation_Type.featOkTst && ((AnalystRecommendation_Type)jcasType).casFeat_trend == null)
+ jcasType.jcas.throwFeatMissing("trend", "org.apache.uima.calaisType.relation.AnalystRecommendation");
+ return jcasType.ll_cas.ll_getStringValue(addr, ((AnalystRecommendation_Type)jcasType).casFeatCode_trend);}
+
+ /** setter for trend - sets
+ * @generated */
+ public void setTrend(String v) {
+ if (AnalystRecommendation_Type.featOkTst && ((AnalystRecommendation_Type)jcasType).casFeat_trend == null)
+ jcasType.jcas.throwFeatMissing("trend", "org.apache.uima.calaisType.relation.AnalystRecommendation");
+ jcasType.ll_cas.ll_setStringValue(addr, ((AnalystRecommendation_Type)jcasType).casFeatCode_trend, v);}
+
+
+ //*--------------*
+ //* Feature: rank_new
+
+ /** getter for rank_new - gets
+ * @generated */
+ public String getRank_new() {
+ if (AnalystRecommendation_Type.featOkTst && ((AnalystRecommendation_Type)jcasType).casFeat_rank_new == null)
+ jcasType.jcas.throwFeatMissing("rank_new", "org.apache.uima.calaisType.relation.AnalystRecommendation");
+ return jcasType.ll_cas.ll_getStringValue(addr, ((AnalystRecommendation_Type)jcasType).casFeatCode_rank_new);}
+
+ /** setter for rank_new - sets
+ * @generated */
+ public void setRank_new(String v) {
+ if (AnalystRecommendation_Type.featOkTst && ((AnalystRecommendation_Type)jcasType).casFeat_rank_new == null)
+ jcasType.jcas.throwFeatMissing("rank_new", "org.apache.uima.calaisType.relation.AnalystRecommendation");
+ jcasType.ll_cas.ll_setStringValue(addr, ((AnalystRecommendation_Type)jcasType).casFeatCode_rank_new, v);}
+
+
+ //*--------------*
+ //* Feature: rank_old
+
+ /** getter for rank_old - gets
+ * @generated */
+ public String getRank_old() {
+ if (AnalystRecommendation_Type.featOkTst && ((AnalystRecommendation_Type)jcasType).casFeat_rank_old == null)
+ jcasType.jcas.throwFeatMissing("rank_old", "org.apache.uima.calaisType.relation.AnalystRecommendation");
+ return jcasType.ll_cas.ll_getStringValue(addr, ((AnalystRecommendation_Type)jcasType).casFeatCode_rank_old);}
+
+ /** setter for rank_old - sets
+ * @generated */
+ public void setRank_old(String v) {
+ if (AnalystRecommendation_Type.featOkTst && ((AnalystRecommendation_Type)jcasType).casFeat_rank_old == null)
+ jcasType.jcas.throwFeatMissing("rank_old", "org.apache.uima.calaisType.relation.AnalystRecommendation");
+ jcasType.ll_cas.ll_setStringValue(addr, ((AnalystRecommendation_Type)jcasType).casFeatCode_rank_old, v);}
+ }
+
+
\ No newline at end of file
Propchange: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/AnalystRecommendation.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/AnalystRecommendation_Type.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/AnalystRecommendation_Type.java?rev=660553&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/AnalystRecommendation_Type.java (added)
+++ incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/AnalystRecommendation_Type.java Tue May 27 08:13:37 2008
@@ -0,0 +1,189 @@
+
+/* First created by JCasGen Mon May 26 21:43:19 EDT 2008 */
+package org.apache.uima.calaisType.relation;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+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.calaisType.Relation_Type;
+
+/**
+ * Updated by JCasGen Mon May 26 21:43:19 EDT 2008
+ * @generated */
+public class AnalystRecommendation_Type extends Relation_Type {
+ /** @generated */
+ protected FSGenerator getFSGenerator() {return fsGenerator;}
+ /** @generated */
+ private final FSGenerator fsGenerator =
+ new FSGenerator() {
+ public FeatureStructure createFS(int addr, CASImpl cas) {
+ if (AnalystRecommendation_Type.this.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = AnalystRecommendation_Type.this.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new AnalystRecommendation(addr, AnalystRecommendation_Type.this);
+ AnalystRecommendation_Type.this.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else return new AnalystRecommendation(addr, AnalystRecommendation_Type.this);
+ }
+ };
+ /** @generated */
+ public final static int typeIndexID = AnalystRecommendation.typeIndexID;
+ /** @generated
+ @modifiable */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.calaisType.relation.AnalystRecommendation");
+
+ /** @generated */
+ final Feature casFeat_company_source;
+ /** @generated */
+ final int casFeatCode_company_source;
+ /** @generated */
+ public int getCompany_source(int addr) {
+ if (featOkTst && casFeat_company_source == null)
+ jcas.throwFeatMissing("company_source", "org.apache.uima.calaisType.relation.AnalystRecommendation");
+ return ll_cas.ll_getRefValue(addr, casFeatCode_company_source);
+ }
+ /** @generated */
+ public void setCompany_source(int addr, int v) {
+ if (featOkTst && casFeat_company_source == null)
+ jcas.throwFeatMissing("company_source", "org.apache.uima.calaisType.relation.AnalystRecommendation");
+ ll_cas.ll_setRefValue(addr, casFeatCode_company_source, v);}
+
+
+
+ /** @generated */
+ final Feature casFeat_person_source;
+ /** @generated */
+ final int casFeatCode_person_source;
+ /** @generated */
+ public int getPerson_source(int addr) {
+ if (featOkTst && casFeat_person_source == null)
+ jcas.throwFeatMissing("person_source", "org.apache.uima.calaisType.relation.AnalystRecommendation");
+ return ll_cas.ll_getRefValue(addr, casFeatCode_person_source);
+ }
+ /** @generated */
+ public void setPerson_source(int addr, int v) {
+ if (featOkTst && casFeat_person_source == null)
+ jcas.throwFeatMissing("person_source", "org.apache.uima.calaisType.relation.AnalystRecommendation");
+ ll_cas.ll_setRefValue(addr, casFeatCode_person_source, v);}
+
+
+
+ /** @generated */
+ final Feature casFeat_company_rated;
+ /** @generated */
+ final int casFeatCode_company_rated;
+ /** @generated */
+ public int getCompany_rated(int addr) {
+ if (featOkTst && casFeat_company_rated == null)
+ jcas.throwFeatMissing("company_rated", "org.apache.uima.calaisType.relation.AnalystRecommendation");
+ return ll_cas.ll_getRefValue(addr, casFeatCode_company_rated);
+ }
+ /** @generated */
+ public void setCompany_rated(int addr, int v) {
+ if (featOkTst && casFeat_company_rated == null)
+ jcas.throwFeatMissing("company_rated", "org.apache.uima.calaisType.relation.AnalystRecommendation");
+ ll_cas.ll_setRefValue(addr, casFeatCode_company_rated, v);}
+
+
+
+ /** @generated */
+ final Feature casFeat_trend;
+ /** @generated */
+ final int casFeatCode_trend;
+ /** @generated */
+ public String getTrend(int addr) {
+ if (featOkTst && casFeat_trend == null)
+ jcas.throwFeatMissing("trend", "org.apache.uima.calaisType.relation.AnalystRecommendation");
+ return ll_cas.ll_getStringValue(addr, casFeatCode_trend);
+ }
+ /** @generated */
+ public void setTrend(int addr, String v) {
+ if (featOkTst && casFeat_trend == null)
+ jcas.throwFeatMissing("trend", "org.apache.uima.calaisType.relation.AnalystRecommendation");
+ ll_cas.ll_setStringValue(addr, casFeatCode_trend, v);}
+
+
+
+ /** @generated */
+ final Feature casFeat_rank_new;
+ /** @generated */
+ final int casFeatCode_rank_new;
+ /** @generated */
+ public String getRank_new(int addr) {
+ if (featOkTst && casFeat_rank_new == null)
+ jcas.throwFeatMissing("rank_new", "org.apache.uima.calaisType.relation.AnalystRecommendation");
+ return ll_cas.ll_getStringValue(addr, casFeatCode_rank_new);
+ }
+ /** @generated */
+ public void setRank_new(int addr, String v) {
+ if (featOkTst && casFeat_rank_new == null)
+ jcas.throwFeatMissing("rank_new", "org.apache.uima.calaisType.relation.AnalystRecommendation");
+ ll_cas.ll_setStringValue(addr, casFeatCode_rank_new, v);}
+
+
+
+ /** @generated */
+ final Feature casFeat_rank_old;
+ /** @generated */
+ final int casFeatCode_rank_old;
+ /** @generated */
+ public String getRank_old(int addr) {
+ if (featOkTst && casFeat_rank_old == null)
+ jcas.throwFeatMissing("rank_old", "org.apache.uima.calaisType.relation.AnalystRecommendation");
+ return ll_cas.ll_getStringValue(addr, casFeatCode_rank_old);
+ }
+ /** @generated */
+ public void setRank_old(int addr, String v) {
+ if (featOkTst && casFeat_rank_old == null)
+ jcas.throwFeatMissing("rank_old", "org.apache.uima.calaisType.relation.AnalystRecommendation");
+ ll_cas.ll_setStringValue(addr, casFeatCode_rank_old, v);}
+
+
+
+
+
+ /** initialize variables to correspond with Cas Type and Features
+ * @generated */
+ public AnalystRecommendation_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
+
+
+ casFeat_company_source = jcas.getRequiredFeatureDE(casType, "company_source", "org.apache.uima.calaisType.entity.Company", featOkTst);
+ casFeatCode_company_source = (null == casFeat_company_source) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_company_source).getCode();
+
+
+ casFeat_person_source = jcas.getRequiredFeatureDE(casType, "person_source", "org.apache.uima.calaisType.entity.Person", featOkTst);
+ casFeatCode_person_source = (null == casFeat_person_source) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_person_source).getCode();
+
+
+ casFeat_company_rated = jcas.getRequiredFeatureDE(casType, "company_rated", "org.apache.uima.calaisType.entity.Company", featOkTst);
+ casFeatCode_company_rated = (null == casFeat_company_rated) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_company_rated).getCode();
+
+
+ casFeat_trend = jcas.getRequiredFeatureDE(casType, "trend", "uima.cas.String", featOkTst);
+ casFeatCode_trend = (null == casFeat_trend) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_trend).getCode();
+
+
+ casFeat_rank_new = jcas.getRequiredFeatureDE(casType, "rank_new", "uima.cas.String", featOkTst);
+ casFeatCode_rank_new = (null == casFeat_rank_new) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_rank_new).getCode();
+
+
+ casFeat_rank_old = jcas.getRequiredFeatureDE(casType, "rank_old", "uima.cas.String", featOkTst);
+ casFeatCode_rank_old = (null == casFeat_rank_old) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_rank_old).getCode();
+
+ }
+}
+
+
+
+
\ No newline at end of file
Propchange: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/AnalystRecommendation_Type.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Bankruptcy.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Bankruptcy.java?rev=660553&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Bankruptcy.java (added)
+++ incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Bankruptcy.java Tue May 27 08:13:37 2008
@@ -0,0 +1,109 @@
+
+
+/* First created by JCasGen Mon May 26 21:43:19 EDT 2008 */
+package org.apache.uima.calaisType.relation;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.cas.TOP_Type;
+
+import org.apache.uima.calaisType.Relation;
+import org.apache.uima.calaisType.entity.Company;
+
+
+/**
+ * Updated by JCasGen Mon May 26 21:43:19 EDT 2008
+ * XML source: C:/a/Eclipse/3.3/apache/OpenCalaisAnnotatorGroovy/src/main/descriptors/CalaisTestCollectionReader.xml
+ * @generated */
+public class Bankruptcy extends Relation {
+ /** @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(Bankruptcy.class);
+ /** @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+ /** @generated */
+ public int getTypeIndexID() {return typeIndexID;}
+
+ /** Never called. Disable default constructor
+ * @generated */
+ protected Bankruptcy() {}
+
+ /** Internal - constructor used by generator
+ * @generated */
+ public Bankruptcy(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public Bankruptcy(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ /** <!-- begin-user-doc -->
+ * Write your own initialization here
+ * <!-- end-user-doc -->
+ @generated modifiable */
+ private void readObject() {}
+
+
+
+ //*--------------*
+ //* Feature: company
+
+ /** getter for company - gets
+ * @generated */
+ public Company getCompany() {
+ if (Bankruptcy_Type.featOkTst && ((Bankruptcy_Type)jcasType).casFeat_company == null)
+ jcasType.jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.Bankruptcy");
+ return (Company)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Bankruptcy_Type)jcasType).casFeatCode_company)));}
+
+ /** setter for company - sets
+ * @generated */
+ public void setCompany(Company v) {
+ if (Bankruptcy_Type.featOkTst && ((Bankruptcy_Type)jcasType).casFeat_company == null)
+ jcasType.jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.Bankruptcy");
+ jcasType.ll_cas.ll_setRefValue(addr, ((Bankruptcy_Type)jcasType).casFeatCode_company, jcasType.ll_cas.ll_getFSRef(v));}
+
+
+ //*--------------*
+ //* Feature: bankruptcystatus
+
+ /** getter for bankruptcystatus - gets
+ * @generated */
+ public String getBankruptcystatus() {
+ if (Bankruptcy_Type.featOkTst && ((Bankruptcy_Type)jcasType).casFeat_bankruptcystatus == null)
+ jcasType.jcas.throwFeatMissing("bankruptcystatus", "org.apache.uima.calaisType.relation.Bankruptcy");
+ return jcasType.ll_cas.ll_getStringValue(addr, ((Bankruptcy_Type)jcasType).casFeatCode_bankruptcystatus);}
+
+ /** setter for bankruptcystatus - sets
+ * @generated */
+ public void setBankruptcystatus(String v) {
+ if (Bankruptcy_Type.featOkTst && ((Bankruptcy_Type)jcasType).casFeat_bankruptcystatus == null)
+ jcasType.jcas.throwFeatMissing("bankruptcystatus", "org.apache.uima.calaisType.relation.Bankruptcy");
+ jcasType.ll_cas.ll_setStringValue(addr, ((Bankruptcy_Type)jcasType).casFeatCode_bankruptcystatus, v);}
+
+
+ //*--------------*
+ //* Feature: date
+
+ /** getter for date - gets
+ * @generated */
+ public String getDate() {
+ if (Bankruptcy_Type.featOkTst && ((Bankruptcy_Type)jcasType).casFeat_date == null)
+ jcasType.jcas.throwFeatMissing("date", "org.apache.uima.calaisType.relation.Bankruptcy");
+ return jcasType.ll_cas.ll_getStringValue(addr, ((Bankruptcy_Type)jcasType).casFeatCode_date);}
+
+ /** setter for date - sets
+ * @generated */
+ public void setDate(String v) {
+ if (Bankruptcy_Type.featOkTst && ((Bankruptcy_Type)jcasType).casFeat_date == null)
+ jcasType.jcas.throwFeatMissing("date", "org.apache.uima.calaisType.relation.Bankruptcy");
+ jcasType.ll_cas.ll_setStringValue(addr, ((Bankruptcy_Type)jcasType).casFeatCode_date, v);}
+ }
+
+
\ No newline at end of file
Propchange: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Bankruptcy.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Bankruptcy_Type.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Bankruptcy_Type.java?rev=660553&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Bankruptcy_Type.java (added)
+++ incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Bankruptcy_Type.java Tue May 27 08:13:37 2008
@@ -0,0 +1,123 @@
+
+/* First created by JCasGen Mon May 26 21:43:19 EDT 2008 */
+package org.apache.uima.calaisType.relation;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+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.calaisType.Relation_Type;
+
+/**
+ * Updated by JCasGen Mon May 26 21:43:19 EDT 2008
+ * @generated */
+public class Bankruptcy_Type extends Relation_Type {
+ /** @generated */
+ protected FSGenerator getFSGenerator() {return fsGenerator;}
+ /** @generated */
+ private final FSGenerator fsGenerator =
+ new FSGenerator() {
+ public FeatureStructure createFS(int addr, CASImpl cas) {
+ if (Bankruptcy_Type.this.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = Bankruptcy_Type.this.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new Bankruptcy(addr, Bankruptcy_Type.this);
+ Bankruptcy_Type.this.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else return new Bankruptcy(addr, Bankruptcy_Type.this);
+ }
+ };
+ /** @generated */
+ public final static int typeIndexID = Bankruptcy.typeIndexID;
+ /** @generated
+ @modifiable */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.calaisType.relation.Bankruptcy");
+
+ /** @generated */
+ final Feature casFeat_company;
+ /** @generated */
+ final int casFeatCode_company;
+ /** @generated */
+ public int getCompany(int addr) {
+ if (featOkTst && casFeat_company == null)
+ jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.Bankruptcy");
+ return ll_cas.ll_getRefValue(addr, casFeatCode_company);
+ }
+ /** @generated */
+ public void setCompany(int addr, int v) {
+ if (featOkTst && casFeat_company == null)
+ jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.Bankruptcy");
+ ll_cas.ll_setRefValue(addr, casFeatCode_company, v);}
+
+
+
+ /** @generated */
+ final Feature casFeat_bankruptcystatus;
+ /** @generated */
+ final int casFeatCode_bankruptcystatus;
+ /** @generated */
+ public String getBankruptcystatus(int addr) {
+ if (featOkTst && casFeat_bankruptcystatus == null)
+ jcas.throwFeatMissing("bankruptcystatus", "org.apache.uima.calaisType.relation.Bankruptcy");
+ return ll_cas.ll_getStringValue(addr, casFeatCode_bankruptcystatus);
+ }
+ /** @generated */
+ public void setBankruptcystatus(int addr, String v) {
+ if (featOkTst && casFeat_bankruptcystatus == null)
+ jcas.throwFeatMissing("bankruptcystatus", "org.apache.uima.calaisType.relation.Bankruptcy");
+ ll_cas.ll_setStringValue(addr, casFeatCode_bankruptcystatus, v);}
+
+
+
+ /** @generated */
+ final Feature casFeat_date;
+ /** @generated */
+ final int casFeatCode_date;
+ /** @generated */
+ public String getDate(int addr) {
+ if (featOkTst && casFeat_date == null)
+ jcas.throwFeatMissing("date", "org.apache.uima.calaisType.relation.Bankruptcy");
+ return ll_cas.ll_getStringValue(addr, casFeatCode_date);
+ }
+ /** @generated */
+ public void setDate(int addr, String v) {
+ if (featOkTst && casFeat_date == null)
+ jcas.throwFeatMissing("date", "org.apache.uima.calaisType.relation.Bankruptcy");
+ ll_cas.ll_setStringValue(addr, casFeatCode_date, v);}
+
+
+
+
+
+ /** initialize variables to correspond with Cas Type and Features
+ * @generated */
+ public Bankruptcy_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
+
+
+ casFeat_company = jcas.getRequiredFeatureDE(casType, "company", "org.apache.uima.calaisType.entity.Company", featOkTst);
+ casFeatCode_company = (null == casFeat_company) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_company).getCode();
+
+
+ casFeat_bankruptcystatus = jcas.getRequiredFeatureDE(casType, "bankruptcystatus", "uima.cas.String", featOkTst);
+ casFeatCode_bankruptcystatus = (null == casFeat_bankruptcystatus) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_bankruptcystatus).getCode();
+
+
+ casFeat_date = jcas.getRequiredFeatureDE(casType, "date", "uima.cas.String", featOkTst);
+ casFeatCode_date = (null == casFeat_date) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_date).getCode();
+
+ }
+}
+
+
+
+
\ No newline at end of file
Propchange: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Bankruptcy_Type.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/BusinessRelation.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/BusinessRelation.java?rev=660553&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/BusinessRelation.java (added)
+++ incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/BusinessRelation.java Tue May 27 08:13:37 2008
@@ -0,0 +1,108 @@
+
+
+/* First created by JCasGen Mon May 26 21:43:19 EDT 2008 */
+package org.apache.uima.calaisType.relation;
+
+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.FSArray;
+import org.apache.uima.calaisType.Relation;
+import org.apache.uima.calaisType.entity.Company;
+
+
+/**
+ * Updated by JCasGen Mon May 26 21:43:19 EDT 2008
+ * XML source: C:/a/Eclipse/3.3/apache/OpenCalaisAnnotatorGroovy/src/main/descriptors/CalaisTestCollectionReader.xml
+ * @generated */
+public class BusinessRelation extends Relation {
+ /** @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(BusinessRelation.class);
+ /** @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+ /** @generated */
+ public int getTypeIndexID() {return typeIndexID;}
+
+ /** Never called. Disable default constructor
+ * @generated */
+ protected BusinessRelation() {}
+
+ /** Internal - constructor used by generator
+ * @generated */
+ public BusinessRelation(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public BusinessRelation(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ /** <!-- begin-user-doc -->
+ * Write your own initialization here
+ * <!-- end-user-doc -->
+ @generated modifiable */
+ private void readObject() {}
+
+
+
+ //*--------------*
+ //* Feature: company
+
+ /** getter for company - gets
+ * @generated */
+ public FSArray getCompany() {
+ if (BusinessRelation_Type.featOkTst && ((BusinessRelation_Type)jcasType).casFeat_company == null)
+ jcasType.jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.BusinessRelation");
+ return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((BusinessRelation_Type)jcasType).casFeatCode_company)));}
+
+ /** setter for company - sets
+ * @generated */
+ public void setCompany(FSArray v) {
+ if (BusinessRelation_Type.featOkTst && ((BusinessRelation_Type)jcasType).casFeat_company == null)
+ jcasType.jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.BusinessRelation");
+ jcasType.ll_cas.ll_setRefValue(addr, ((BusinessRelation_Type)jcasType).casFeatCode_company, jcasType.ll_cas.ll_getFSRef(v));}
+
+ /** indexed getter for company - gets an indexed value -
+ * @generated */
+ public Company getCompany(int i) {
+ if (BusinessRelation_Type.featOkTst && ((BusinessRelation_Type)jcasType).casFeat_company == null)
+ jcasType.jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.BusinessRelation");
+ jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((BusinessRelation_Type)jcasType).casFeatCode_company), i);
+ return (Company)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((BusinessRelation_Type)jcasType).casFeatCode_company), i)));}
+
+ /** indexed setter for company - sets an indexed value -
+ * @generated */
+ public void setCompany(int i, Company v) {
+ if (BusinessRelation_Type.featOkTst && ((BusinessRelation_Type)jcasType).casFeat_company == null)
+ jcasType.jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.BusinessRelation");
+ jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((BusinessRelation_Type)jcasType).casFeatCode_company), i);
+ jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((BusinessRelation_Type)jcasType).casFeatCode_company), i, jcasType.ll_cas.ll_getFSRef(v));}
+
+
+ //*--------------*
+ //* Feature: status
+
+ /** getter for status - gets
+ * @generated */
+ public String getStatus() {
+ if (BusinessRelation_Type.featOkTst && ((BusinessRelation_Type)jcasType).casFeat_status == null)
+ jcasType.jcas.throwFeatMissing("status", "org.apache.uima.calaisType.relation.BusinessRelation");
+ return jcasType.ll_cas.ll_getStringValue(addr, ((BusinessRelation_Type)jcasType).casFeatCode_status);}
+
+ /** setter for status - sets
+ * @generated */
+ public void setStatus(String v) {
+ if (BusinessRelation_Type.featOkTst && ((BusinessRelation_Type)jcasType).casFeat_status == null)
+ jcasType.jcas.throwFeatMissing("status", "org.apache.uima.calaisType.relation.BusinessRelation");
+ jcasType.ll_cas.ll_setStringValue(addr, ((BusinessRelation_Type)jcasType).casFeatCode_status, v);}
+ }
+
+
\ No newline at end of file
Propchange: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/BusinessRelation.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/BusinessRelation_Type.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/BusinessRelation_Type.java?rev=660553&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/BusinessRelation_Type.java (added)
+++ incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/BusinessRelation_Type.java Tue May 27 08:13:37 2008
@@ -0,0 +1,120 @@
+
+/* First created by JCasGen Mon May 26 21:43:19 EDT 2008 */
+package org.apache.uima.calaisType.relation;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+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.calaisType.Relation_Type;
+
+/**
+ * Updated by JCasGen Mon May 26 21:43:19 EDT 2008
+ * @generated */
+public class BusinessRelation_Type extends Relation_Type {
+ /** @generated */
+ protected FSGenerator getFSGenerator() {return fsGenerator;}
+ /** @generated */
+ private final FSGenerator fsGenerator =
+ new FSGenerator() {
+ public FeatureStructure createFS(int addr, CASImpl cas) {
+ if (BusinessRelation_Type.this.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = BusinessRelation_Type.this.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new BusinessRelation(addr, BusinessRelation_Type.this);
+ BusinessRelation_Type.this.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else return new BusinessRelation(addr, BusinessRelation_Type.this);
+ }
+ };
+ /** @generated */
+ public final static int typeIndexID = BusinessRelation.typeIndexID;
+ /** @generated
+ @modifiable */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.calaisType.relation.BusinessRelation");
+
+ /** @generated */
+ final Feature casFeat_company;
+ /** @generated */
+ final int casFeatCode_company;
+ /** @generated */
+ public int getCompany(int addr) {
+ if (featOkTst && casFeat_company == null)
+ jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.BusinessRelation");
+ return ll_cas.ll_getRefValue(addr, casFeatCode_company);
+ }
+ /** @generated */
+ public void setCompany(int addr, int v) {
+ if (featOkTst && casFeat_company == null)
+ jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.BusinessRelation");
+ ll_cas.ll_setRefValue(addr, casFeatCode_company, v);}
+
+ /** @generated */
+ public int getCompany(int addr, int i) {
+ if (featOkTst && casFeat_company == null)
+ jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.BusinessRelation");
+ if (lowLevelTypeChecks)
+ return ll_cas.ll_getRefArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_company), i, true);
+ jcas.checkArrayBounds(ll_cas.ll_getRefValue(addr, casFeatCode_company), i);
+ return ll_cas.ll_getRefArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_company), i);
+ }
+
+ /** @generated */
+ public void setCompany(int addr, int i, int v) {
+ if (featOkTst && casFeat_company == null)
+ jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.BusinessRelation");
+ if (lowLevelTypeChecks)
+ ll_cas.ll_setRefArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_company), i, v, true);
+ jcas.checkArrayBounds(ll_cas.ll_getRefValue(addr, casFeatCode_company), i);
+ ll_cas.ll_setRefArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_company), i, v);
+ }
+
+
+ /** @generated */
+ final Feature casFeat_status;
+ /** @generated */
+ final int casFeatCode_status;
+ /** @generated */
+ public String getStatus(int addr) {
+ if (featOkTst && casFeat_status == null)
+ jcas.throwFeatMissing("status", "org.apache.uima.calaisType.relation.BusinessRelation");
+ return ll_cas.ll_getStringValue(addr, casFeatCode_status);
+ }
+ /** @generated */
+ public void setStatus(int addr, String v) {
+ if (featOkTst && casFeat_status == null)
+ jcas.throwFeatMissing("status", "org.apache.uima.calaisType.relation.BusinessRelation");
+ ll_cas.ll_setStringValue(addr, casFeatCode_status, v);}
+
+
+
+
+
+ /** initialize variables to correspond with Cas Type and Features
+ * @generated */
+ public BusinessRelation_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
+
+
+ casFeat_company = jcas.getRequiredFeatureDE(casType, "company", "uima.cas.FSArray", featOkTst);
+ casFeatCode_company = (null == casFeat_company) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_company).getCode();
+
+
+ casFeat_status = jcas.getRequiredFeatureDE(casType, "status", "uima.cas.String", featOkTst);
+ casFeatCode_status = (null == casFeat_status) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_status).getCode();
+
+ }
+}
+
+
+
+
\ No newline at end of file
Propchange: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/BusinessRelation_Type.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Buybacks.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Buybacks.java?rev=660553&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Buybacks.java (added)
+++ incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Buybacks.java Tue May 27 08:13:37 2008
@@ -0,0 +1,91 @@
+
+
+/* First created by JCasGen Mon May 26 21:43:19 EDT 2008 */
+package org.apache.uima.calaisType.relation;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.cas.TOP_Type;
+
+import org.apache.uima.calaisType.Relation;
+import org.apache.uima.calaisType.entity.Company;
+
+
+/**
+ * Updated by JCasGen Mon May 26 21:43:19 EDT 2008
+ * XML source: C:/a/Eclipse/3.3/apache/OpenCalaisAnnotatorGroovy/src/main/descriptors/CalaisTestCollectionReader.xml
+ * @generated */
+public class Buybacks extends Relation {
+ /** @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(Buybacks.class);
+ /** @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+ /** @generated */
+ public int getTypeIndexID() {return typeIndexID;}
+
+ /** Never called. Disable default constructor
+ * @generated */
+ protected Buybacks() {}
+
+ /** Internal - constructor used by generator
+ * @generated */
+ public Buybacks(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public Buybacks(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ /** <!-- begin-user-doc -->
+ * Write your own initialization here
+ * <!-- end-user-doc -->
+ @generated modifiable */
+ private void readObject() {}
+
+
+
+ //*--------------*
+ //* Feature: company
+
+ /** getter for company - gets
+ * @generated */
+ public Company getCompany() {
+ if (Buybacks_Type.featOkTst && ((Buybacks_Type)jcasType).casFeat_company == null)
+ jcasType.jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.Buybacks");
+ return (Company)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Buybacks_Type)jcasType).casFeatCode_company)));}
+
+ /** setter for company - sets
+ * @generated */
+ public void setCompany(Company v) {
+ if (Buybacks_Type.featOkTst && ((Buybacks_Type)jcasType).casFeat_company == null)
+ jcasType.jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.Buybacks");
+ jcasType.ll_cas.ll_setRefValue(addr, ((Buybacks_Type)jcasType).casFeatCode_company, jcasType.ll_cas.ll_getFSRef(v));}
+
+
+ //*--------------*
+ //* Feature: date
+
+ /** getter for date - gets
+ * @generated */
+ public String getDate() {
+ if (Buybacks_Type.featOkTst && ((Buybacks_Type)jcasType).casFeat_date == null)
+ jcasType.jcas.throwFeatMissing("date", "org.apache.uima.calaisType.relation.Buybacks");
+ return jcasType.ll_cas.ll_getStringValue(addr, ((Buybacks_Type)jcasType).casFeatCode_date);}
+
+ /** setter for date - sets
+ * @generated */
+ public void setDate(String v) {
+ if (Buybacks_Type.featOkTst && ((Buybacks_Type)jcasType).casFeat_date == null)
+ jcasType.jcas.throwFeatMissing("date", "org.apache.uima.calaisType.relation.Buybacks");
+ jcasType.ll_cas.ll_setStringValue(addr, ((Buybacks_Type)jcasType).casFeatCode_date, v);}
+ }
+
+
\ No newline at end of file
Propchange: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Buybacks.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Buybacks_Type.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Buybacks_Type.java?rev=660553&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Buybacks_Type.java (added)
+++ incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Buybacks_Type.java Tue May 27 08:13:37 2008
@@ -0,0 +1,101 @@
+
+/* First created by JCasGen Mon May 26 21:43:19 EDT 2008 */
+package org.apache.uima.calaisType.relation;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+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.calaisType.Relation_Type;
+
+/**
+ * Updated by JCasGen Mon May 26 21:43:19 EDT 2008
+ * @generated */
+public class Buybacks_Type extends Relation_Type {
+ /** @generated */
+ protected FSGenerator getFSGenerator() {return fsGenerator;}
+ /** @generated */
+ private final FSGenerator fsGenerator =
+ new FSGenerator() {
+ public FeatureStructure createFS(int addr, CASImpl cas) {
+ if (Buybacks_Type.this.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = Buybacks_Type.this.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new Buybacks(addr, Buybacks_Type.this);
+ Buybacks_Type.this.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else return new Buybacks(addr, Buybacks_Type.this);
+ }
+ };
+ /** @generated */
+ public final static int typeIndexID = Buybacks.typeIndexID;
+ /** @generated
+ @modifiable */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.calaisType.relation.Buybacks");
+
+ /** @generated */
+ final Feature casFeat_company;
+ /** @generated */
+ final int casFeatCode_company;
+ /** @generated */
+ public int getCompany(int addr) {
+ if (featOkTst && casFeat_company == null)
+ jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.Buybacks");
+ return ll_cas.ll_getRefValue(addr, casFeatCode_company);
+ }
+ /** @generated */
+ public void setCompany(int addr, int v) {
+ if (featOkTst && casFeat_company == null)
+ jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.Buybacks");
+ ll_cas.ll_setRefValue(addr, casFeatCode_company, v);}
+
+
+
+ /** @generated */
+ final Feature casFeat_date;
+ /** @generated */
+ final int casFeatCode_date;
+ /** @generated */
+ public String getDate(int addr) {
+ if (featOkTst && casFeat_date == null)
+ jcas.throwFeatMissing("date", "org.apache.uima.calaisType.relation.Buybacks");
+ return ll_cas.ll_getStringValue(addr, casFeatCode_date);
+ }
+ /** @generated */
+ public void setDate(int addr, String v) {
+ if (featOkTst && casFeat_date == null)
+ jcas.throwFeatMissing("date", "org.apache.uima.calaisType.relation.Buybacks");
+ ll_cas.ll_setStringValue(addr, casFeatCode_date, v);}
+
+
+
+
+
+ /** initialize variables to correspond with Cas Type and Features
+ * @generated */
+ public Buybacks_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
+
+
+ casFeat_company = jcas.getRequiredFeatureDE(casType, "company", "org.apache.uima.calaisType.entity.Company", featOkTst);
+ casFeatCode_company = (null == casFeat_company) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_company).getCode();
+
+
+ casFeat_date = jcas.getRequiredFeatureDE(casType, "date", "uima.cas.String", featOkTst);
+ casFeatCode_date = (null == casFeat_date) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_date).getCode();
+
+ }
+}
+
+
+
+
\ No newline at end of file
Propchange: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Buybacks_Type.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/CompanyAffiliates.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/CompanyAffiliates.java?rev=660553&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/CompanyAffiliates.java (added)
+++ incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/CompanyAffiliates.java Tue May 27 08:13:37 2008
@@ -0,0 +1,109 @@
+
+
+/* First created by JCasGen Mon May 26 21:43:19 EDT 2008 */
+package org.apache.uima.calaisType.relation;
+
+import org.apache.uima.jcas.JCas;
+import org.apache.uima.jcas.JCasRegistry;
+import org.apache.uima.jcas.cas.TOP_Type;
+
+import org.apache.uima.calaisType.Relation;
+import org.apache.uima.calaisType.entity.Company;
+
+
+/**
+ * Updated by JCasGen Mon May 26 21:43:19 EDT 2008
+ * XML source: C:/a/Eclipse/3.3/apache/OpenCalaisAnnotatorGroovy/src/main/descriptors/CalaisTestCollectionReader.xml
+ * @generated */
+public class CompanyAffiliates extends Relation {
+ /** @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(CompanyAffiliates.class);
+ /** @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+ /** @generated */
+ public int getTypeIndexID() {return typeIndexID;}
+
+ /** Never called. Disable default constructor
+ * @generated */
+ protected CompanyAffiliates() {}
+
+ /** Internal - constructor used by generator
+ * @generated */
+ public CompanyAffiliates(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public CompanyAffiliates(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ /** <!-- begin-user-doc -->
+ * Write your own initialization here
+ * <!-- end-user-doc -->
+ @generated modifiable */
+ private void readObject() {}
+
+
+
+ //*--------------*
+ //* Feature: company_affiliate
+
+ /** getter for company_affiliate - gets
+ * @generated */
+ public Company getCompany_affiliate() {
+ if (CompanyAffiliates_Type.featOkTst && ((CompanyAffiliates_Type)jcasType).casFeat_company_affiliate == null)
+ jcasType.jcas.throwFeatMissing("company_affiliate", "org.apache.uima.calaisType.relation.CompanyAffiliates");
+ return (Company)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((CompanyAffiliates_Type)jcasType).casFeatCode_company_affiliate)));}
+
+ /** setter for company_affiliate - sets
+ * @generated */
+ public void setCompany_affiliate(Company v) {
+ if (CompanyAffiliates_Type.featOkTst && ((CompanyAffiliates_Type)jcasType).casFeat_company_affiliate == null)
+ jcasType.jcas.throwFeatMissing("company_affiliate", "org.apache.uima.calaisType.relation.CompanyAffiliates");
+ jcasType.ll_cas.ll_setRefValue(addr, ((CompanyAffiliates_Type)jcasType).casFeatCode_company_affiliate, jcasType.ll_cas.ll_getFSRef(v));}
+
+
+ //*--------------*
+ //* Feature: company_parent
+
+ /** getter for company_parent - gets
+ * @generated */
+ public Company getCompany_parent() {
+ if (CompanyAffiliates_Type.featOkTst && ((CompanyAffiliates_Type)jcasType).casFeat_company_parent == null)
+ jcasType.jcas.throwFeatMissing("company_parent", "org.apache.uima.calaisType.relation.CompanyAffiliates");
+ return (Company)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((CompanyAffiliates_Type)jcasType).casFeatCode_company_parent)));}
+
+ /** setter for company_parent - sets
+ * @generated */
+ public void setCompany_parent(Company v) {
+ if (CompanyAffiliates_Type.featOkTst && ((CompanyAffiliates_Type)jcasType).casFeat_company_parent == null)
+ jcasType.jcas.throwFeatMissing("company_parent", "org.apache.uima.calaisType.relation.CompanyAffiliates");
+ jcasType.ll_cas.ll_setRefValue(addr, ((CompanyAffiliates_Type)jcasType).casFeatCode_company_parent, jcasType.ll_cas.ll_getFSRef(v));}
+
+
+ //*--------------*
+ //* Feature: relation
+
+ /** getter for relation - gets
+ * @generated */
+ public String getRelation() {
+ if (CompanyAffiliates_Type.featOkTst && ((CompanyAffiliates_Type)jcasType).casFeat_relation == null)
+ jcasType.jcas.throwFeatMissing("relation", "org.apache.uima.calaisType.relation.CompanyAffiliates");
+ return jcasType.ll_cas.ll_getStringValue(addr, ((CompanyAffiliates_Type)jcasType).casFeatCode_relation);}
+
+ /** setter for relation - sets
+ * @generated */
+ public void setRelation(String v) {
+ if (CompanyAffiliates_Type.featOkTst && ((CompanyAffiliates_Type)jcasType).casFeat_relation == null)
+ jcasType.jcas.throwFeatMissing("relation", "org.apache.uima.calaisType.relation.CompanyAffiliates");
+ jcasType.ll_cas.ll_setStringValue(addr, ((CompanyAffiliates_Type)jcasType).casFeatCode_relation, v);}
+ }
+
+
\ No newline at end of file
Propchange: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/CompanyAffiliates.java
------------------------------------------------------------------------------
svn:eol-style = native