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 [9/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...
Added: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/IPO_Type.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/IPO_Type.java?rev=660553&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/IPO_Type.java (added)
+++ incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/IPO_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 IPO_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 (IPO_Type.this.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = IPO_Type.this.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new IPO(addr, IPO_Type.this);
+ IPO_Type.this.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else return new IPO(addr, IPO_Type.this);
+ }
+ };
+ /** @generated */
+ public final static int typeIndexID = IPO.typeIndexID;
+ /** @generated
+ @modifiable */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.calaisType.relation.IPO");
+
+ /** @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.IPO");
+ 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.IPO");
+ ll_cas.ll_setRefValue(addr, casFeatCode_company, 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.IPO");
+ 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.IPO");
+ ll_cas.ll_setStringValue(addr, casFeatCode_status, 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.IPO");
+ 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.IPO");
+ ll_cas.ll_setStringValue(addr, casFeatCode_date, v);}
+
+
+
+
+
+ /** initialize variables to correspond with Cas Type and Features
+ * @generated */
+ public IPO_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_status = jcas.getRequiredFeatureDE(casType, "status", "uima.cas.String", featOkTst);
+ casFeatCode_status = (null == casFeat_status) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_status).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/IPO_Type.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/JointVenture.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/JointVenture.java?rev=660553&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/JointVenture.java (added)
+++ incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/JointVenture.java Tue May 27 08:13:37 2008
@@ -0,0 +1,126 @@
+
+
+/* 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 JointVenture extends Relation {
+ /** @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(JointVenture.class);
+ /** @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+ /** @generated */
+ public int getTypeIndexID() {return typeIndexID;}
+
+ /** Never called. Disable default constructor
+ * @generated */
+ protected JointVenture() {}
+
+ /** Internal - constructor used by generator
+ * @generated */
+ public JointVenture(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public JointVenture(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 (JointVenture_Type.featOkTst && ((JointVenture_Type)jcasType).casFeat_company == null)
+ jcasType.jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.JointVenture");
+ return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((JointVenture_Type)jcasType).casFeatCode_company)));}
+
+ /** setter for company - sets
+ * @generated */
+ public void setCompany(FSArray v) {
+ if (JointVenture_Type.featOkTst && ((JointVenture_Type)jcasType).casFeat_company == null)
+ jcasType.jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.JointVenture");
+ jcasType.ll_cas.ll_setRefValue(addr, ((JointVenture_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 (JointVenture_Type.featOkTst && ((JointVenture_Type)jcasType).casFeat_company == null)
+ jcasType.jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.JointVenture");
+ jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((JointVenture_Type)jcasType).casFeatCode_company), i);
+ return (Company)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((JointVenture_Type)jcasType).casFeatCode_company), i)));}
+
+ /** indexed setter for company - sets an indexed value -
+ * @generated */
+ public void setCompany(int i, Company v) {
+ if (JointVenture_Type.featOkTst && ((JointVenture_Type)jcasType).casFeat_company == null)
+ jcasType.jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.JointVenture");
+ jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((JointVenture_Type)jcasType).casFeatCode_company), i);
+ jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((JointVenture_Type)jcasType).casFeatCode_company), i, jcasType.ll_cas.ll_getFSRef(v));}
+
+
+ //*--------------*
+ //* Feature: company_newname
+
+ /** getter for company_newname - gets
+ * @generated */
+ public String getCompany_newname() {
+ if (JointVenture_Type.featOkTst && ((JointVenture_Type)jcasType).casFeat_company_newname == null)
+ jcasType.jcas.throwFeatMissing("company_newname", "org.apache.uima.calaisType.relation.JointVenture");
+ return jcasType.ll_cas.ll_getStringValue(addr, ((JointVenture_Type)jcasType).casFeatCode_company_newname);}
+
+ /** setter for company_newname - sets
+ * @generated */
+ public void setCompany_newname(String v) {
+ if (JointVenture_Type.featOkTst && ((JointVenture_Type)jcasType).casFeat_company_newname == null)
+ jcasType.jcas.throwFeatMissing("company_newname", "org.apache.uima.calaisType.relation.JointVenture");
+ jcasType.ll_cas.ll_setStringValue(addr, ((JointVenture_Type)jcasType).casFeatCode_company_newname, v);}
+
+
+ //*--------------*
+ //* Feature: status
+
+ /** getter for status - gets
+ * @generated */
+ public String getStatus() {
+ if (JointVenture_Type.featOkTst && ((JointVenture_Type)jcasType).casFeat_status == null)
+ jcasType.jcas.throwFeatMissing("status", "org.apache.uima.calaisType.relation.JointVenture");
+ return jcasType.ll_cas.ll_getStringValue(addr, ((JointVenture_Type)jcasType).casFeatCode_status);}
+
+ /** setter for status - sets
+ * @generated */
+ public void setStatus(String v) {
+ if (JointVenture_Type.featOkTst && ((JointVenture_Type)jcasType).casFeat_status == null)
+ jcasType.jcas.throwFeatMissing("status", "org.apache.uima.calaisType.relation.JointVenture");
+ jcasType.ll_cas.ll_setStringValue(addr, ((JointVenture_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/JointVenture.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/JointVenture_Type.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/JointVenture_Type.java?rev=660553&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/JointVenture_Type.java (added)
+++ incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/JointVenture_Type.java Tue May 27 08:13:37 2008
@@ -0,0 +1,142 @@
+
+/* 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 JointVenture_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 (JointVenture_Type.this.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = JointVenture_Type.this.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new JointVenture(addr, JointVenture_Type.this);
+ JointVenture_Type.this.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else return new JointVenture(addr, JointVenture_Type.this);
+ }
+ };
+ /** @generated */
+ public final static int typeIndexID = JointVenture.typeIndexID;
+ /** @generated
+ @modifiable */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.calaisType.relation.JointVenture");
+
+ /** @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.JointVenture");
+ 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.JointVenture");
+ 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.JointVenture");
+ 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.JointVenture");
+ 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_company_newname;
+ /** @generated */
+ final int casFeatCode_company_newname;
+ /** @generated */
+ public String getCompany_newname(int addr) {
+ if (featOkTst && casFeat_company_newname == null)
+ jcas.throwFeatMissing("company_newname", "org.apache.uima.calaisType.relation.JointVenture");
+ return ll_cas.ll_getStringValue(addr, casFeatCode_company_newname);
+ }
+ /** @generated */
+ public void setCompany_newname(int addr, String v) {
+ if (featOkTst && casFeat_company_newname == null)
+ jcas.throwFeatMissing("company_newname", "org.apache.uima.calaisType.relation.JointVenture");
+ ll_cas.ll_setStringValue(addr, casFeatCode_company_newname, 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.JointVenture");
+ 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.JointVenture");
+ ll_cas.ll_setStringValue(addr, casFeatCode_status, v);}
+
+
+
+
+
+ /** initialize variables to correspond with Cas Type and Features
+ * @generated */
+ public JointVenture_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_company_newname = jcas.getRequiredFeatureDE(casType, "company_newname", "uima.cas.String", featOkTst);
+ casFeatCode_company_newname = (null == casFeat_company_newname) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_company_newname).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/JointVenture_Type.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/ManagementChange.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/ManagementChange.java?rev=660553&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/ManagementChange.java (added)
+++ incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/ManagementChange.java Tue May 27 08:13:37 2008
@@ -0,0 +1,147 @@
+
+
+/* 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.Organization;
+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 ManagementChange extends Relation {
+ /** @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(ManagementChange.class);
+ /** @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+ /** @generated */
+ public int getTypeIndexID() {return typeIndexID;}
+
+ /** Never called. Disable default constructor
+ * @generated */
+ protected ManagementChange() {}
+
+ /** Internal - constructor used by generator
+ * @generated */
+ public ManagementChange(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public ManagementChange(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 (ManagementChange_Type.featOkTst && ((ManagementChange_Type)jcasType).casFeat_company == null)
+ jcasType.jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.ManagementChange");
+ return (Company)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((ManagementChange_Type)jcasType).casFeatCode_company)));}
+
+ /** setter for company - sets
+ * @generated */
+ public void setCompany(Company v) {
+ if (ManagementChange_Type.featOkTst && ((ManagementChange_Type)jcasType).casFeat_company == null)
+ jcasType.jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.ManagementChange");
+ jcasType.ll_cas.ll_setRefValue(addr, ((ManagementChange_Type)jcasType).casFeatCode_company, jcasType.ll_cas.ll_getFSRef(v));}
+
+
+ //*--------------*
+ //* Feature: organization
+
+ /** getter for organization - gets
+ * @generated */
+ public Organization getOrganization() {
+ if (ManagementChange_Type.featOkTst && ((ManagementChange_Type)jcasType).casFeat_organization == null)
+ jcasType.jcas.throwFeatMissing("organization", "org.apache.uima.calaisType.relation.ManagementChange");
+ return (Organization)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((ManagementChange_Type)jcasType).casFeatCode_organization)));}
+
+ /** setter for organization - sets
+ * @generated */
+ public void setOrganization(Organization v) {
+ if (ManagementChange_Type.featOkTst && ((ManagementChange_Type)jcasType).casFeat_organization == null)
+ jcasType.jcas.throwFeatMissing("organization", "org.apache.uima.calaisType.relation.ManagementChange");
+ jcasType.ll_cas.ll_setRefValue(addr, ((ManagementChange_Type)jcasType).casFeatCode_organization, jcasType.ll_cas.ll_getFSRef(v));}
+
+
+ //*--------------*
+ //* Feature: person
+
+ /** getter for person - gets
+ * @generated */
+ public Person getPerson() {
+ if (ManagementChange_Type.featOkTst && ((ManagementChange_Type)jcasType).casFeat_person == null)
+ jcasType.jcas.throwFeatMissing("person", "org.apache.uima.calaisType.relation.ManagementChange");
+ return (Person)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((ManagementChange_Type)jcasType).casFeatCode_person)));}
+
+ /** setter for person - sets
+ * @generated */
+ public void setPerson(Person v) {
+ if (ManagementChange_Type.featOkTst && ((ManagementChange_Type)jcasType).casFeat_person == null)
+ jcasType.jcas.throwFeatMissing("person", "org.apache.uima.calaisType.relation.ManagementChange");
+ jcasType.ll_cas.ll_setRefValue(addr, ((ManagementChange_Type)jcasType).casFeatCode_person, jcasType.ll_cas.ll_getFSRef(v));}
+
+
+ //*--------------*
+ //* Feature: position
+
+ /** getter for position - gets
+ * @generated */
+ public String getPosition() {
+ if (ManagementChange_Type.featOkTst && ((ManagementChange_Type)jcasType).casFeat_position == null)
+ jcasType.jcas.throwFeatMissing("position", "org.apache.uima.calaisType.relation.ManagementChange");
+ return jcasType.ll_cas.ll_getStringValue(addr, ((ManagementChange_Type)jcasType).casFeatCode_position);}
+
+ /** setter for position - sets
+ * @generated */
+ public void setPosition(String v) {
+ if (ManagementChange_Type.featOkTst && ((ManagementChange_Type)jcasType).casFeat_position == null)
+ jcasType.jcas.throwFeatMissing("position", "org.apache.uima.calaisType.relation.ManagementChange");
+ jcasType.ll_cas.ll_setStringValue(addr, ((ManagementChange_Type)jcasType).casFeatCode_position, v);}
+
+
+ //*--------------*
+ //* Feature: action
+
+ /** getter for action - gets
+ * @generated */
+ public String getAction() {
+ if (ManagementChange_Type.featOkTst && ((ManagementChange_Type)jcasType).casFeat_action == null)
+ jcasType.jcas.throwFeatMissing("action", "org.apache.uima.calaisType.relation.ManagementChange");
+ return jcasType.ll_cas.ll_getStringValue(addr, ((ManagementChange_Type)jcasType).casFeatCode_action);}
+
+ /** setter for action - sets
+ * @generated */
+ public void setAction(String v) {
+ if (ManagementChange_Type.featOkTst && ((ManagementChange_Type)jcasType).casFeat_action == null)
+ jcasType.jcas.throwFeatMissing("action", "org.apache.uima.calaisType.relation.ManagementChange");
+ jcasType.ll_cas.ll_setStringValue(addr, ((ManagementChange_Type)jcasType).casFeatCode_action, v);}
+ }
+
+
\ No newline at end of file
Propchange: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/ManagementChange.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/ManagementChange_Type.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/ManagementChange_Type.java?rev=660553&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/ManagementChange_Type.java (added)
+++ incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/ManagementChange_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 ManagementChange_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 (ManagementChange_Type.this.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = ManagementChange_Type.this.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new ManagementChange(addr, ManagementChange_Type.this);
+ ManagementChange_Type.this.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else return new ManagementChange(addr, ManagementChange_Type.this);
+ }
+ };
+ /** @generated */
+ public final static int typeIndexID = ManagementChange.typeIndexID;
+ /** @generated
+ @modifiable */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.calaisType.relation.ManagementChange");
+
+ /** @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.ManagementChange");
+ 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.ManagementChange");
+ ll_cas.ll_setRefValue(addr, casFeatCode_company, v);}
+
+
+
+ /** @generated */
+ final Feature casFeat_organization;
+ /** @generated */
+ final int casFeatCode_organization;
+ /** @generated */
+ public int getOrganization(int addr) {
+ if (featOkTst && casFeat_organization == null)
+ jcas.throwFeatMissing("organization", "org.apache.uima.calaisType.relation.ManagementChange");
+ return ll_cas.ll_getRefValue(addr, casFeatCode_organization);
+ }
+ /** @generated */
+ public void setOrganization(int addr, int v) {
+ if (featOkTst && casFeat_organization == null)
+ jcas.throwFeatMissing("organization", "org.apache.uima.calaisType.relation.ManagementChange");
+ ll_cas.ll_setRefValue(addr, casFeatCode_organization, v);}
+
+
+
+ /** @generated */
+ final Feature casFeat_person;
+ /** @generated */
+ final int casFeatCode_person;
+ /** @generated */
+ public int getPerson(int addr) {
+ if (featOkTst && casFeat_person == null)
+ jcas.throwFeatMissing("person", "org.apache.uima.calaisType.relation.ManagementChange");
+ return ll_cas.ll_getRefValue(addr, casFeatCode_person);
+ }
+ /** @generated */
+ public void setPerson(int addr, int v) {
+ if (featOkTst && casFeat_person == null)
+ jcas.throwFeatMissing("person", "org.apache.uima.calaisType.relation.ManagementChange");
+ ll_cas.ll_setRefValue(addr, casFeatCode_person, v);}
+
+
+
+ /** @generated */
+ final Feature casFeat_position;
+ /** @generated */
+ final int casFeatCode_position;
+ /** @generated */
+ public String getPosition(int addr) {
+ if (featOkTst && casFeat_position == null)
+ jcas.throwFeatMissing("position", "org.apache.uima.calaisType.relation.ManagementChange");
+ return ll_cas.ll_getStringValue(addr, casFeatCode_position);
+ }
+ /** @generated */
+ public void setPosition(int addr, String v) {
+ if (featOkTst && casFeat_position == null)
+ jcas.throwFeatMissing("position", "org.apache.uima.calaisType.relation.ManagementChange");
+ ll_cas.ll_setStringValue(addr, casFeatCode_position, v);}
+
+
+
+ /** @generated */
+ final Feature casFeat_action;
+ /** @generated */
+ final int casFeatCode_action;
+ /** @generated */
+ public String getAction(int addr) {
+ if (featOkTst && casFeat_action == null)
+ jcas.throwFeatMissing("action", "org.apache.uima.calaisType.relation.ManagementChange");
+ return ll_cas.ll_getStringValue(addr, casFeatCode_action);
+ }
+ /** @generated */
+ public void setAction(int addr, String v) {
+ if (featOkTst && casFeat_action == null)
+ jcas.throwFeatMissing("action", "org.apache.uima.calaisType.relation.ManagementChange");
+ ll_cas.ll_setStringValue(addr, casFeatCode_action, v);}
+
+
+
+
+
+ /** initialize variables to correspond with Cas Type and Features
+ * @generated */
+ public ManagementChange_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_organization = jcas.getRequiredFeatureDE(casType, "organization", "org.apache.uima.calaisType.entity.Organization", featOkTst);
+ casFeatCode_organization = (null == casFeat_organization) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_organization).getCode();
+
+
+ casFeat_person = jcas.getRequiredFeatureDE(casType, "person", "org.apache.uima.calaisType.entity.Person", featOkTst);
+ casFeatCode_person = (null == casFeat_person) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_person).getCode();
+
+
+ casFeat_position = jcas.getRequiredFeatureDE(casType, "position", "uima.cas.String", featOkTst);
+ casFeatCode_position = (null == casFeat_position) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_position).getCode();
+
+
+ casFeat_action = jcas.getRequiredFeatureDE(casType, "action", "uima.cas.String", featOkTst);
+ casFeatCode_action = (null == casFeat_action) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_action).getCode();
+
+ }
+}
+
+
+
+
\ No newline at end of file
Propchange: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/ManagementChange_Type.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Merger.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Merger.java?rev=660553&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Merger.java (added)
+++ incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Merger.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 Merger extends Relation {
+ /** @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(Merger.class);
+ /** @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+ /** @generated */
+ public int getTypeIndexID() {return typeIndexID;}
+
+ /** Never called. Disable default constructor
+ * @generated */
+ protected Merger() {}
+
+ /** Internal - constructor used by generator
+ * @generated */
+ public Merger(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public Merger(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 (Merger_Type.featOkTst && ((Merger_Type)jcasType).casFeat_company == null)
+ jcasType.jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.Merger");
+ return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Merger_Type)jcasType).casFeatCode_company)));}
+
+ /** setter for company - sets
+ * @generated */
+ public void setCompany(FSArray v) {
+ if (Merger_Type.featOkTst && ((Merger_Type)jcasType).casFeat_company == null)
+ jcasType.jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.Merger");
+ jcasType.ll_cas.ll_setRefValue(addr, ((Merger_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 (Merger_Type.featOkTst && ((Merger_Type)jcasType).casFeat_company == null)
+ jcasType.jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.Merger");
+ jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Merger_Type)jcasType).casFeatCode_company), i);
+ return (Company)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((Merger_Type)jcasType).casFeatCode_company), i)));}
+
+ /** indexed setter for company - sets an indexed value -
+ * @generated */
+ public void setCompany(int i, Company v) {
+ if (Merger_Type.featOkTst && ((Merger_Type)jcasType).casFeat_company == null)
+ jcasType.jcas.throwFeatMissing("company", "org.apache.uima.calaisType.relation.Merger");
+ jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Merger_Type)jcasType).casFeatCode_company), i);
+ jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((Merger_Type)jcasType).casFeatCode_company), i, jcasType.ll_cas.ll_getFSRef(v));}
+
+
+ //*--------------*
+ //* Feature: status
+
+ /** getter for status - gets
+ * @generated */
+ public String getStatus() {
+ if (Merger_Type.featOkTst && ((Merger_Type)jcasType).casFeat_status == null)
+ jcasType.jcas.throwFeatMissing("status", "org.apache.uima.calaisType.relation.Merger");
+ return jcasType.ll_cas.ll_getStringValue(addr, ((Merger_Type)jcasType).casFeatCode_status);}
+
+ /** setter for status - sets
+ * @generated */
+ public void setStatus(String v) {
+ if (Merger_Type.featOkTst && ((Merger_Type)jcasType).casFeat_status == null)
+ jcasType.jcas.throwFeatMissing("status", "org.apache.uima.calaisType.relation.Merger");
+ jcasType.ll_cas.ll_setStringValue(addr, ((Merger_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/Merger.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Merger_Type.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Merger_Type.java?rev=660553&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Merger_Type.java (added)
+++ incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/Merger_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 Merger_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 (Merger_Type.this.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = Merger_Type.this.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new Merger(addr, Merger_Type.this);
+ Merger_Type.this.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else return new Merger(addr, Merger_Type.this);
+ }
+ };
+ /** @generated */
+ public final static int typeIndexID = Merger.typeIndexID;
+ /** @generated
+ @modifiable */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.calaisType.relation.Merger");
+
+ /** @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.Merger");
+ 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.Merger");
+ 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.Merger");
+ 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.Merger");
+ 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.Merger");
+ 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.Merger");
+ ll_cas.ll_setStringValue(addr, casFeatCode_status, v);}
+
+
+
+
+
+ /** initialize variables to correspond with Cas Type and Features
+ * @generated */
+ public Merger_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/Merger_Type.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/PersonEducation.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/PersonEducation.java?rev=660553&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/PersonEducation.java (added)
+++ incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/PersonEducation.java Tue May 27 08:13:37 2008
@@ -0,0 +1,127 @@
+
+
+/* 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.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 PersonEducation extends Relation {
+ /** @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(PersonEducation.class);
+ /** @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+ /** @generated */
+ public int getTypeIndexID() {return typeIndexID;}
+
+ /** Never called. Disable default constructor
+ * @generated */
+ protected PersonEducation() {}
+
+ /** Internal - constructor used by generator
+ * @generated */
+ public PersonEducation(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public PersonEducation(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ /** <!-- begin-user-doc -->
+ * Write your own initialization here
+ * <!-- end-user-doc -->
+ @generated modifiable */
+ private void readObject() {}
+
+
+
+ //*--------------*
+ //* Feature: person
+
+ /** getter for person - gets
+ * @generated */
+ public Person getPerson() {
+ if (PersonEducation_Type.featOkTst && ((PersonEducation_Type)jcasType).casFeat_person == null)
+ jcasType.jcas.throwFeatMissing("person", "org.apache.uima.calaisType.relation.PersonEducation");
+ return (Person)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((PersonEducation_Type)jcasType).casFeatCode_person)));}
+
+ /** setter for person - sets
+ * @generated */
+ public void setPerson(Person v) {
+ if (PersonEducation_Type.featOkTst && ((PersonEducation_Type)jcasType).casFeat_person == null)
+ jcasType.jcas.throwFeatMissing("person", "org.apache.uima.calaisType.relation.PersonEducation");
+ jcasType.ll_cas.ll_setRefValue(addr, ((PersonEducation_Type)jcasType).casFeatCode_person, jcasType.ll_cas.ll_getFSRef(v));}
+
+
+ //*--------------*
+ //* Feature: certification
+
+ /** getter for certification - gets
+ * @generated */
+ public String getCertification() {
+ if (PersonEducation_Type.featOkTst && ((PersonEducation_Type)jcasType).casFeat_certification == null)
+ jcasType.jcas.throwFeatMissing("certification", "org.apache.uima.calaisType.relation.PersonEducation");
+ return jcasType.ll_cas.ll_getStringValue(addr, ((PersonEducation_Type)jcasType).casFeatCode_certification);}
+
+ /** setter for certification - sets
+ * @generated */
+ public void setCertification(String v) {
+ if (PersonEducation_Type.featOkTst && ((PersonEducation_Type)jcasType).casFeat_certification == null)
+ jcasType.jcas.throwFeatMissing("certification", "org.apache.uima.calaisType.relation.PersonEducation");
+ jcasType.ll_cas.ll_setStringValue(addr, ((PersonEducation_Type)jcasType).casFeatCode_certification, v);}
+
+
+ //*--------------*
+ //* Feature: degree
+
+ /** getter for degree - gets
+ * @generated */
+ public String getDegree() {
+ if (PersonEducation_Type.featOkTst && ((PersonEducation_Type)jcasType).casFeat_degree == null)
+ jcasType.jcas.throwFeatMissing("degree", "org.apache.uima.calaisType.relation.PersonEducation");
+ return jcasType.ll_cas.ll_getStringValue(addr, ((PersonEducation_Type)jcasType).casFeatCode_degree);}
+
+ /** setter for degree - sets
+ * @generated */
+ public void setDegree(String v) {
+ if (PersonEducation_Type.featOkTst && ((PersonEducation_Type)jcasType).casFeat_degree == null)
+ jcasType.jcas.throwFeatMissing("degree", "org.apache.uima.calaisType.relation.PersonEducation");
+ jcasType.ll_cas.ll_setStringValue(addr, ((PersonEducation_Type)jcasType).casFeatCode_degree, v);}
+
+
+ //*--------------*
+ //* Feature: schoolororganization
+
+ /** getter for schoolororganization - gets
+ * @generated */
+ public String getSchoolororganization() {
+ if (PersonEducation_Type.featOkTst && ((PersonEducation_Type)jcasType).casFeat_schoolororganization == null)
+ jcasType.jcas.throwFeatMissing("schoolororganization", "org.apache.uima.calaisType.relation.PersonEducation");
+ return jcasType.ll_cas.ll_getStringValue(addr, ((PersonEducation_Type)jcasType).casFeatCode_schoolororganization);}
+
+ /** setter for schoolororganization - sets
+ * @generated */
+ public void setSchoolororganization(String v) {
+ if (PersonEducation_Type.featOkTst && ((PersonEducation_Type)jcasType).casFeat_schoolororganization == null)
+ jcasType.jcas.throwFeatMissing("schoolororganization", "org.apache.uima.calaisType.relation.PersonEducation");
+ jcasType.ll_cas.ll_setStringValue(addr, ((PersonEducation_Type)jcasType).casFeatCode_schoolororganization, v);}
+ }
+
+
\ No newline at end of file
Propchange: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/PersonEducation.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/PersonEducation_Type.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/PersonEducation_Type.java?rev=660553&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/PersonEducation_Type.java (added)
+++ incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/PersonEducation_Type.java Tue May 27 08:13:37 2008
@@ -0,0 +1,145 @@
+
+/* 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 PersonEducation_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 (PersonEducation_Type.this.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = PersonEducation_Type.this.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new PersonEducation(addr, PersonEducation_Type.this);
+ PersonEducation_Type.this.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else return new PersonEducation(addr, PersonEducation_Type.this);
+ }
+ };
+ /** @generated */
+ public final static int typeIndexID = PersonEducation.typeIndexID;
+ /** @generated
+ @modifiable */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.calaisType.relation.PersonEducation");
+
+ /** @generated */
+ final Feature casFeat_person;
+ /** @generated */
+ final int casFeatCode_person;
+ /** @generated */
+ public int getPerson(int addr) {
+ if (featOkTst && casFeat_person == null)
+ jcas.throwFeatMissing("person", "org.apache.uima.calaisType.relation.PersonEducation");
+ return ll_cas.ll_getRefValue(addr, casFeatCode_person);
+ }
+ /** @generated */
+ public void setPerson(int addr, int v) {
+ if (featOkTst && casFeat_person == null)
+ jcas.throwFeatMissing("person", "org.apache.uima.calaisType.relation.PersonEducation");
+ ll_cas.ll_setRefValue(addr, casFeatCode_person, v);}
+
+
+
+ /** @generated */
+ final Feature casFeat_certification;
+ /** @generated */
+ final int casFeatCode_certification;
+ /** @generated */
+ public String getCertification(int addr) {
+ if (featOkTst && casFeat_certification == null)
+ jcas.throwFeatMissing("certification", "org.apache.uima.calaisType.relation.PersonEducation");
+ return ll_cas.ll_getStringValue(addr, casFeatCode_certification);
+ }
+ /** @generated */
+ public void setCertification(int addr, String v) {
+ if (featOkTst && casFeat_certification == null)
+ jcas.throwFeatMissing("certification", "org.apache.uima.calaisType.relation.PersonEducation");
+ ll_cas.ll_setStringValue(addr, casFeatCode_certification, v);}
+
+
+
+ /** @generated */
+ final Feature casFeat_degree;
+ /** @generated */
+ final int casFeatCode_degree;
+ /** @generated */
+ public String getDegree(int addr) {
+ if (featOkTst && casFeat_degree == null)
+ jcas.throwFeatMissing("degree", "org.apache.uima.calaisType.relation.PersonEducation");
+ return ll_cas.ll_getStringValue(addr, casFeatCode_degree);
+ }
+ /** @generated */
+ public void setDegree(int addr, String v) {
+ if (featOkTst && casFeat_degree == null)
+ jcas.throwFeatMissing("degree", "org.apache.uima.calaisType.relation.PersonEducation");
+ ll_cas.ll_setStringValue(addr, casFeatCode_degree, v);}
+
+
+
+ /** @generated */
+ final Feature casFeat_schoolororganization;
+ /** @generated */
+ final int casFeatCode_schoolororganization;
+ /** @generated */
+ public String getSchoolororganization(int addr) {
+ if (featOkTst && casFeat_schoolororganization == null)
+ jcas.throwFeatMissing("schoolororganization", "org.apache.uima.calaisType.relation.PersonEducation");
+ return ll_cas.ll_getStringValue(addr, casFeatCode_schoolororganization);
+ }
+ /** @generated */
+ public void setSchoolororganization(int addr, String v) {
+ if (featOkTst && casFeat_schoolororganization == null)
+ jcas.throwFeatMissing("schoolororganization", "org.apache.uima.calaisType.relation.PersonEducation");
+ ll_cas.ll_setStringValue(addr, casFeatCode_schoolororganization, v);}
+
+
+
+
+
+ /** initialize variables to correspond with Cas Type and Features
+ * @generated */
+ public PersonEducation_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
+
+
+ casFeat_person = jcas.getRequiredFeatureDE(casType, "person", "org.apache.uima.calaisType.entity.Person", featOkTst);
+ casFeatCode_person = (null == casFeat_person) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_person).getCode();
+
+
+ casFeat_certification = jcas.getRequiredFeatureDE(casType, "certification", "uima.cas.String", featOkTst);
+ casFeatCode_certification = (null == casFeat_certification) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_certification).getCode();
+
+
+ casFeat_degree = jcas.getRequiredFeatureDE(casType, "degree", "uima.cas.String", featOkTst);
+ casFeatCode_degree = (null == casFeat_degree) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_degree).getCode();
+
+
+ casFeat_schoolororganization = jcas.getRequiredFeatureDE(casType, "schoolororganization", "uima.cas.String", featOkTst);
+ casFeatCode_schoolororganization = (null == casFeat_schoolororganization) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_schoolororganization).getCode();
+
+ }
+}
+
+
+
+
\ No newline at end of file
Propchange: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/PersonEducation_Type.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/PersonPolitical.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/PersonPolitical.java?rev=660553&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/PersonPolitical.java (added)
+++ incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/PersonPolitical.java Tue May 27 08:13:37 2008
@@ -0,0 +1,148 @@
+
+
+/* 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.Country;
+import org.apache.uima.calaisType.entity.City;
+import org.apache.uima.calaisType.entity.ProvinceOrState;
+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 PersonPolitical extends Relation {
+ /** @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(PersonPolitical.class);
+ /** @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+ /** @generated */
+ public int getTypeIndexID() {return typeIndexID;}
+
+ /** Never called. Disable default constructor
+ * @generated */
+ protected PersonPolitical() {}
+
+ /** Internal - constructor used by generator
+ * @generated */
+ public PersonPolitical(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public PersonPolitical(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ /** <!-- begin-user-doc -->
+ * Write your own initialization here
+ * <!-- end-user-doc -->
+ @generated modifiable */
+ private void readObject() {}
+
+
+
+ //*--------------*
+ //* Feature: person
+
+ /** getter for person - gets
+ * @generated */
+ public Person getPerson() {
+ if (PersonPolitical_Type.featOkTst && ((PersonPolitical_Type)jcasType).casFeat_person == null)
+ jcasType.jcas.throwFeatMissing("person", "org.apache.uima.calaisType.relation.PersonPolitical");
+ return (Person)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((PersonPolitical_Type)jcasType).casFeatCode_person)));}
+
+ /** setter for person - sets
+ * @generated */
+ public void setPerson(Person v) {
+ if (PersonPolitical_Type.featOkTst && ((PersonPolitical_Type)jcasType).casFeat_person == null)
+ jcasType.jcas.throwFeatMissing("person", "org.apache.uima.calaisType.relation.PersonPolitical");
+ jcasType.ll_cas.ll_setRefValue(addr, ((PersonPolitical_Type)jcasType).casFeatCode_person, jcasType.ll_cas.ll_getFSRef(v));}
+
+
+ //*--------------*
+ //* Feature: position
+
+ /** getter for position - gets
+ * @generated */
+ public String getPosition() {
+ if (PersonPolitical_Type.featOkTst && ((PersonPolitical_Type)jcasType).casFeat_position == null)
+ jcasType.jcas.throwFeatMissing("position", "org.apache.uima.calaisType.relation.PersonPolitical");
+ return jcasType.ll_cas.ll_getStringValue(addr, ((PersonPolitical_Type)jcasType).casFeatCode_position);}
+
+ /** setter for position - sets
+ * @generated */
+ public void setPosition(String v) {
+ if (PersonPolitical_Type.featOkTst && ((PersonPolitical_Type)jcasType).casFeat_position == null)
+ jcasType.jcas.throwFeatMissing("position", "org.apache.uima.calaisType.relation.PersonPolitical");
+ jcasType.ll_cas.ll_setStringValue(addr, ((PersonPolitical_Type)jcasType).casFeatCode_position, v);}
+
+
+ //*--------------*
+ //* Feature: country
+
+ /** getter for country - gets
+ * @generated */
+ public Country getCountry() {
+ if (PersonPolitical_Type.featOkTst && ((PersonPolitical_Type)jcasType).casFeat_country == null)
+ jcasType.jcas.throwFeatMissing("country", "org.apache.uima.calaisType.relation.PersonPolitical");
+ return (Country)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((PersonPolitical_Type)jcasType).casFeatCode_country)));}
+
+ /** setter for country - sets
+ * @generated */
+ public void setCountry(Country v) {
+ if (PersonPolitical_Type.featOkTst && ((PersonPolitical_Type)jcasType).casFeat_country == null)
+ jcasType.jcas.throwFeatMissing("country", "org.apache.uima.calaisType.relation.PersonPolitical");
+ jcasType.ll_cas.ll_setRefValue(addr, ((PersonPolitical_Type)jcasType).casFeatCode_country, jcasType.ll_cas.ll_getFSRef(v));}
+
+
+ //*--------------*
+ //* Feature: provinceorstate
+
+ /** getter for provinceorstate - gets
+ * @generated */
+ public ProvinceOrState getProvinceorstate() {
+ if (PersonPolitical_Type.featOkTst && ((PersonPolitical_Type)jcasType).casFeat_provinceorstate == null)
+ jcasType.jcas.throwFeatMissing("provinceorstate", "org.apache.uima.calaisType.relation.PersonPolitical");
+ return (ProvinceOrState)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((PersonPolitical_Type)jcasType).casFeatCode_provinceorstate)));}
+
+ /** setter for provinceorstate - sets
+ * @generated */
+ public void setProvinceorstate(ProvinceOrState v) {
+ if (PersonPolitical_Type.featOkTst && ((PersonPolitical_Type)jcasType).casFeat_provinceorstate == null)
+ jcasType.jcas.throwFeatMissing("provinceorstate", "org.apache.uima.calaisType.relation.PersonPolitical");
+ jcasType.ll_cas.ll_setRefValue(addr, ((PersonPolitical_Type)jcasType).casFeatCode_provinceorstate, jcasType.ll_cas.ll_getFSRef(v));}
+
+
+ //*--------------*
+ //* Feature: city
+
+ /** getter for city - gets
+ * @generated */
+ public City getCity() {
+ if (PersonPolitical_Type.featOkTst && ((PersonPolitical_Type)jcasType).casFeat_city == null)
+ jcasType.jcas.throwFeatMissing("city", "org.apache.uima.calaisType.relation.PersonPolitical");
+ return (City)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((PersonPolitical_Type)jcasType).casFeatCode_city)));}
+
+ /** setter for city - sets
+ * @generated */
+ public void setCity(City v) {
+ if (PersonPolitical_Type.featOkTst && ((PersonPolitical_Type)jcasType).casFeat_city == null)
+ jcasType.jcas.throwFeatMissing("city", "org.apache.uima.calaisType.relation.PersonPolitical");
+ jcasType.ll_cas.ll_setRefValue(addr, ((PersonPolitical_Type)jcasType).casFeatCode_city, jcasType.ll_cas.ll_getFSRef(v));}
+ }
+
+
\ No newline at end of file
Propchange: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/PersonPolitical.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/PersonPoliticalPast.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/PersonPoliticalPast.java?rev=660553&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/PersonPoliticalPast.java (added)
+++ incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/PersonPoliticalPast.java Tue May 27 08:13:37 2008
@@ -0,0 +1,148 @@
+
+
+/* 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.Country;
+import org.apache.uima.calaisType.entity.City;
+import org.apache.uima.calaisType.entity.ProvinceOrState;
+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 PersonPoliticalPast extends Relation {
+ /** @generated
+ * @ordered
+ */
+ public final static int typeIndexID = JCasRegistry.register(PersonPoliticalPast.class);
+ /** @generated
+ * @ordered
+ */
+ public final static int type = typeIndexID;
+ /** @generated */
+ public int getTypeIndexID() {return typeIndexID;}
+
+ /** Never called. Disable default constructor
+ * @generated */
+ protected PersonPoliticalPast() {}
+
+ /** Internal - constructor used by generator
+ * @generated */
+ public PersonPoliticalPast(int addr, TOP_Type type) {
+ super(addr, type);
+ readObject();
+ }
+
+ /** @generated */
+ public PersonPoliticalPast(JCas jcas) {
+ super(jcas);
+ readObject();
+ }
+
+ /** <!-- begin-user-doc -->
+ * Write your own initialization here
+ * <!-- end-user-doc -->
+ @generated modifiable */
+ private void readObject() {}
+
+
+
+ //*--------------*
+ //* Feature: person
+
+ /** getter for person - gets
+ * @generated */
+ public Person getPerson() {
+ if (PersonPoliticalPast_Type.featOkTst && ((PersonPoliticalPast_Type)jcasType).casFeat_person == null)
+ jcasType.jcas.throwFeatMissing("person", "org.apache.uima.calaisType.relation.PersonPoliticalPast");
+ return (Person)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((PersonPoliticalPast_Type)jcasType).casFeatCode_person)));}
+
+ /** setter for person - sets
+ * @generated */
+ public void setPerson(Person v) {
+ if (PersonPoliticalPast_Type.featOkTst && ((PersonPoliticalPast_Type)jcasType).casFeat_person == null)
+ jcasType.jcas.throwFeatMissing("person", "org.apache.uima.calaisType.relation.PersonPoliticalPast");
+ jcasType.ll_cas.ll_setRefValue(addr, ((PersonPoliticalPast_Type)jcasType).casFeatCode_person, jcasType.ll_cas.ll_getFSRef(v));}
+
+
+ //*--------------*
+ //* Feature: position
+
+ /** getter for position - gets
+ * @generated */
+ public String getPosition() {
+ if (PersonPoliticalPast_Type.featOkTst && ((PersonPoliticalPast_Type)jcasType).casFeat_position == null)
+ jcasType.jcas.throwFeatMissing("position", "org.apache.uima.calaisType.relation.PersonPoliticalPast");
+ return jcasType.ll_cas.ll_getStringValue(addr, ((PersonPoliticalPast_Type)jcasType).casFeatCode_position);}
+
+ /** setter for position - sets
+ * @generated */
+ public void setPosition(String v) {
+ if (PersonPoliticalPast_Type.featOkTst && ((PersonPoliticalPast_Type)jcasType).casFeat_position == null)
+ jcasType.jcas.throwFeatMissing("position", "org.apache.uima.calaisType.relation.PersonPoliticalPast");
+ jcasType.ll_cas.ll_setStringValue(addr, ((PersonPoliticalPast_Type)jcasType).casFeatCode_position, v);}
+
+
+ //*--------------*
+ //* Feature: country
+
+ /** getter for country - gets
+ * @generated */
+ public Country getCountry() {
+ if (PersonPoliticalPast_Type.featOkTst && ((PersonPoliticalPast_Type)jcasType).casFeat_country == null)
+ jcasType.jcas.throwFeatMissing("country", "org.apache.uima.calaisType.relation.PersonPoliticalPast");
+ return (Country)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((PersonPoliticalPast_Type)jcasType).casFeatCode_country)));}
+
+ /** setter for country - sets
+ * @generated */
+ public void setCountry(Country v) {
+ if (PersonPoliticalPast_Type.featOkTst && ((PersonPoliticalPast_Type)jcasType).casFeat_country == null)
+ jcasType.jcas.throwFeatMissing("country", "org.apache.uima.calaisType.relation.PersonPoliticalPast");
+ jcasType.ll_cas.ll_setRefValue(addr, ((PersonPoliticalPast_Type)jcasType).casFeatCode_country, jcasType.ll_cas.ll_getFSRef(v));}
+
+
+ //*--------------*
+ //* Feature: provinceorstate
+
+ /** getter for provinceorstate - gets
+ * @generated */
+ public ProvinceOrState getProvinceorstate() {
+ if (PersonPoliticalPast_Type.featOkTst && ((PersonPoliticalPast_Type)jcasType).casFeat_provinceorstate == null)
+ jcasType.jcas.throwFeatMissing("provinceorstate", "org.apache.uima.calaisType.relation.PersonPoliticalPast");
+ return (ProvinceOrState)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((PersonPoliticalPast_Type)jcasType).casFeatCode_provinceorstate)));}
+
+ /** setter for provinceorstate - sets
+ * @generated */
+ public void setProvinceorstate(ProvinceOrState v) {
+ if (PersonPoliticalPast_Type.featOkTst && ((PersonPoliticalPast_Type)jcasType).casFeat_provinceorstate == null)
+ jcasType.jcas.throwFeatMissing("provinceorstate", "org.apache.uima.calaisType.relation.PersonPoliticalPast");
+ jcasType.ll_cas.ll_setRefValue(addr, ((PersonPoliticalPast_Type)jcasType).casFeatCode_provinceorstate, jcasType.ll_cas.ll_getFSRef(v));}
+
+
+ //*--------------*
+ //* Feature: city
+
+ /** getter for city - gets
+ * @generated */
+ public City getCity() {
+ if (PersonPoliticalPast_Type.featOkTst && ((PersonPoliticalPast_Type)jcasType).casFeat_city == null)
+ jcasType.jcas.throwFeatMissing("city", "org.apache.uima.calaisType.relation.PersonPoliticalPast");
+ return (City)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((PersonPoliticalPast_Type)jcasType).casFeatCode_city)));}
+
+ /** setter for city - sets
+ * @generated */
+ public void setCity(City v) {
+ if (PersonPoliticalPast_Type.featOkTst && ((PersonPoliticalPast_Type)jcasType).casFeat_city == null)
+ jcasType.jcas.throwFeatMissing("city", "org.apache.uima.calaisType.relation.PersonPoliticalPast");
+ jcasType.ll_cas.ll_setRefValue(addr, ((PersonPoliticalPast_Type)jcasType).casFeatCode_city, jcasType.ll_cas.ll_getFSRef(v));}
+ }
+
+
\ No newline at end of file
Propchange: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/PersonPoliticalPast.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/PersonPoliticalPast_Type.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/PersonPoliticalPast_Type.java?rev=660553&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/PersonPoliticalPast_Type.java (added)
+++ incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/PersonPoliticalPast_Type.java Tue May 27 08:13:37 2008
@@ -0,0 +1,167 @@
+
+/* First created by JCasGen Mon May 26 21:43:20 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:20 EDT 2008
+ * @generated */
+public class PersonPoliticalPast_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 (PersonPoliticalPast_Type.this.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = PersonPoliticalPast_Type.this.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new PersonPoliticalPast(addr, PersonPoliticalPast_Type.this);
+ PersonPoliticalPast_Type.this.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else return new PersonPoliticalPast(addr, PersonPoliticalPast_Type.this);
+ }
+ };
+ /** @generated */
+ public final static int typeIndexID = PersonPoliticalPast.typeIndexID;
+ /** @generated
+ @modifiable */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.calaisType.relation.PersonPoliticalPast");
+
+ /** @generated */
+ final Feature casFeat_person;
+ /** @generated */
+ final int casFeatCode_person;
+ /** @generated */
+ public int getPerson(int addr) {
+ if (featOkTst && casFeat_person == null)
+ jcas.throwFeatMissing("person", "org.apache.uima.calaisType.relation.PersonPoliticalPast");
+ return ll_cas.ll_getRefValue(addr, casFeatCode_person);
+ }
+ /** @generated */
+ public void setPerson(int addr, int v) {
+ if (featOkTst && casFeat_person == null)
+ jcas.throwFeatMissing("person", "org.apache.uima.calaisType.relation.PersonPoliticalPast");
+ ll_cas.ll_setRefValue(addr, casFeatCode_person, v);}
+
+
+
+ /** @generated */
+ final Feature casFeat_position;
+ /** @generated */
+ final int casFeatCode_position;
+ /** @generated */
+ public String getPosition(int addr) {
+ if (featOkTst && casFeat_position == null)
+ jcas.throwFeatMissing("position", "org.apache.uima.calaisType.relation.PersonPoliticalPast");
+ return ll_cas.ll_getStringValue(addr, casFeatCode_position);
+ }
+ /** @generated */
+ public void setPosition(int addr, String v) {
+ if (featOkTst && casFeat_position == null)
+ jcas.throwFeatMissing("position", "org.apache.uima.calaisType.relation.PersonPoliticalPast");
+ ll_cas.ll_setStringValue(addr, casFeatCode_position, v);}
+
+
+
+ /** @generated */
+ final Feature casFeat_country;
+ /** @generated */
+ final int casFeatCode_country;
+ /** @generated */
+ public int getCountry(int addr) {
+ if (featOkTst && casFeat_country == null)
+ jcas.throwFeatMissing("country", "org.apache.uima.calaisType.relation.PersonPoliticalPast");
+ return ll_cas.ll_getRefValue(addr, casFeatCode_country);
+ }
+ /** @generated */
+ public void setCountry(int addr, int v) {
+ if (featOkTst && casFeat_country == null)
+ jcas.throwFeatMissing("country", "org.apache.uima.calaisType.relation.PersonPoliticalPast");
+ ll_cas.ll_setRefValue(addr, casFeatCode_country, v);}
+
+
+
+ /** @generated */
+ final Feature casFeat_provinceorstate;
+ /** @generated */
+ final int casFeatCode_provinceorstate;
+ /** @generated */
+ public int getProvinceorstate(int addr) {
+ if (featOkTst && casFeat_provinceorstate == null)
+ jcas.throwFeatMissing("provinceorstate", "org.apache.uima.calaisType.relation.PersonPoliticalPast");
+ return ll_cas.ll_getRefValue(addr, casFeatCode_provinceorstate);
+ }
+ /** @generated */
+ public void setProvinceorstate(int addr, int v) {
+ if (featOkTst && casFeat_provinceorstate == null)
+ jcas.throwFeatMissing("provinceorstate", "org.apache.uima.calaisType.relation.PersonPoliticalPast");
+ ll_cas.ll_setRefValue(addr, casFeatCode_provinceorstate, v);}
+
+
+
+ /** @generated */
+ final Feature casFeat_city;
+ /** @generated */
+ final int casFeatCode_city;
+ /** @generated */
+ public int getCity(int addr) {
+ if (featOkTst && casFeat_city == null)
+ jcas.throwFeatMissing("city", "org.apache.uima.calaisType.relation.PersonPoliticalPast");
+ return ll_cas.ll_getRefValue(addr, casFeatCode_city);
+ }
+ /** @generated */
+ public void setCity(int addr, int v) {
+ if (featOkTst && casFeat_city == null)
+ jcas.throwFeatMissing("city", "org.apache.uima.calaisType.relation.PersonPoliticalPast");
+ ll_cas.ll_setRefValue(addr, casFeatCode_city, v);}
+
+
+
+
+
+ /** initialize variables to correspond with Cas Type and Features
+ * @generated */
+ public PersonPoliticalPast_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
+
+
+ casFeat_person = jcas.getRequiredFeatureDE(casType, "person", "org.apache.uima.calaisType.entity.Person", featOkTst);
+ casFeatCode_person = (null == casFeat_person) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_person).getCode();
+
+
+ casFeat_position = jcas.getRequiredFeatureDE(casType, "position", "uima.cas.String", featOkTst);
+ casFeatCode_position = (null == casFeat_position) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_position).getCode();
+
+
+ casFeat_country = jcas.getRequiredFeatureDE(casType, "country", "org.apache.uima.calaisType.entity.Country", featOkTst);
+ casFeatCode_country = (null == casFeat_country) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_country).getCode();
+
+
+ casFeat_provinceorstate = jcas.getRequiredFeatureDE(casType, "provinceorstate", "org.apache.uima.calaisType.entity.ProvinceOrState", featOkTst);
+ casFeatCode_provinceorstate = (null == casFeat_provinceorstate) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_provinceorstate).getCode();
+
+
+ casFeat_city = jcas.getRequiredFeatureDE(casType, "city", "org.apache.uima.calaisType.entity.City", featOkTst);
+ casFeatCode_city = (null == casFeat_city) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_city).getCode();
+
+ }
+}
+
+
+
+
\ No newline at end of file
Propchange: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/PersonPoliticalPast_Type.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/PersonPolitical_Type.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/PersonPolitical_Type.java?rev=660553&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/PersonPolitical_Type.java (added)
+++ incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/PersonPolitical_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 PersonPolitical_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 (PersonPolitical_Type.this.useExistingInstance) {
+ // Return eq fs instance if already created
+ FeatureStructure fs = PersonPolitical_Type.this.jcas.getJfsFromCaddr(addr);
+ if (null == fs) {
+ fs = new PersonPolitical(addr, PersonPolitical_Type.this);
+ PersonPolitical_Type.this.jcas.putJfsFromCaddr(addr, fs);
+ return fs;
+ }
+ return fs;
+ } else return new PersonPolitical(addr, PersonPolitical_Type.this);
+ }
+ };
+ /** @generated */
+ public final static int typeIndexID = PersonPolitical.typeIndexID;
+ /** @generated
+ @modifiable */
+ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.calaisType.relation.PersonPolitical");
+
+ /** @generated */
+ final Feature casFeat_person;
+ /** @generated */
+ final int casFeatCode_person;
+ /** @generated */
+ public int getPerson(int addr) {
+ if (featOkTst && casFeat_person == null)
+ jcas.throwFeatMissing("person", "org.apache.uima.calaisType.relation.PersonPolitical");
+ return ll_cas.ll_getRefValue(addr, casFeatCode_person);
+ }
+ /** @generated */
+ public void setPerson(int addr, int v) {
+ if (featOkTst && casFeat_person == null)
+ jcas.throwFeatMissing("person", "org.apache.uima.calaisType.relation.PersonPolitical");
+ ll_cas.ll_setRefValue(addr, casFeatCode_person, v);}
+
+
+
+ /** @generated */
+ final Feature casFeat_position;
+ /** @generated */
+ final int casFeatCode_position;
+ /** @generated */
+ public String getPosition(int addr) {
+ if (featOkTst && casFeat_position == null)
+ jcas.throwFeatMissing("position", "org.apache.uima.calaisType.relation.PersonPolitical");
+ return ll_cas.ll_getStringValue(addr, casFeatCode_position);
+ }
+ /** @generated */
+ public void setPosition(int addr, String v) {
+ if (featOkTst && casFeat_position == null)
+ jcas.throwFeatMissing("position", "org.apache.uima.calaisType.relation.PersonPolitical");
+ ll_cas.ll_setStringValue(addr, casFeatCode_position, v);}
+
+
+
+ /** @generated */
+ final Feature casFeat_country;
+ /** @generated */
+ final int casFeatCode_country;
+ /** @generated */
+ public int getCountry(int addr) {
+ if (featOkTst && casFeat_country == null)
+ jcas.throwFeatMissing("country", "org.apache.uima.calaisType.relation.PersonPolitical");
+ return ll_cas.ll_getRefValue(addr, casFeatCode_country);
+ }
+ /** @generated */
+ public void setCountry(int addr, int v) {
+ if (featOkTst && casFeat_country == null)
+ jcas.throwFeatMissing("country", "org.apache.uima.calaisType.relation.PersonPolitical");
+ ll_cas.ll_setRefValue(addr, casFeatCode_country, v);}
+
+
+
+ /** @generated */
+ final Feature casFeat_provinceorstate;
+ /** @generated */
+ final int casFeatCode_provinceorstate;
+ /** @generated */
+ public int getProvinceorstate(int addr) {
+ if (featOkTst && casFeat_provinceorstate == null)
+ jcas.throwFeatMissing("provinceorstate", "org.apache.uima.calaisType.relation.PersonPolitical");
+ return ll_cas.ll_getRefValue(addr, casFeatCode_provinceorstate);
+ }
+ /** @generated */
+ public void setProvinceorstate(int addr, int v) {
+ if (featOkTst && casFeat_provinceorstate == null)
+ jcas.throwFeatMissing("provinceorstate", "org.apache.uima.calaisType.relation.PersonPolitical");
+ ll_cas.ll_setRefValue(addr, casFeatCode_provinceorstate, v);}
+
+
+
+ /** @generated */
+ final Feature casFeat_city;
+ /** @generated */
+ final int casFeatCode_city;
+ /** @generated */
+ public int getCity(int addr) {
+ if (featOkTst && casFeat_city == null)
+ jcas.throwFeatMissing("city", "org.apache.uima.calaisType.relation.PersonPolitical");
+ return ll_cas.ll_getRefValue(addr, casFeatCode_city);
+ }
+ /** @generated */
+ public void setCity(int addr, int v) {
+ if (featOkTst && casFeat_city == null)
+ jcas.throwFeatMissing("city", "org.apache.uima.calaisType.relation.PersonPolitical");
+ ll_cas.ll_setRefValue(addr, casFeatCode_city, v);}
+
+
+
+
+
+ /** initialize variables to correspond with Cas Type and Features
+ * @generated */
+ public PersonPolitical_Type(JCas jcas, Type casType) {
+ super(jcas, casType);
+ casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
+
+
+ casFeat_person = jcas.getRequiredFeatureDE(casType, "person", "org.apache.uima.calaisType.entity.Person", featOkTst);
+ casFeatCode_person = (null == casFeat_person) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_person).getCode();
+
+
+ casFeat_position = jcas.getRequiredFeatureDE(casType, "position", "uima.cas.String", featOkTst);
+ casFeatCode_position = (null == casFeat_position) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_position).getCode();
+
+
+ casFeat_country = jcas.getRequiredFeatureDE(casType, "country", "org.apache.uima.calaisType.entity.Country", featOkTst);
+ casFeatCode_country = (null == casFeat_country) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_country).getCode();
+
+
+ casFeat_provinceorstate = jcas.getRequiredFeatureDE(casType, "provinceorstate", "org.apache.uima.calaisType.entity.ProvinceOrState", featOkTst);
+ casFeatCode_provinceorstate = (null == casFeat_provinceorstate) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_provinceorstate).getCode();
+
+
+ casFeat_city = jcas.getRequiredFeatureDE(casType, "city", "org.apache.uima.calaisType.entity.City", featOkTst);
+ casFeatCode_city = (null == casFeat_city) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_city).getCode();
+
+ }
+}
+
+
+
+
\ No newline at end of file
Propchange: incubator/uima/sandbox/trunk/OpenCalaisAnnotatorGroovy/src/main/java/org/apache/uima/calaisType/relation/PersonPolitical_Type.java
------------------------------------------------------------------------------
svn:eol-style = native