public class Token extends Annotation { public static final int typeIndexID = JCasRegistry.register(Token.class); public static final int type = typeIndexID; public int getTypeIndexID() { return typeIndexID; } // Never called. Disable default constructor protected Token() {} /** Internal - Constructor used by generator */ public Token(int addr, TOP_Type type) { super(addr, type); } public Token(JCas jcas) { super(jcas); } public Token(JCas jcas, int start, int end) { super(jcas, start, end); } }
/** * Updated by JCasGen Tue Mar 06 16:28:20 CET 2012 XML source: * /vol/home-vol3/wbi/wbi_stud/VLKB/Tim/vlkb/chemspotVSoscar3/desc/cr/iobCR.xml * * @generated */ public class GeneOrGeneProduct extends NamedEntity { /** * @generated * @ordered */ public static final int typeIndexID = JCasRegistry.register(GeneOrGeneProduct.class); /** * @generated * @ordered */ public static final int type = typeIndexID; /** @generated */ public int getTypeIndexID() { return typeIndexID; } /** * Never called. Disable default constructor * * @generated */ protected GeneOrGeneProduct() { /* intentionally empty block */ } /** * Internal - constructor used by generator * * @generated */ public GeneOrGeneProduct(int addr, TOP_Type type) { super(addr, type); readObject(); } /** @generated */ public GeneOrGeneProduct(JCas jcas) { super(jcas); readObject(); } /** @generated */ public GeneOrGeneProduct(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); } /** * * <!-- begin-user-doc --> * Write your own initialization here * <!-- end-user-doc --> * * @generated modifiable */ private void readObject() {} }
/** * Proper Noun, plural Updated by JCasGen Tue Mar 06 16:28:17 CET 2012 XML source: * /vol/home-vol3/wbi/wbi_stud/VLKB/Tim/vlkb/chemspotVSoscar3/desc/cr/iobCR.xml * * @generated */ public class NNPS extends ProperNoun { /** * @generated * @ordered */ public static final int typeIndexID = JCasRegistry.register(NNPS.class); /** * @generated * @ordered */ public static final int type = typeIndexID; /** @generated */ public int getTypeIndexID() { return typeIndexID; } /** * Never called. Disable default constructor * * @generated */ protected NNPS() { /* intentionally empty block */ } /** * Internal - constructor used by generator * * @generated */ public NNPS(int addr, TOP_Type type) { super(addr, type); readObject(); } /** @generated */ public NNPS(JCas jcas) { super(jcas); readObject(); } /** * * <!-- begin-user-doc --> * Write your own initialization here * <!-- end-user-doc --> * * @generated modifiable */ private void readObject() {} }
/** * Type defined in edu.pitt.dbmi.xmeso.model.Model Updated by JCasGen Wed Sep 07 16:18:03 EDT 2016 * * @generated */ public class LymphNodesExamined_Type extends XmesoNumberDataElement_Type { /** * @generated * @return the generator for this type */ @Override protected FSGenerator getFSGenerator() { return fsGenerator; } /** @generated */ private final FSGenerator fsGenerator = new FSGenerator() { public FeatureStructure createFS(int addr, CASImpl cas) { if (LymphNodesExamined_Type.this.useExistingInstance) { // Return eq fs instance if already created FeatureStructure fs = LymphNodesExamined_Type.this.jcas.getJfsFromCaddr(addr); if (null == fs) { fs = new LymphNodesExamined(addr, LymphNodesExamined_Type.this); LymphNodesExamined_Type.this.jcas.putJfsFromCaddr(addr, fs); return fs; } return fs; } else return new LymphNodesExamined(addr, LymphNodesExamined_Type.this); } }; /** @generated */ @SuppressWarnings("hiding") public static final int typeIndexID = LymphNodesExamined.typeIndexID; /** * @generated * @modifiable */ @SuppressWarnings("hiding") public static final boolean featOkTst = JCasRegistry.getFeatOkTst("edu.pitt.dbmi.xmeso.model.Model.LymphNodesExamined"); /** * initialize variables to correspond with Cas Type and Features * * @generated * @param jcas JCas * @param casType Type */ public LymphNodesExamined_Type(JCas jcas, Type casType) { super(jcas, casType); casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator()); } }
/** * A time reference - 12 or 24 hours - within the document. Updated by JCasGen Tue Apr 12 12:07:25 * BST 2016 * * @generated */ public class Time_Type extends Temporal_Type { /** * @generated * @return the generator for this type */ @Override protected FSGenerator getFSGenerator() { return fsGenerator; } /** @generated */ private final FSGenerator fsGenerator = new FSGenerator() { public FeatureStructure createFS(int addr, CASImpl cas) { if (Time_Type.this.useExistingInstance) { // Return eq fs instance if already created FeatureStructure fs = Time_Type.this.jcas.getJfsFromCaddr(addr); if (null == fs) { fs = new Time(addr, Time_Type.this); Time_Type.this.jcas.putJfsFromCaddr(addr, fs); return fs; } return fs; } else return new Time(addr, Time_Type.this); } }; /** @generated */ @SuppressWarnings("hiding") public static final int typeIndexID = Time.typeIndexID; /** * @generated * @modifiable */ @SuppressWarnings("hiding") public static final boolean featOkTst = JCasRegistry.getFeatOkTst("uk.gov.dstl.baleen.types.temporal.Time"); /** * initialize variables to correspond with Cas Type and Features * * @generated * @param jcas JCas * @param casType Type */ public Time_Type(JCas jcas, Type casType) { super(jcas, casType); casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator()); } }
/** * Updated by JCasGen Sat Nov 01 22:21:22 CET 2014 * * @generated */ public class Paragraph_Type extends Annotation_Type { /** * @generated * @return the generator for this type */ @Override protected FSGenerator getFSGenerator() { return fsGenerator; } /** @generated */ private final FSGenerator fsGenerator = new FSGenerator() { public FeatureStructure createFS(int addr, CASImpl cas) { if (Paragraph_Type.this.useExistingInstance) { // Return eq fs instance if already created FeatureStructure fs = Paragraph_Type.this.jcas.getJfsFromCaddr(addr); if (null == fs) { fs = new Paragraph(addr, Paragraph_Type.this); Paragraph_Type.this.jcas.putJfsFromCaddr(addr, fs); return fs; } return fs; } else return new Paragraph(addr, Paragraph_Type.this); } }; /** @generated */ @SuppressWarnings("hiding") public static final int typeIndexID = Paragraph.typeIndexID; /** * @generated * @modifiable */ @SuppressWarnings("hiding") public static final boolean featOkTst = JCasRegistry.getFeatOkTst("de.tudarmstadt.ukp.dkpro.core.api.segmentation.type.Paragraph"); /** * initialize variables to correspond with Cas Type and Features * * @generated * @param jcas JCas * @param casType Type */ public Paragraph_Type(JCas jcas, Type casType) { super(jcas, casType); casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator()); } }
/** * Updated by JCasGen Thu Jul 12 10:42:33 CEST 2012 * * @generated */ public class DebugMatchedRuleMatch_Type extends DebugRuleMatch_Type { /** @generated */ protected FSGenerator getFSGenerator() { return fsGenerator; } /** @generated */ private final FSGenerator fsGenerator = new FSGenerator() { public FeatureStructure createFS(int addr, CASImpl cas) { if (DebugMatchedRuleMatch_Type.this.useExistingInstance) { // Return eq fs instance if already created FeatureStructure fs = DebugMatchedRuleMatch_Type.this.jcas.getJfsFromCaddr(addr); if (null == fs) { fs = new DebugMatchedRuleMatch(addr, DebugMatchedRuleMatch_Type.this); DebugMatchedRuleMatch_Type.this.jcas.putJfsFromCaddr(addr, fs); return fs; } return fs; } else return new DebugMatchedRuleMatch(addr, DebugMatchedRuleMatch_Type.this); } }; /** @generated */ public static final int typeIndexID = DebugMatchedRuleMatch.typeIndexID; /** * @generated * @modifiable */ public static final boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.uima.ruta.type.DebugMatchedRuleMatch"); /** * initialize variables to correspond with Cas Type and Features * * @generated */ public DebugMatchedRuleMatch_Type(JCas jcas, Type casType) { super(jcas, casType); casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator()); } }
/** * Updated by JCasGen Tue Sep 04 18:38:22 MSK 2012 * * @generated */ public class NBSP_Type extends WhiteSpace_Type { /** @generated */ @Override protected FSGenerator getFSGenerator() { return fsGenerator; } /** @generated */ private final FSGenerator fsGenerator = new FSGenerator() { public FeatureStructure createFS(int addr, CASImpl cas) { if (NBSP_Type.this.useExistingInstance) { // Return eq fs instance if already created FeatureStructure fs = NBSP_Type.this.jcas.getJfsFromCaddr(addr); if (null == fs) { fs = new NBSP(addr, NBSP_Type.this); NBSP_Type.this.jcas.putJfsFromCaddr(addr, fs); return fs; } return fs; } else return new NBSP(addr, NBSP_Type.this); } }; /** @generated */ @SuppressWarnings("hiding") public static final int typeIndexID = NBSP.typeIndexID; /** * @generated * @modifiable */ @SuppressWarnings("hiding") public static final boolean featOkTst = JCasRegistry.getFeatOkTst("ru.kfu.cll.uima.tokenizer.fstype.NBSP"); /** * initialize variables to correspond with Cas Type and Features * * @generated */ public NBSP_Type(JCas jcas, Type casType) { super(jcas, casType); casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator()); } }
/** * Updated by JCasGen Sun Oct 06 23:42:29 EDT 2013 * * @generated */ public class DocumentCreationTime_Type extends Time_Type { /** @generated */ @Override protected FSGenerator getFSGenerator() { return fsGenerator; } /** @generated */ private final FSGenerator fsGenerator = new FSGenerator() { public FeatureStructure createFS(int addr, CASImpl cas) { if (DocumentCreationTime_Type.this.useExistingInstance) { // Return eq fs instance if already created FeatureStructure fs = DocumentCreationTime_Type.this.jcas.getJfsFromCaddr(addr); if (null == fs) { fs = new DocumentCreationTime(addr, DocumentCreationTime_Type.this); DocumentCreationTime_Type.this.jcas.putJfsFromCaddr(addr, fs); return fs; } return fs; } else return new DocumentCreationTime(addr, DocumentCreationTime_Type.this); } }; /** @generated */ @SuppressWarnings("hiding") public static final int typeIndexID = DocumentCreationTime.typeIndexID; /** * @generated * @modifiable */ @SuppressWarnings("hiding") public static final boolean featOkTst = JCasRegistry.getFeatOkTst("org.cleartk.timeml.type.DocumentCreationTime"); /** * initialize variables to correspond with Cas Type and Features * * @generated */ public DocumentCreationTime_Type(JCas jcas, Type casType) { super(jcas, casType); casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator()); } }
/** * Updated by JCasGen Fri Oct 05 20:16:40 CEST 2012 * * @generated */ public class NUMBER_Type extends Dependency_Type { /** @generated */ @Override protected FSGenerator getFSGenerator() { return fsGenerator; } /** @generated */ private final FSGenerator fsGenerator = new FSGenerator() { public FeatureStructure createFS(int addr, CASImpl cas) { if (NUMBER_Type.this.useExistingInstance) { // Return eq fs instance if already created FeatureStructure fs = NUMBER_Type.this.jcas.getJfsFromCaddr(addr); if (null == fs) { fs = new NUMBER(addr, NUMBER_Type.this); NUMBER_Type.this.jcas.putJfsFromCaddr(addr, fs); return fs; } return fs; } else return new NUMBER(addr, NUMBER_Type.this); } }; /** @generated */ // @SuppressWarnings ("hiding") public static final int typeIndexID = NUMBER.typeIndexID; /** * @generated * @modifiable */ // @SuppressWarnings ("hiding") public static final boolean featOkTst = JCasRegistry.getFeatOkTst("de.tudarmstadt.ukp.dkpro.core.api.syntax.type.dependency.NUMBER"); /** * initialize variables to correspond with Cas Type and Features * * @generated */ public NUMBER_Type(JCas jcas, Type casType) { super(jcas, casType); casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator()); } }
/** * Updated by JCasGen Sun May 16 14:12:58 CEST 2010 * * @generated */ public class ExpirationDateAnnotation_Type extends Annotation_Type { /** @generated */ protected FSGenerator getFSGenerator() { return fsGenerator; } /** @generated */ private final FSGenerator fsGenerator = new FSGenerator() { public FeatureStructure createFS(int addr, CASImpl cas) { if (ExpirationDateAnnotation_Type.this.useExistingInstance) { // Return eq fs instance if already created FeatureStructure fs = ExpirationDateAnnotation_Type.this.jcas.getJfsFromCaddr(addr); if (null == fs) { fs = new ExpirationDateAnnotation(addr, ExpirationDateAnnotation_Type.this); ExpirationDateAnnotation_Type.this.jcas.putJfsFromCaddr(addr, fs); return fs; } return fs; } else return new ExpirationDateAnnotation(addr, ExpirationDateAnnotation_Type.this); } }; /** @generated */ public static final int typeIndexID = ExpirationDateAnnotation.typeIndexID; /** * @generated * @modifiable */ public static final boolean featOkTst = JCasRegistry.getFeatOkTst("cybion.uima.ts.ExpirationDateAnnotation"); /** * initialize variables to correspond with Cas Type and Features * * @generated */ public ExpirationDateAnnotation_Type(JCas jcas, Type casType) { super(jcas, casType); casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator()); } }
/** * Abstract Pronoun Updated by JCasGen Tue Mar 06 16:28:16 CET 2012 * * @generated */ public class Pronoun_Type extends Noun_Type { /** @generated */ protected FSGenerator getFSGenerator() { return fsGenerator; } /** @generated */ private final FSGenerator fsGenerator = new FSGenerator() { public FeatureStructure createFS(int addr, CASImpl cas) { if (Pronoun_Type.this.useExistingInstance) { // Return eq fs instance if already created FeatureStructure fs = Pronoun_Type.this.jcas.getJfsFromCaddr(addr); if (null == fs) { fs = new Pronoun(addr, Pronoun_Type.this); Pronoun_Type.this.jcas.putJfsFromCaddr(addr, fs); return fs; } return fs; } else return new Pronoun(addr, Pronoun_Type.this); } }; /** @generated */ public static final int typeIndexID = Pronoun.typeIndexID; /** * @generated * @modifiable */ public static final boolean featOkTst = JCasRegistry.getFeatOkTst("org.u_compare.shared.label.penn.pos.general.Pronoun"); /** * initialize variables to correspond with Cas Type and Features * * @generated */ public Pronoun_Type(JCas jcas, Type casType) { super(jcas, casType); casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator()); } }
/** * Cardinal number Updated by JCasGen Mon May 02 14:13:32 CEST 2011 * * @generated */ public class CARD_Type extends POS_Type { /** @generated */ protected FSGenerator getFSGenerator() { return fsGenerator; } /** @generated */ private final FSGenerator fsGenerator = new FSGenerator() { public FeatureStructure createFS(int addr, CASImpl cas) { if (CARD_Type.this.useExistingInstance) { // Return eq fs instance if already created FeatureStructure fs = CARD_Type.this.jcas.getJfsFromCaddr(addr); if (null == fs) { fs = new CARD(addr, CARD_Type.this); CARD_Type.this.jcas.putJfsFromCaddr(addr, fs); return fs; } return fs; } else return new CARD(addr, CARD_Type.this); } }; /** @generated */ public static final int typeIndexID = CARD.typeIndexID; /** * @generated * @modifiable */ public static final boolean featOkTst = JCasRegistry.getFeatOkTst("de.tudarmstadt.ukp.dkpro.core.type.pos.CARD"); /** * initialize variables to correspond with Cas Type and Features * * @generated */ public CARD_Type(JCas jcas, Type casType) { super(jcas, casType); casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator()); } }
/** * Updated by JCasGen Sat Mar 07 22:05:56 CET 2015 XML source: * /Users/richarde/dev/bluebrain/git/Bluima/modules/bluima_typesystem/target/jcasgen/typesystem.xml * * @generated */ public class TopicToken extends Annotation { /** * @generated * @ordered */ @SuppressWarnings("hiding") public static final int typeIndexID = JCasRegistry.register(TopicToken.class); /** * @generated * @ordered */ @SuppressWarnings("hiding") public static final int type = typeIndexID; /** * @generated * @return index of the type */ @Override public int getTypeIndexID() { return typeIndexID; } /** * Never called. Disable default constructor * * @generated */ protected TopicToken() { /* intentionally empty block */ } /** * Internal - constructor used by generator * * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public TopicToken(int addr, TOP_Type type) { super(addr, type); readObject(); } /** * @generated * @param jcas JCas to which this Feature Structure belongs */ public TopicToken(JCas jcas) { super(jcas); readObject(); } /** * @generated * @param jcas JCas to which this Feature Structure belongs * @param begin offset to the begin spot in the SofA * @param end offset to the end spot in the SofA */ public TopicToken(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); } /** * * <!-- begin-user-doc --> * Write your own initialization here * <!-- end-user-doc --> * * @generated modifiable */ private void readObject() { /*default - does nothing empty block */ } // *--------------* // * Feature: enclosingAnnot /** * getter for enclosingAnnot - gets * * @generated * @return value of the feature */ public Annotation getEnclosingAnnot() { if (TopicToken_Type.featOkTst && ((TopicToken_Type) jcasType).casFeat_enclosingAnnot == null) jcasType.jcas.throwFeatMissing("enclosingAnnot", "ch.epfl.bbp.uima.types.TopicToken"); return (Annotation) (jcasType.ll_cas.ll_getFSForRef( jcasType.ll_cas.ll_getRefValue( addr, ((TopicToken_Type) jcasType).casFeatCode_enclosingAnnot))); } /** * setter for enclosingAnnot - sets * * @generated * @param v value to set into the feature */ public void setEnclosingAnnot(Annotation v) { if (TopicToken_Type.featOkTst && ((TopicToken_Type) jcasType).casFeat_enclosingAnnot == null) jcasType.jcas.throwFeatMissing("enclosingAnnot", "ch.epfl.bbp.uima.types.TopicToken"); jcasType.ll_cas.ll_setRefValue( addr, ((TopicToken_Type) jcasType).casFeatCode_enclosingAnnot, jcasType.ll_cas.ll_getFSRef(v)); } }
/** * Stores the information about a question. Updated by JCasGen Mon Sep 28 17:16:05 EDT 2015 * * @generated */ public class Question_Type extends ComponentAnnotation_Type { /** * @generated * @return the generator for this type */ @Override protected FSGenerator getFSGenerator() { return fsGenerator; } /** @generated */ private final FSGenerator fsGenerator = new FSGenerator() { public FeatureStructure createFS(int addr, CASImpl cas) { if (Question_Type.this.useExistingInstance) { // Return eq fs instance if already created FeatureStructure fs = Question_Type.this.jcas.getJfsFromCaddr(addr); if (null == fs) { fs = new Question(addr, Question_Type.this); Question_Type.this.jcas.putJfsFromCaddr(addr, fs); return fs; } return fs; } else return new Question(addr, Question_Type.this); } }; /** @generated */ @SuppressWarnings("hiding") public static final int typeIndexID = Question.typeIndexID; /** * @generated * @modifiable */ @SuppressWarnings("hiding") public static final boolean featOkTst = JCasRegistry.getFeatOkTst("type.Question"); /** @generated */ final Feature casFeat_id; /** @generated */ final int casFeatCode_id; /** * @generated * @param addr low level Feature Structure reference * @return the feature value */ public String getId(int addr) { if (featOkTst && casFeat_id == null) jcas.throwFeatMissing("id", "type.Question"); return ll_cas.ll_getStringValue(addr, casFeatCode_id); } /** * @generated * @param addr low level Feature Structure reference * @param v value to set */ public void setId(int addr, String v) { if (featOkTst && casFeat_id == null) jcas.throwFeatMissing("id", "type.Question"); ll_cas.ll_setStringValue(addr, casFeatCode_id, v); } /** @generated */ final Feature casFeat_sentence; /** @generated */ final int casFeatCode_sentence; /** * @generated * @param addr low level Feature Structure reference * @return the feature value */ public String getSentence(int addr) { if (featOkTst && casFeat_sentence == null) jcas.throwFeatMissing("sentence", "type.Question"); return ll_cas.ll_getStringValue(addr, casFeatCode_sentence); } /** * @generated * @param addr low level Feature Structure reference * @param v value to set */ public void setSentence(int addr, String v) { if (featOkTst && casFeat_sentence == null) jcas.throwFeatMissing("sentence", "type.Question"); ll_cas.ll_setStringValue(addr, casFeatCode_sentence, v); } /** @generated */ final Feature casFeat_passages; /** @generated */ final int casFeatCode_passages; /** * @generated * @param addr low level Feature Structure reference * @return the feature value */ public int getPassages(int addr) { if (featOkTst && casFeat_passages == null) jcas.throwFeatMissing("passages", "type.Question"); return ll_cas.ll_getRefValue(addr, casFeatCode_passages); } /** * @generated * @param addr low level Feature Structure reference * @param v value to set */ public void setPassages(int addr, int v) { if (featOkTst && casFeat_passages == null) jcas.throwFeatMissing("passages", "type.Question"); ll_cas.ll_setRefValue(addr, casFeatCode_passages, v); } /** * @generated * @param addr low level Feature Structure reference * @param i index of item in the array * @return value at index i in the array */ public int getPassages(int addr, int i) { if (featOkTst && casFeat_passages == null) jcas.throwFeatMissing("passages", "type.Question"); if (lowLevelTypeChecks) return ll_cas.ll_getRefArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_passages), i, true); jcas.checkArrayBounds(ll_cas.ll_getRefValue(addr, casFeatCode_passages), i); return ll_cas.ll_getRefArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_passages), i); } /** * @generated * @param addr low level Feature Structure reference * @param i index of item in the array * @param v value to set */ public void setPassages(int addr, int i, int v) { if (featOkTst && casFeat_passages == null) jcas.throwFeatMissing("passages", "type.Question"); if (lowLevelTypeChecks) ll_cas.ll_setRefArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_passages), i, v, true); jcas.checkArrayBounds(ll_cas.ll_getRefValue(addr, casFeatCode_passages), i); ll_cas.ll_setRefArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_passages), i, v); } /** * initialize variables to correspond with Cas Type and Features * * @generated * @param jcas JCas * @param casType Type */ public Question_Type(JCas jcas, Type casType) { super(jcas, casType); casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator()); casFeat_id = jcas.getRequiredFeatureDE(casType, "id", "uima.cas.String", featOkTst); casFeatCode_id = (null == casFeat_id) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl) casFeat_id).getCode(); casFeat_sentence = jcas.getRequiredFeatureDE(casType, "sentence", "uima.cas.String", featOkTst); casFeatCode_sentence = (null == casFeat_sentence) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl) casFeat_sentence).getCode(); casFeat_passages = jcas.getRequiredFeatureDE(casType, "passages", "uima.cas.FSArray", featOkTst); casFeatCode_passages = (null == casFeat_passages) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl) casFeat_passages).getCode(); } }
/** * the temporal entities from MUC7; their particular type is stored in the attribure Updated by * JCasGen Sat Mar 07 22:05:57 CET 2015 XML source: * /Users/richarde/dev/bluebrain/git/Bluima/modules/bluima_typesystem/target/jcasgen/typesystem.xml * * @generated */ public class TIMEX extends Annotation { /** * @generated * @ordered */ @SuppressWarnings("hiding") public static final int typeIndexID = JCasRegistry.register(TIMEX.class); /** * @generated * @ordered */ @SuppressWarnings("hiding") public static final int type = typeIndexID; /** * @generated * @return index of the type */ @Override public int getTypeIndexID() { return typeIndexID; } /** * Never called. Disable default constructor * * @generated */ protected TIMEX() { /* intentionally empty block */ } /** * Internal - constructor used by generator * * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public TIMEX(int addr, TOP_Type type) { super(addr, type); readObject(); } /** * @generated * @param jcas JCas to which this Feature Structure belongs */ public TIMEX(JCas jcas) { super(jcas); readObject(); } /** * @generated * @param jcas JCas to which this Feature Structure belongs * @param begin offset to the begin spot in the SofA * @param end offset to the end spot in the SofA */ public TIMEX(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); } /** * * <!-- begin-user-doc --> * Write your own initialization here * <!-- end-user-doc --> * * @generated modifiable */ private void readObject() { /*default - does nothing empty block */ } // *--------------* // * Feature: typeOfNE /** * getter for typeOfNE - gets the type of the NE (e.g., DATE, LOCATION etc.) * * @generated * @return value of the feature */ public String getTypeOfNE() { if (TIMEX_Type.featOkTst && ((TIMEX_Type) jcasType).casFeat_typeOfNE == null) jcasType.jcas.throwFeatMissing("typeOfNE", "de.julielab.jules.types.muc7.TIMEX"); return jcasType.ll_cas.ll_getStringValue(addr, ((TIMEX_Type) jcasType).casFeatCode_typeOfNE); } /** * setter for typeOfNE - sets the type of the NE (e.g., DATE, LOCATION etc.) * * @generated * @param v value to set into the feature */ public void setTypeOfNE(String v) { if (TIMEX_Type.featOkTst && ((TIMEX_Type) jcasType).casFeat_typeOfNE == null) jcasType.jcas.throwFeatMissing("typeOfNE", "de.julielab.jules.types.muc7.TIMEX"); jcasType.ll_cas.ll_setStringValue(addr, ((TIMEX_Type) jcasType).casFeatCode_typeOfNE, v); } // *--------------* // * Feature: min /** * getter for min - gets the minimal head of the named entity * * @generated * @return value of the feature */ public String getMin() { if (TIMEX_Type.featOkTst && ((TIMEX_Type) jcasType).casFeat_min == null) jcasType.jcas.throwFeatMissing("min", "de.julielab.jules.types.muc7.TIMEX"); return jcasType.ll_cas.ll_getStringValue(addr, ((TIMEX_Type) jcasType).casFeatCode_min); } /** * setter for min - sets the minimal head of the named entity * * @generated * @param v value to set into the feature */ public void setMin(String v) { if (TIMEX_Type.featOkTst && ((TIMEX_Type) jcasType).casFeat_min == null) jcasType.jcas.throwFeatMissing("min", "de.julielab.jules.types.muc7.TIMEX"); jcasType.ll_cas.ll_setStringValue(addr, ((TIMEX_Type) jcasType).casFeatCode_min, v); } }
/** * Updated by JCasGen Wed Sep 25 09:03:34 CEST 2013 XML source: * /home/zesch/workspace_new/dkpro.similarity-asl/dkpro.similarity.experiments.api-asl/src/main/resources/desc/type/SemanticRelatedness.xml * * @generated */ public class AnnotationPair extends Annotation { /** * @generated * @ordered */ @SuppressWarnings("hiding") public static final int typeIndexID = JCasRegistry.register(AnnotationPair.class); /** * @generated * @ordered */ @SuppressWarnings("hiding") public static final int type = typeIndexID; /** @generated */ @Override public int getTypeIndexID() { return typeIndexID; } /** * Never called. Disable default constructor * * @generated */ protected AnnotationPair() { /* intentionally empty block */ } /** * Internal - constructor used by generator * * @generated */ public AnnotationPair(int addr, TOP_Type type) { super(addr, type); readObject(); } /** @generated */ public AnnotationPair(JCas jcas) { super(jcas); readObject(); } /** @generated */ public AnnotationPair(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); } /** * * <!-- begin-user-doc --> * Write your own initialization here * <!-- end-user-doc --> * * @generated modifiable */ private void readObject() { /*default - does nothing empty block */ } // *--------------* // * Feature: Annotation1 /** * getter for Annotation1 - gets * * @generated */ public Annotation getAnnotation1() { if (AnnotationPair_Type.featOkTst && ((AnnotationPair_Type) jcasType).casFeat_Annotation1 == null) jcasType.jcas.throwFeatMissing("Annotation1", "dkpro.similarity.type.AnnotationPair"); return (Annotation) (jcasType.ll_cas.ll_getFSForRef( jcasType.ll_cas.ll_getRefValue( addr, ((AnnotationPair_Type) jcasType).casFeatCode_Annotation1))); } /** * setter for Annotation1 - sets * * @generated */ public void setAnnotation1(Annotation v) { if (AnnotationPair_Type.featOkTst && ((AnnotationPair_Type) jcasType).casFeat_Annotation1 == null) jcasType.jcas.throwFeatMissing("Annotation1", "dkpro.similarity.type.AnnotationPair"); jcasType.ll_cas.ll_setRefValue( addr, ((AnnotationPair_Type) jcasType).casFeatCode_Annotation1, jcasType.ll_cas.ll_getFSRef(v)); } // *--------------* // * Feature: Annotation2 /** * getter for Annotation2 - gets * * @generated */ public Annotation getAnnotation2() { if (AnnotationPair_Type.featOkTst && ((AnnotationPair_Type) jcasType).casFeat_Annotation2 == null) jcasType.jcas.throwFeatMissing("Annotation2", "dkpro.similarity.type.AnnotationPair"); return (Annotation) (jcasType.ll_cas.ll_getFSForRef( jcasType.ll_cas.ll_getRefValue( addr, ((AnnotationPair_Type) jcasType).casFeatCode_Annotation2))); } /** * setter for Annotation2 - sets * * @generated */ public void setAnnotation2(Annotation v) { if (AnnotationPair_Type.featOkTst && ((AnnotationPair_Type) jcasType).casFeat_Annotation2 == null) jcasType.jcas.throwFeatMissing("Annotation2", "dkpro.similarity.type.AnnotationPair"); jcasType.ll_cas.ll_setRefValue( addr, ((AnnotationPair_Type) jcasType).casFeatCode_Annotation2, jcasType.ll_cas.ll_getFSRef(v)); } // *--------------* // * Feature: StringRepresentation1 /** * getter for StringRepresentation1 - gets * * @generated */ public String getStringRepresentation1() { if (AnnotationPair_Type.featOkTst && ((AnnotationPair_Type) jcasType).casFeat_StringRepresentation1 == null) jcasType.jcas.throwFeatMissing( "StringRepresentation1", "dkpro.similarity.type.AnnotationPair"); return jcasType.ll_cas.ll_getStringValue( addr, ((AnnotationPair_Type) jcasType).casFeatCode_StringRepresentation1); } /** * setter for StringRepresentation1 - sets * * @generated */ public void setStringRepresentation1(String v) { if (AnnotationPair_Type.featOkTst && ((AnnotationPair_Type) jcasType).casFeat_StringRepresentation1 == null) jcasType.jcas.throwFeatMissing( "StringRepresentation1", "dkpro.similarity.type.AnnotationPair"); jcasType.ll_cas.ll_setStringValue( addr, ((AnnotationPair_Type) jcasType).casFeatCode_StringRepresentation1, v); } // *--------------* // * Feature: StringRepresentation2 /** * getter for StringRepresentation2 - gets * * @generated */ public String getStringRepresentation2() { if (AnnotationPair_Type.featOkTst && ((AnnotationPair_Type) jcasType).casFeat_StringRepresentation2 == null) jcasType.jcas.throwFeatMissing( "StringRepresentation2", "dkpro.similarity.type.AnnotationPair"); return jcasType.ll_cas.ll_getStringValue( addr, ((AnnotationPair_Type) jcasType).casFeatCode_StringRepresentation2); } /** * setter for StringRepresentation2 - sets * * @generated */ public void setStringRepresentation2(String v) { if (AnnotationPair_Type.featOkTst && ((AnnotationPair_Type) jcasType).casFeat_StringRepresentation2 == null) jcasType.jcas.throwFeatMissing( "StringRepresentation2", "dkpro.similarity.type.AnnotationPair"); jcasType.ll_cas.ll_setStringValue( addr, ((AnnotationPair_Type) jcasType).casFeatCode_StringRepresentation2, v); } }
/** * Automatically generated type for Hashtag Updated by JCasGen Tue Mar 10 18:00:03 EET 2015 * * @generated */ public class Hashtag_Type extends Annotation_Type { /** * @generated * @return the generator for this type */ @Override protected FSGenerator getFSGenerator() { return fsGenerator; } /** @generated */ private final FSGenerator fsGenerator = new FSGenerator() { public FeatureStructure createFS(int addr, CASImpl cas) { if (Hashtag_Type.this.useExistingInstance) { // Return eq fs instance if already created FeatureStructure fs = Hashtag_Type.this.jcas.getJfsFromCaddr(addr); if (null == fs) { fs = new Hashtag(addr, Hashtag_Type.this); Hashtag_Type.this.jcas.putJfsFromCaddr(addr, fs); return fs; } return fs; } else return new Hashtag(addr, Hashtag_Type.this); } }; /** @generated */ @SuppressWarnings("hiding") public static final int typeIndexID = Hashtag.typeIndexID; /** * @generated * @modifiable */ @SuppressWarnings("hiding") public static final boolean featOkTst = JCasRegistry.getFeatOkTst("com.ontotext.s4.api.types.twitie.Hashtag"); /** @generated */ final Feature casFeat_rule; /** @generated */ final int casFeatCode_rule; /** * @generated * @param addr low level Feature Structure reference * @return the feature value */ public String getRule(int addr) { if (featOkTst && casFeat_rule == null) jcas.throwFeatMissing("rule", "com.ontotext.s4.api.types.twitie.Hashtag"); return ll_cas.ll_getStringValue(addr, casFeatCode_rule); } /** * @generated * @param addr low level Feature Structure reference * @param v value to set */ public void setRule(int addr, String v) { if (featOkTst && casFeat_rule == null) jcas.throwFeatMissing("rule", "com.ontotext.s4.api.types.twitie.Hashtag"); ll_cas.ll_setStringValue(addr, casFeatCode_rule, v); } /** @generated */ final Feature casFeat_string; /** @generated */ final int casFeatCode_string; /** * @generated * @param addr low level Feature Structure reference * @return the feature value */ public String getString(int addr) { if (featOkTst && casFeat_string == null) jcas.throwFeatMissing("string", "com.ontotext.s4.api.types.twitie.Hashtag"); return ll_cas.ll_getStringValue(addr, casFeatCode_string); } /** * @generated * @param addr low level Feature Structure reference * @param v value to set */ public void setString(int addr, String v) { if (featOkTst && casFeat_string == null) jcas.throwFeatMissing("string", "com.ontotext.s4.api.types.twitie.Hashtag"); ll_cas.ll_setStringValue(addr, casFeatCode_string, v); } /** @generated */ final Feature casFeat_length; /** @generated */ final int casFeatCode_length; /** * @generated * @param addr low level Feature Structure reference * @return the feature value */ public String getLength(int addr) { if (featOkTst && casFeat_length == null) jcas.throwFeatMissing("length", "com.ontotext.s4.api.types.twitie.Hashtag"); return ll_cas.ll_getStringValue(addr, casFeatCode_length); } /** * @generated * @param addr low level Feature Structure reference * @param v value to set */ public void setLength(int addr, String v) { if (featOkTst && casFeat_length == null) jcas.throwFeatMissing("length", "com.ontotext.s4.api.types.twitie.Hashtag"); ll_cas.ll_setStringValue(addr, casFeatCode_length, v); } /** @generated */ final Feature casFeat_type_feature; /** @generated */ final int casFeatCode_type_feature; /** * @generated * @param addr low level Feature Structure reference * @return the feature value */ public String getType_feature(int addr) { if (featOkTst && casFeat_type_feature == null) jcas.throwFeatMissing("type_feature", "com.ontotext.s4.api.types.twitie.Hashtag"); return ll_cas.ll_getStringValue(addr, casFeatCode_type_feature); } /** * @generated * @param addr low level Feature Structure reference * @param v value to set */ public void setType_feature(int addr, String v) { if (featOkTst && casFeat_type_feature == null) jcas.throwFeatMissing("type_feature", "com.ontotext.s4.api.types.twitie.Hashtag"); ll_cas.ll_setStringValue(addr, casFeatCode_type_feature, v); } /** @generated */ final Feature casFeat_kind; /** @generated */ final int casFeatCode_kind; /** * @generated * @param addr low level Feature Structure reference * @return the feature value */ public String getKind(int addr) { if (featOkTst && casFeat_kind == null) jcas.throwFeatMissing("kind", "com.ontotext.s4.api.types.twitie.Hashtag"); return ll_cas.ll_getStringValue(addr, casFeatCode_kind); } /** * @generated * @param addr low level Feature Structure reference * @param v value to set */ public void setKind(int addr, String v) { if (featOkTst && casFeat_kind == null) jcas.throwFeatMissing("kind", "com.ontotext.s4.api.types.twitie.Hashtag"); ll_cas.ll_setStringValue(addr, casFeatCode_kind, v); } /** * initialize variables to correspond with Cas Type and Features * * @generated * @param jcas JCas * @param casType Type */ public Hashtag_Type(JCas jcas, Type casType) { super(jcas, casType); casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator()); casFeat_rule = jcas.getRequiredFeatureDE(casType, "rule", "uima.cas.String", featOkTst); casFeatCode_rule = (null == casFeat_rule) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl) casFeat_rule).getCode(); casFeat_string = jcas.getRequiredFeatureDE(casType, "string", "uima.cas.String", featOkTst); casFeatCode_string = (null == casFeat_string) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl) casFeat_string).getCode(); casFeat_length = jcas.getRequiredFeatureDE(casType, "length", "uima.cas.String", featOkTst); casFeatCode_length = (null == casFeat_length) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl) casFeat_length).getCode(); casFeat_type_feature = jcas.getRequiredFeatureDE(casType, "type_feature", "uima.cas.String", featOkTst); casFeatCode_type_feature = (null == casFeat_type_feature) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl) casFeat_type_feature).getCode(); casFeat_kind = jcas.getRequiredFeatureDE(casType, "kind", "uima.cas.String", featOkTst); casFeatCode_kind = (null == casFeat_kind) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl) casFeat_kind).getCode(); } }
/** * Output type for CasConsumer Updated by JCasGen Fri Oct 04 20:18:18 EDT 2013 * * @generated */ public class QASystemOutput_Type extends Annotation_Type { /** @generated */ @Override protected FSGenerator getFSGenerator() { return fsGenerator; } /** @generated */ private final FSGenerator fsGenerator = new FSGenerator() { public FeatureStructure createFS(int addr, CASImpl cas) { if (QASystemOutput_Type.this.useExistingInstance) { // Return eq fs instance if already created FeatureStructure fs = QASystemOutput_Type.this.jcas.getJfsFromCaddr(addr); if (null == fs) { fs = new QASystemOutput(addr, QASystemOutput_Type.this); QASystemOutput_Type.this.jcas.putJfsFromCaddr(addr, fs); return fs; } return fs; } else return new QASystemOutput(addr, QASystemOutput_Type.this); } }; /** @generated */ @SuppressWarnings("hiding") public static final int typeIndexID = QASystemOutput.typeIndexID; /** * @generated * @modifiable */ @SuppressWarnings("hiding") public static final boolean featOkTst = JCasRegistry.getFeatOkTst("edu.cmu.deiis.types.QASystemOutput"); /** @generated */ final Feature casFeat_questionAnnotation; /** @generated */ final int casFeatCode_questionAnnotation; /** @generated */ public int getQuestionAnnotation(int addr) { if (featOkTst && casFeat_questionAnnotation == null) jcas.throwFeatMissing("questionAnnotation", "edu.cmu.deiis.types.QASystemOutput"); return ll_cas.ll_getRefValue(addr, casFeatCode_questionAnnotation); } /** @generated */ public void setQuestionAnnotation(int addr, int v) { if (featOkTst && casFeat_questionAnnotation == null) jcas.throwFeatMissing("questionAnnotation", "edu.cmu.deiis.types.QASystemOutput"); ll_cas.ll_setRefValue(addr, casFeatCode_questionAnnotation, v); } /** @generated */ final Feature casFeat_answerScores; /** @generated */ final int casFeatCode_answerScores; /** @generated */ public int getAnswerScores(int addr) { if (featOkTst && casFeat_answerScores == null) jcas.throwFeatMissing("answerScores", "edu.cmu.deiis.types.QASystemOutput"); return ll_cas.ll_getRefValue(addr, casFeatCode_answerScores); } /** @generated */ public void setAnswerScores(int addr, int v) { if (featOkTst && casFeat_answerScores == null) jcas.throwFeatMissing("answerScores", "edu.cmu.deiis.types.QASystemOutput"); ll_cas.ll_setRefValue(addr, casFeatCode_answerScores, v); } /** @generated */ public int getAnswerScores(int addr, int i) { if (featOkTst && casFeat_answerScores == null) jcas.throwFeatMissing("answerScores", "edu.cmu.deiis.types.QASystemOutput"); if (lowLevelTypeChecks) return ll_cas.ll_getRefArrayValue( ll_cas.ll_getRefValue(addr, casFeatCode_answerScores), i, true); jcas.checkArrayBounds(ll_cas.ll_getRefValue(addr, casFeatCode_answerScores), i); return ll_cas.ll_getRefArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_answerScores), i); } /** @generated */ public void setAnswerScores(int addr, int i, int v) { if (featOkTst && casFeat_answerScores == null) jcas.throwFeatMissing("answerScores", "edu.cmu.deiis.types.QASystemOutput"); if (lowLevelTypeChecks) ll_cas.ll_setRefArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_answerScores), i, v, true); jcas.checkArrayBounds(ll_cas.ll_getRefValue(addr, casFeatCode_answerScores), i); ll_cas.ll_setRefArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_answerScores), i, v); } /** @generated */ final Feature casFeat_precisionAtK; /** @generated */ final int casFeatCode_precisionAtK; /** @generated */ public double getPrecisionAtK(int addr) { if (featOkTst && casFeat_precisionAtK == null) jcas.throwFeatMissing("precisionAtK", "edu.cmu.deiis.types.QASystemOutput"); return ll_cas.ll_getDoubleValue(addr, casFeatCode_precisionAtK); } /** @generated */ public void setPrecisionAtK(int addr, double v) { if (featOkTst && casFeat_precisionAtK == null) jcas.throwFeatMissing("precisionAtK", "edu.cmu.deiis.types.QASystemOutput"); ll_cas.ll_setDoubleValue(addr, casFeatCode_precisionAtK, v); } /** * initialize variables to correspond with Cas Type and Features * * @generated */ public QASystemOutput_Type(JCas jcas, Type casType) { super(jcas, casType); casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator()); casFeat_questionAnnotation = jcas.getRequiredFeatureDE( casType, "questionAnnotation", "edu.cmu.deiis.types.Question", featOkTst); casFeatCode_questionAnnotation = (null == casFeat_questionAnnotation) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl) casFeat_questionAnnotation).getCode(); casFeat_answerScores = jcas.getRequiredFeatureDE(casType, "answerScores", "uima.cas.FSArray", featOkTst); casFeatCode_answerScores = (null == casFeat_answerScores) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl) casFeat_answerScores).getCode(); casFeat_precisionAtK = jcas.getRequiredFeatureDE(casType, "precisionAtK", "uima.cas.Double", featOkTst); casFeatCode_precisionAtK = (null == casFeat_precisionAtK) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl) casFeat_precisionAtK).getCode(); } }
/** * Updated by JCasGen Mon Sep 21 23:07:45 EDT 2015 * * @generated */ public class Param_Type extends ComponentAnnotation_Type { /** * @generated * @return the generator for this type */ @Override protected FSGenerator getFSGenerator() { return fsGenerator; } /** @generated */ private final FSGenerator fsGenerator = new FSGenerator() { public FeatureStructure createFS(int addr, CASImpl cas) { if (Param_Type.this.useExistingInstance) { // Return eq fs instance if already created FeatureStructure fs = Param_Type.this.jcas.getJfsFromCaddr(addr); if (null == fs) { fs = new Param(addr, Param_Type.this); Param_Type.this.jcas.putJfsFromCaddr(addr, fs); return fs; } return fs; } else return new Param(addr, Param_Type.this); } }; /** @generated */ @SuppressWarnings("hiding") public static final int typeIndexID = Param.typeIndexID; /** * @generated * @modifiable */ @SuppressWarnings("hiding") public static final boolean featOkTst = JCasRegistry.getFeatOkTst("type.Param"); /** @generated */ final Feature casFeat_outputDir; /** @generated */ final int casFeatCode_outputDir; /** * @generated * @param addr low level Feature Structure reference * @return the feature value */ public String getOutputDir(int addr) { if (featOkTst && casFeat_outputDir == null) jcas.throwFeatMissing("outputDir", "type.Param"); return ll_cas.ll_getStringValue(addr, casFeatCode_outputDir); } /** * @generated * @param addr low level Feature Structure reference * @param v value to set */ public void setOutputDir(int addr, String v) { if (featOkTst && casFeat_outputDir == null) jcas.throwFeatMissing("outputDir", "type.Param"); ll_cas.ll_setStringValue(addr, casFeatCode_outputDir, v); } /** @generated */ final Feature casFeat_n; /** @generated */ final int casFeatCode_n; /** * @generated * @param addr low level Feature Structure reference * @return the feature value */ public int getN(int addr) { if (featOkTst && casFeat_n == null) jcas.throwFeatMissing("n", "type.Param"); return ll_cas.ll_getIntValue(addr, casFeatCode_n); } /** * @generated * @param addr low level Feature Structure reference * @param v value to set */ public void setN(int addr, int v) { if (featOkTst && casFeat_n == null) jcas.throwFeatMissing("n", "type.Param"); ll_cas.ll_setIntValue(addr, casFeatCode_n, v); } /** @generated */ final Feature casFeat_documentName; /** @generated */ final int casFeatCode_documentName; /** * @generated * @param addr low level Feature Structure reference * @return the feature value */ public String getDocumentName(int addr) { if (featOkTst && casFeat_documentName == null) jcas.throwFeatMissing("documentName", "type.Param"); return ll_cas.ll_getStringValue(addr, casFeatCode_documentName); } /** * @generated * @param addr low level Feature Structure reference * @param v value to set */ public void setDocumentName(int addr, String v) { if (featOkTst && casFeat_documentName == null) jcas.throwFeatMissing("documentName", "type.Param"); ll_cas.ll_setStringValue(addr, casFeatCode_documentName, v); } /** * initialize variables to correspond with Cas Type and Features * * @generated * @param jcas JCas * @param casType Type */ public Param_Type(JCas jcas, Type casType) { super(jcas, casType); casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator()); casFeat_outputDir = jcas.getRequiredFeatureDE(casType, "outputDir", "uima.cas.String", featOkTst); casFeatCode_outputDir = (null == casFeat_outputDir) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl) casFeat_outputDir).getCode(); casFeat_n = jcas.getRequiredFeatureDE(casType, "n", "uima.cas.Integer", featOkTst); casFeatCode_n = (null == casFeat_n) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl) casFeat_n).getCode(); casFeat_documentName = jcas.getRequiredFeatureDE(casType, "documentName", "uima.cas.String", featOkTst); casFeatCode_documentName = (null == casFeat_documentName) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl) casFeat_documentName).getCode(); } }
/** * Stores detailed information about the original source document from which the current CAS was * initialized. All information (like size) refers to the source document and not to the document in * the CAS which may be converted and filtered by a CAS Initializer. For example this information * will be written to the Semantic Search index so that the original document contents can be * retrieved by queries. Updated by JCasGen Sat Jun 20 14:34:58 EDT 2009 * * @generated */ public class SourceDocInfo_Type extends DocumentAnnotation_Type { /** @generated */ protected FSGenerator getFSGenerator() { return fsGenerator; } /** @generated */ private final FSGenerator fsGenerator = new FSGenerator() { public FeatureStructure createFS(int addr, CASImpl cas) { if (SourceDocInfo_Type.this.useExistingInstance) { // Return eq fs instance if already created FeatureStructure fs = SourceDocInfo_Type.this.jcas.getJfsFromCaddr(addr); if (null == fs) { fs = new SourceDocInfo(addr, SourceDocInfo_Type.this); SourceDocInfo_Type.this.jcas.putJfsFromCaddr(addr, fs); return fs; } return fs; } else return new SourceDocInfo(addr, SourceDocInfo_Type.this); } }; /** @generated */ public static final int typeIndexID = SourceDocInfo.typeIndexID; /** * @generated * @modifiable */ public static final boolean featOkTst = JCasRegistry.getFeatOkTst("com.dp.edgar.uima.type.SourceDocInfo"); /** @generated */ final Feature casFeat_uri; /** @generated */ final int casFeatCode_uri; /** @generated */ public String getUri(int addr) { if (featOkTst && casFeat_uri == null) jcas.throwFeatMissing("uri", "com.dp.edgar.uima.type.SourceDocInfo"); return ll_cas.ll_getStringValue(addr, casFeatCode_uri); } /** @generated */ public void setUri(int addr, String v) { if (featOkTst && casFeat_uri == null) jcas.throwFeatMissing("uri", "com.dp.edgar.uima.type.SourceDocInfo"); ll_cas.ll_setStringValue(addr, casFeatCode_uri, v); } /** @generated */ final Feature casFeat_offsetInSource; /** @generated */ final int casFeatCode_offsetInSource; /** @generated */ public int getOffsetInSource(int addr) { if (featOkTst && casFeat_offsetInSource == null) jcas.throwFeatMissing("offsetInSource", "com.dp.edgar.uima.type.SourceDocInfo"); return ll_cas.ll_getIntValue(addr, casFeatCode_offsetInSource); } /** @generated */ public void setOffsetInSource(int addr, int v) { if (featOkTst && casFeat_offsetInSource == null) jcas.throwFeatMissing("offsetInSource", "com.dp.edgar.uima.type.SourceDocInfo"); ll_cas.ll_setIntValue(addr, casFeatCode_offsetInSource, v); } /** @generated */ final Feature casFeat_documentSize; /** @generated */ final int casFeatCode_documentSize; /** @generated */ public int getDocumentSize(int addr) { if (featOkTst && casFeat_documentSize == null) jcas.throwFeatMissing("documentSize", "com.dp.edgar.uima.type.SourceDocInfo"); return ll_cas.ll_getIntValue(addr, casFeatCode_documentSize); } /** @generated */ public void setDocumentSize(int addr, int v) { if (featOkTst && casFeat_documentSize == null) jcas.throwFeatMissing("documentSize", "com.dp.edgar.uima.type.SourceDocInfo"); ll_cas.ll_setIntValue(addr, casFeatCode_documentSize, v); } /** @generated */ final Feature casFeat_filingType; /** @generated */ final int casFeatCode_filingType; /** @generated */ public int getFilingType(int addr) { if (featOkTst && casFeat_filingType == null) jcas.throwFeatMissing("filingType", "com.dp.edgar.uima.type.SourceDocInfo"); return ll_cas.ll_getIntValue(addr, casFeatCode_filingType); } /** @generated */ public void setFilingType(int addr, int v) { if (featOkTst && casFeat_filingType == null) jcas.throwFeatMissing("filingType", "com.dp.edgar.uima.type.SourceDocInfo"); ll_cas.ll_setIntValue(addr, casFeatCode_filingType, v); } /** @generated */ final Feature casFeat_documentType; /** @generated */ final int casFeatCode_documentType; /** @generated */ public int getDocumentType(int addr) { if (featOkTst && casFeat_documentType == null) jcas.throwFeatMissing("documentType", "com.dp.edgar.uima.type.SourceDocInfo"); return ll_cas.ll_getIntValue(addr, casFeatCode_documentType); } /** @generated */ public void setDocumentType(int addr, int v) { if (featOkTst && casFeat_documentType == null) jcas.throwFeatMissing("documentType", "com.dp.edgar.uima.type.SourceDocInfo"); ll_cas.ll_setIntValue(addr, casFeatCode_documentType, v); } /** @generated */ final Feature casFeat_timeStamp; /** @generated */ final int casFeatCode_timeStamp; /** @generated */ public String getTimeStamp(int addr) { if (featOkTst && casFeat_timeStamp == null) jcas.throwFeatMissing("timeStamp", "com.dp.edgar.uima.type.SourceDocInfo"); return ll_cas.ll_getStringValue(addr, casFeatCode_timeStamp); } /** @generated */ public void setTimeStamp(int addr, String v) { if (featOkTst && casFeat_timeStamp == null) jcas.throwFeatMissing("timeStamp", "com.dp.edgar.uima.type.SourceDocInfo"); ll_cas.ll_setStringValue(addr, casFeatCode_timeStamp, v); } /** @generated */ final Feature casFeat_fileName; /** @generated */ final int casFeatCode_fileName; /** @generated */ public String getFileName(int addr) { if (featOkTst && casFeat_fileName == null) jcas.throwFeatMissing("fileName", "com.dp.edgar.uima.type.SourceDocInfo"); return ll_cas.ll_getStringValue(addr, casFeatCode_fileName); } /** @generated */ public void setFileName(int addr, String v) { if (featOkTst && casFeat_fileName == null) jcas.throwFeatMissing("fileName", "com.dp.edgar.uima.type.SourceDocInfo"); ll_cas.ll_setStringValue(addr, casFeatCode_fileName, v); } /** @generated */ final Feature casFeat_sentenceCount; /** @generated */ final int casFeatCode_sentenceCount; /** @generated */ public int getSentenceCount(int addr) { if (featOkTst && casFeat_sentenceCount == null) jcas.throwFeatMissing("sentenceCount", "com.dp.edgar.uima.type.SourceDocInfo"); return ll_cas.ll_getIntValue(addr, casFeatCode_sentenceCount); } /** @generated */ public void setSentenceCount(int addr, int v) { if (featOkTst && casFeat_sentenceCount == null) jcas.throwFeatMissing("sentenceCount", "com.dp.edgar.uima.type.SourceDocInfo"); ll_cas.ll_setIntValue(addr, casFeatCode_sentenceCount, v); } /** @generated */ final Feature casFeat_tokenCount; /** @generated */ final int casFeatCode_tokenCount; /** @generated */ public int getTokenCount(int addr) { if (featOkTst && casFeat_tokenCount == null) jcas.throwFeatMissing("tokenCount", "com.dp.edgar.uima.type.SourceDocInfo"); return ll_cas.ll_getIntValue(addr, casFeatCode_tokenCount); } /** @generated */ public void setTokenCount(int addr, int v) { if (featOkTst && casFeat_tokenCount == null) jcas.throwFeatMissing("tokenCount", "com.dp.edgar.uima.type.SourceDocInfo"); ll_cas.ll_setIntValue(addr, casFeatCode_tokenCount, v); } /** * initialize variables to correspond with Cas Type and Features * * @generated */ public SourceDocInfo_Type(JCas jcas, Type casType) { super(jcas, casType); casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator()); casFeat_uri = jcas.getRequiredFeatureDE(casType, "uri", "uima.cas.String", featOkTst); casFeatCode_uri = (null == casFeat_uri) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl) casFeat_uri).getCode(); casFeat_offsetInSource = jcas.getRequiredFeatureDE(casType, "offsetInSource", "uima.cas.Integer", featOkTst); casFeatCode_offsetInSource = (null == casFeat_offsetInSource) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl) casFeat_offsetInSource).getCode(); casFeat_documentSize = jcas.getRequiredFeatureDE(casType, "documentSize", "uima.cas.Integer", featOkTst); casFeatCode_documentSize = (null == casFeat_documentSize) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl) casFeat_documentSize).getCode(); casFeat_filingType = jcas.getRequiredFeatureDE(casType, "filingType", "uima.cas.Integer", featOkTst); casFeatCode_filingType = (null == casFeat_filingType) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl) casFeat_filingType).getCode(); casFeat_documentType = jcas.getRequiredFeatureDE(casType, "documentType", "uima.cas.Integer", featOkTst); casFeatCode_documentType = (null == casFeat_documentType) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl) casFeat_documentType).getCode(); casFeat_timeStamp = jcas.getRequiredFeatureDE(casType, "timeStamp", "uima.cas.String", featOkTst); casFeatCode_timeStamp = (null == casFeat_timeStamp) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl) casFeat_timeStamp).getCode(); casFeat_fileName = jcas.getRequiredFeatureDE(casType, "fileName", "uima.cas.String", featOkTst); casFeatCode_fileName = (null == casFeat_fileName) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl) casFeat_fileName).getCode(); casFeat_sentenceCount = jcas.getRequiredFeatureDE(casType, "sentenceCount", "uima.cas.Integer", featOkTst); casFeatCode_sentenceCount = (null == casFeat_sentenceCount) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl) casFeat_sentenceCount).getCode(); casFeat_tokenCount = jcas.getRequiredFeatureDE(casType, "tokenCount", "uima.cas.Integer", featOkTst); casFeatCode_tokenCount = (null == casFeat_tokenCount) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl) casFeat_tokenCount).getCode(); } }
/** * Updated by JCasGen Sat Mar 07 22:05:56 CET 2015 XML source: * /Users/richarde/dev/bluebrain/git/Bluima/modules/bluima_typesystem/target/jcasgen/typesystem.xml * * @generated */ public class FrequentToken extends Noise { /** * @generated * @ordered */ @SuppressWarnings("hiding") public static final int typeIndexID = JCasRegistry.register(FrequentToken.class); /** * @generated * @ordered */ @SuppressWarnings("hiding") public static final int type = typeIndexID; /** * @generated * @return index of the type */ @Override public int getTypeIndexID() { return typeIndexID; } /** * Never called. Disable default constructor * * @generated */ protected FrequentToken() { /* intentionally empty block */ } /** * Internal - constructor used by generator * * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public FrequentToken(int addr, TOP_Type type) { super(addr, type); readObject(); } /** * @generated * @param jcas JCas to which this Feature Structure belongs */ public FrequentToken(JCas jcas) { super(jcas); readObject(); } /** * @generated * @param jcas JCas to which this Feature Structure belongs * @param begin offset to the begin spot in the SofA * @param end offset to the end spot in the SofA */ public FrequentToken(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); } /** * * <!-- begin-user-doc --> * Write your own initialization here * <!-- end-user-doc --> * * @generated modifiable */ private void readObject() { /*default - does nothing empty block */ } }
/** * Updated by JCasGen Fri Nov 16 15:19:22 MST 2012 XML source: * /Users/AntBurke/dev/workspaces/eclipse/uimaWorkspace/PersonAnnotator/desc/DevTypeSystemDescriptor.xml * * @generated */ public class Person extends Annotation { /** * @generated * @ordered */ @SuppressWarnings("hiding") public static final int typeIndexID = JCasRegistry.register(Person.class); /** * @generated * @ordered */ @SuppressWarnings("hiding") public static final int type = typeIndexID; /** @generated */ @Override public int getTypeIndexID() { return typeIndexID; } /** * Never called. Disable default constructor * * @generated */ protected Person() { /* intentionally empty block */ } /** * Internal - constructor used by generator * * @generated */ public Person(int addr, TOP_Type type) { super(addr, type); readObject(); } /** @generated */ public Person(JCas jcas) { super(jcas); readObject(); } /** @generated */ public Person(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); } /** * * <!-- begin-user-doc --> * Write your own initialization here * <!-- end-user-doc --> * * @generated modifiable */ private void readObject() { /*default - does nothing empty block */ } }
/** * * This class belongs to the package annotator.element and annotates 1,2,3 Grams and extends * {@link TestElement}. It includes the {@link contains} feature which gives the the constituent * tokens in this Ngram. * * <p> * * @author Parag Agrawal * @version %I%, %G% Updated by JCasGen Wed Sep 11 09:29:05 EDT 2013 XML source: * C:/Users/user/git/HW1-paraga/hw1-paraga/src/main/resources/typeSystemDescriptor.xml * @generated */ public class NGram extends TestElement { /** * @generated * @ordered */ @SuppressWarnings("hiding") public static final int typeIndexID = JCasRegistry.register(NGram.class); /** * @generated * @ordered */ @SuppressWarnings("hiding") public static final int type = typeIndexID; /** @generated */ @Override public int getTypeIndexID() { return typeIndexID; } /** * Never called. Disable default constructor * * @generated */ protected NGram() { /* intentionally empty block */ } /** * Internal - constructor used by generator * * @generated */ public NGram(int addr, TOP_Type type) { super(addr, type); readObject(); } /** @generated */ public NGram(JCas jcas) { super(jcas); readObject(); } /** @generated */ public NGram(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); } /** * * <!-- begin-user-doc --> * Write your own initialization here * <!-- end-user-doc --> * * @generated modifiable */ private void readObject() { /*default - does nothing empty block */ } // *--------------* // * Feature: contains /** * getter for contains - gets feature structure array of the constituents tokens. * * @generated */ public FSArray getContains() { if (NGram_Type.featOkTst && ((NGram_Type) jcasType).casFeat_contains == null) jcasType.jcas.throwFeatMissing("contains", "annotator.element.NGram"); return (FSArray) (jcasType.ll_cas.ll_getFSForRef( jcasType.ll_cas.ll_getRefValue(addr, ((NGram_Type) jcasType).casFeatCode_contains))); } /** * setter for contains - sets feature structure array of the constituents tokens. * * @generated */ public void setContains(FSArray v) { if (NGram_Type.featOkTst && ((NGram_Type) jcasType).casFeat_contains == null) jcasType.jcas.throwFeatMissing("contains", "annotator.element.NGram"); jcasType.ll_cas.ll_setRefValue( addr, ((NGram_Type) jcasType).casFeatCode_contains, jcasType.ll_cas.ll_getFSRef(v)); } /** * indexed getter for contains - gets an indexed value - feature structure array of the * constituents tokens. * * @generated */ public Token getContains(int i) { if (NGram_Type.featOkTst && ((NGram_Type) jcasType).casFeat_contains == null) jcasType.jcas.throwFeatMissing("contains", "annotator.element.NGram"); jcasType.jcas.checkArrayBounds( jcasType.ll_cas.ll_getRefValue(addr, ((NGram_Type) jcasType).casFeatCode_contains), i); return (Token) (jcasType.ll_cas.ll_getFSForRef( jcasType.ll_cas.ll_getRefArrayValue( jcasType.ll_cas.ll_getRefValue(addr, ((NGram_Type) jcasType).casFeatCode_contains), i))); } /** * indexed setter for contains - sets an indexed value - feature structure array of the * constituents tokens. * * @generated */ public void setContains(int i, Token v) { if (NGram_Type.featOkTst && ((NGram_Type) jcasType).casFeat_contains == null) jcasType.jcas.throwFeatMissing("contains", "annotator.element.NGram"); jcasType.jcas.checkArrayBounds( jcasType.ll_cas.ll_getRefValue(addr, ((NGram_Type) jcasType).casFeatCode_contains), i); jcasType.ll_cas.ll_setRefArrayValue( jcasType.ll_cas.ll_getRefValue(addr, ((NGram_Type) jcasType).casFeatCode_contains), i, jcasType.ll_cas.ll_getFSRef(v)); } }
/** * Stores the information about a question. Updated by JCasGen Mon Oct 05 13:28:26 EDT 2015 XML * source: * /home/junaraki/git/f15-11-791/template-projects/pi6/pi6-andrewid/src/main/resources/descriptors/typeSystem.xml * * @generated */ public class Question extends ComponentAnnotation { /** * @generated * @ordered */ @SuppressWarnings("hiding") public static final int typeIndexID = JCasRegistry.register(Question.class); /** * @generated * @ordered */ @SuppressWarnings("hiding") public static final int type = typeIndexID; /** * @generated * @return index of the type */ @Override public int getTypeIndexID() { return typeIndexID; } /** * Never called. Disable default constructor * * @generated */ protected Question() { /* intentionally empty block */ } /** * Internal - constructor used by generator * * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public Question(int addr, TOP_Type type) { super(addr, type); readObject(); } /** * @generated * @param jcas JCas to which this Feature Structure belongs */ public Question(JCas jcas) { super(jcas); readObject(); } /** * @generated * @param jcas JCas to which this Feature Structure belongs * @param begin offset to the begin spot in the SofA * @param end offset to the end spot in the SofA */ public Question(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); } /** * * <!-- begin-user-doc --> * Write your own initialization here * <!-- end-user-doc --> * * @generated modifiable */ private void readObject() { /*default - does nothing empty block */ } // *--------------* // * Feature: id /** * getter for id - gets The identifier for the question. * * @generated * @return value of the feature */ public String getId() { if (Question_Type.featOkTst && ((Question_Type) jcasType).casFeat_id == null) jcasType.jcas.throwFeatMissing("id", "type.Question"); return jcasType.ll_cas.ll_getStringValue(addr, ((Question_Type) jcasType).casFeatCode_id); } /** * setter for id - sets The identifier for the question. * * @generated * @param v value to set into the feature */ public void setId(String v) { if (Question_Type.featOkTst && ((Question_Type) jcasType).casFeat_id == null) jcasType.jcas.throwFeatMissing("id", "type.Question"); jcasType.ll_cas.ll_setStringValue(addr, ((Question_Type) jcasType).casFeatCode_id, v); } // *--------------* // * Feature: sentence /** * getter for sentence - gets The text of the question. * * @generated * @return value of the feature */ public String getSentence() { if (Question_Type.featOkTst && ((Question_Type) jcasType).casFeat_sentence == null) jcasType.jcas.throwFeatMissing("sentence", "type.Question"); return jcasType.ll_cas.ll_getStringValue(addr, ((Question_Type) jcasType).casFeatCode_sentence); } /** * setter for sentence - sets The text of the question. * * @generated * @param v value to set into the feature */ public void setSentence(String v) { if (Question_Type.featOkTst && ((Question_Type) jcasType).casFeat_sentence == null) jcasType.jcas.throwFeatMissing("sentence", "type.Question"); jcasType.ll_cas.ll_setStringValue(addr, ((Question_Type) jcasType).casFeatCode_sentence, v); } // *--------------* // * Feature: passages /** * getter for passages - gets Passages associated with this question. * * @generated * @return value of the feature */ public FSList getPassages() { if (Question_Type.featOkTst && ((Question_Type) jcasType).casFeat_passages == null) jcasType.jcas.throwFeatMissing("passages", "type.Question"); return (FSList) (jcasType.ll_cas.ll_getFSForRef( jcasType.ll_cas.ll_getRefValue(addr, ((Question_Type) jcasType).casFeatCode_passages))); } /** * setter for passages - sets Passages associated with this question. * * @generated * @param v value to set into the feature */ public void setPassages(FSList v) { if (Question_Type.featOkTst && ((Question_Type) jcasType).casFeat_passages == null) jcasType.jcas.throwFeatMissing("passages", "type.Question"); jcasType.ll_cas.ll_setRefValue( addr, ((Question_Type) jcasType).casFeatCode_passages, jcasType.ll_cas.ll_getFSRef(v)); } // *--------------* // * Feature: measurement /** * getter for measurement - gets This stores all the measurements related to the question. * * @generated * @return value of the feature */ public Measurement getMeasurement() { if (Question_Type.featOkTst && ((Question_Type) jcasType).casFeat_measurement == null) jcasType.jcas.throwFeatMissing("measurement", "type.Question"); return (Measurement) (jcasType.ll_cas.ll_getFSForRef( jcasType.ll_cas.ll_getRefValue( addr, ((Question_Type) jcasType).casFeatCode_measurement))); } /** * setter for measurement - sets This stores all the measurements related to the question. * * @generated * @param v value to set into the feature */ public void setMeasurement(Measurement v) { if (Question_Type.featOkTst && ((Question_Type) jcasType).casFeat_measurement == null) jcasType.jcas.throwFeatMissing("measurement", "type.Question"); jcasType.ll_cas.ll_setRefValue( addr, ((Question_Type) jcasType).casFeatCode_measurement, jcasType.ll_cas.ll_getFSRef(v)); } }
/** * Updated by JCasGen Mon Aug 04 14:59:26 EDT 2014 * * @generated */ public class EntityBasedComponent_Type extends ComponentAnnotation_Type { /** * @generated * @return the generator for this type */ @Override protected FSGenerator getFSGenerator() { return fsGenerator; } /** @generated */ private final FSGenerator fsGenerator = new FSGenerator() { public FeatureStructure createFS(int addr, CASImpl cas) { if (EntityBasedComponent_Type.this.useExistingInstance) { // Return eq fs instance if already created FeatureStructure fs = EntityBasedComponent_Type.this.jcas.getJfsFromCaddr(addr); if (null == fs) { fs = new EntityBasedComponent(addr, EntityBasedComponent_Type.this); EntityBasedComponent_Type.this.jcas.putJfsFromCaddr(addr, fs); return fs; } return fs; } else return new EntityBasedComponent(addr, EntityBasedComponent_Type.this); } }; /** @generated */ @SuppressWarnings("hiding") public static final int typeIndexID = EntityBasedComponent.typeIndexID; /** * @generated * @modifiable */ @SuppressWarnings("hiding") public static final boolean featOkTst = JCasRegistry.getFeatOkTst("edu.cmu.cs.lti.multiScript.type.EntityBasedComponent"); /** @generated */ final Feature casFeat_containingEntityMentions; /** @generated */ final int casFeatCode_containingEntityMentions; /** * @generated * @param addr low level Feature Structure reference * @return the feature value */ public int getContainingEntityMentions(int addr) { if (featOkTst && casFeat_containingEntityMentions == null) jcas.throwFeatMissing( "containingEntityMentions", "edu.cmu.cs.lti.multiScript.type.EntityBasedComponent"); return ll_cas.ll_getRefValue(addr, casFeatCode_containingEntityMentions); } /** * @generated * @param addr low level Feature Structure reference * @param v value to set */ public void setContainingEntityMentions(int addr, int v) { if (featOkTst && casFeat_containingEntityMentions == null) jcas.throwFeatMissing( "containingEntityMentions", "edu.cmu.cs.lti.multiScript.type.EntityBasedComponent"); ll_cas.ll_setRefValue(addr, casFeatCode_containingEntityMentions, v); } /** @generated */ final Feature casFeat_componentLinks; /** @generated */ final int casFeatCode_componentLinks; /** * @generated * @param addr low level Feature Structure reference * @return the feature value */ public int getComponentLinks(int addr) { if (featOkTst && casFeat_componentLinks == null) jcas.throwFeatMissing( "componentLinks", "edu.cmu.cs.lti.multiScript.type.EntityBasedComponent"); return ll_cas.ll_getRefValue(addr, casFeatCode_componentLinks); } /** * @generated * @param addr low level Feature Structure reference * @param v value to set */ public void setComponentLinks(int addr, int v) { if (featOkTst && casFeat_componentLinks == null) jcas.throwFeatMissing( "componentLinks", "edu.cmu.cs.lti.multiScript.type.EntityBasedComponent"); ll_cas.ll_setRefValue(addr, casFeatCode_componentLinks, v); } /** @generated */ final Feature casFeat_headWord; /** @generated */ final int casFeatCode_headWord; /** * @generated * @param addr low level Feature Structure reference * @return the feature value */ public int getHeadWord(int addr) { if (featOkTst && casFeat_headWord == null) jcas.throwFeatMissing("headWord", "edu.cmu.cs.lti.multiScript.type.EntityBasedComponent"); return ll_cas.ll_getRefValue(addr, casFeatCode_headWord); } /** * @generated * @param addr low level Feature Structure reference * @param v value to set */ public void setHeadWord(int addr, int v) { if (featOkTst && casFeat_headWord == null) jcas.throwFeatMissing("headWord", "edu.cmu.cs.lti.multiScript.type.EntityBasedComponent"); ll_cas.ll_setRefValue(addr, casFeatCode_headWord, v); } /** @generated */ final Feature casFeat_quantity; /** @generated */ final int casFeatCode_quantity; /** * @generated * @param addr low level Feature Structure reference * @return the feature value */ public int getQuantity(int addr) { if (featOkTst && casFeat_quantity == null) jcas.throwFeatMissing("quantity", "edu.cmu.cs.lti.multiScript.type.EntityBasedComponent"); return ll_cas.ll_getRefValue(addr, casFeatCode_quantity); } /** * @generated * @param addr low level Feature Structure reference * @param v value to set */ public void setQuantity(int addr, int v) { if (featOkTst && casFeat_quantity == null) jcas.throwFeatMissing("quantity", "edu.cmu.cs.lti.multiScript.type.EntityBasedComponent"); ll_cas.ll_setRefValue(addr, casFeatCode_quantity, v); } /** * initialize variables to correspond with Cas Type and Features * * @generated * @param jcas JCas * @param casType Type */ public EntityBasedComponent_Type(JCas jcas, Type casType) { super(jcas, casType); casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator()); casFeat_containingEntityMentions = jcas.getRequiredFeatureDE( casType, "containingEntityMentions", "uima.cas.FSList", featOkTst); casFeatCode_containingEntityMentions = (null == casFeat_containingEntityMentions) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl) casFeat_containingEntityMentions).getCode(); casFeat_componentLinks = jcas.getRequiredFeatureDE(casType, "componentLinks", "uima.cas.FSList", featOkTst); casFeatCode_componentLinks = (null == casFeat_componentLinks) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl) casFeat_componentLinks).getCode(); casFeat_headWord = jcas.getRequiredFeatureDE( casType, "headWord", "edu.cmu.cs.lti.multiScript.type.Word", featOkTst); casFeatCode_headWord = (null == casFeat_headWord) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl) casFeat_headWord).getCode(); casFeat_quantity = jcas.getRequiredFeatureDE( casType, "quantity", "edu.cmu.cs.lti.multiScript.type.NumberAnnotation", featOkTst); casFeatCode_quantity = (null == casFeat_quantity) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl) casFeat_quantity).getCode(); } }
/** * Updated by JCasGen Tue Nov 19 00:48:18 EST 2013 XML source: * C:/Users/James_He/git/hw3-jiacongh1/hw3-jiacongh/src/main/resources/descriptors/EvaluationAnnotation.xml * * @generated */ public class ScoredAnnotation extends Annotation { /** * @generated * @ordered */ @SuppressWarnings("hiding") public static final int typeIndexID = JCasRegistry.register(ScoredAnnotation.class); /** * @generated * @ordered */ @SuppressWarnings("hiding") public static final int type = typeIndexID; /** @generated */ @Override public int getTypeIndexID() { return typeIndexID; } /** * Never called. Disable default constructor * * @generated */ protected ScoredAnnotation() { /* intentionally empty block */ } /** * Internal - constructor used by generator * * @generated */ public ScoredAnnotation(int addr, TOP_Type type) { super(addr, type); readObject(); } /** @generated */ public ScoredAnnotation(JCas jcas) { super(jcas); readObject(); } /** @generated */ public ScoredAnnotation(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); } /** * * <!-- begin-user-doc --> * Write your own initialization here * <!-- end-user-doc --> * * @generated modifiable */ private void readObject() { /*default - does nothing empty block */ } // *--------------* // * Feature: score /** * getter for score - gets * * @generated */ public double getScore() { if (ScoredAnnotation_Type.featOkTst && ((ScoredAnnotation_Type) jcasType).casFeat_score == null) jcasType.jcas.throwFeatMissing("score", "org.cleartk.score.type.ScoredAnnotation"); return jcasType.ll_cas.ll_getDoubleValue( addr, ((ScoredAnnotation_Type) jcasType).casFeatCode_score); } /** * setter for score - sets * * @generated */ public void setScore(double v) { if (ScoredAnnotation_Type.featOkTst && ((ScoredAnnotation_Type) jcasType).casFeat_score == null) jcasType.jcas.throwFeatMissing("score", "org.cleartk.score.type.ScoredAnnotation"); jcasType.ll_cas.ll_setDoubleValue( addr, ((ScoredAnnotation_Type) jcasType).casFeatCode_score, v); } }
/** * * This class belongs to the package annotator.element and annotates 1,2,3 Grams and extends * {@link TestElement}. It includes the {@link contains} feature which gives the the constituent * tokens in this Ngram. * * <p> * * @author Parag Agrawal * @version %I%, %G% Updated by JCasGen Wed Sep 11 09:29:05 EDT 2013 * @generated */ public class NGram_Type extends TestElement_Type { /** @generated */ @Override protected FSGenerator getFSGenerator() { return fsGenerator; } /** @generated */ private final FSGenerator fsGenerator = new FSGenerator() { public FeatureStructure createFS(int addr, CASImpl cas) { if (NGram_Type.this.useExistingInstance) { // Return eq fs instance if already created FeatureStructure fs = NGram_Type.this.jcas.getJfsFromCaddr(addr); if (null == fs) { fs = new NGram(addr, NGram_Type.this); NGram_Type.this.jcas.putJfsFromCaddr(addr, fs); return fs; } return fs; } else return new NGram(addr, NGram_Type.this); } }; /** @generated */ @SuppressWarnings("hiding") public static final int typeIndexID = NGram.typeIndexID; /** * @generated * @modifiable */ @SuppressWarnings("hiding") public static final boolean featOkTst = JCasRegistry.getFeatOkTst("annotator.element.NGram"); /** @generated */ final Feature casFeat_contains; /** @generated */ final int casFeatCode_contains; /** @generated */ public int getContains(int addr) { if (featOkTst && casFeat_contains == null) jcas.throwFeatMissing("contains", "annotator.element.NGram"); return ll_cas.ll_getRefValue(addr, casFeatCode_contains); } /** @generated */ public void setContains(int addr, int v) { if (featOkTst && casFeat_contains == null) jcas.throwFeatMissing("contains", "annotator.element.NGram"); ll_cas.ll_setRefValue(addr, casFeatCode_contains, v); } /** @generated */ public int getContains(int addr, int i) { if (featOkTst && casFeat_contains == null) jcas.throwFeatMissing("contains", "annotator.element.NGram"); if (lowLevelTypeChecks) return ll_cas.ll_getRefArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_contains), i, true); jcas.checkArrayBounds(ll_cas.ll_getRefValue(addr, casFeatCode_contains), i); return ll_cas.ll_getRefArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_contains), i); } /** @generated */ public void setContains(int addr, int i, int v) { if (featOkTst && casFeat_contains == null) jcas.throwFeatMissing("contains", "annotator.element.NGram"); if (lowLevelTypeChecks) ll_cas.ll_setRefArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_contains), i, v, true); jcas.checkArrayBounds(ll_cas.ll_getRefValue(addr, casFeatCode_contains), i); ll_cas.ll_setRefArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_contains), i, v); } /** * initialize variables to correspond with Cas Type and Features * * @generated */ public NGram_Type(JCas jcas, Type casType) { super(jcas, casType); casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator()); casFeat_contains = jcas.getRequiredFeatureDE(casType, "contains", "uima.cas.FSArray", featOkTst); casFeatCode_contains = (null == casFeat_contains) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl) casFeat_contains).getCode(); } }
/** * Updated by JCasGen Sun Oct 14 15:39:26 EDT 2012 * * @generated */ public class Noun_Type extends Annotation_Type { /** @generated */ @Override protected FSGenerator getFSGenerator() { return fsGenerator; } /** @generated */ private final FSGenerator fsGenerator = new FSGenerator() { public FeatureStructure createFS(int addr, CASImpl cas) { if (Noun_Type.this.useExistingInstance) { // Return eq fs instance if already created FeatureStructure fs = Noun_Type.this.jcas.getJfsFromCaddr(addr); if (null == fs) { fs = new Noun(addr, Noun_Type.this); Noun_Type.this.jcas.putJfsFromCaddr(addr, fs); return fs; } return fs; } else return new Noun(addr, Noun_Type.this); } }; /** @generated */ @SuppressWarnings("hiding") public static final int typeIndexID = Noun.typeIndexID; /** * @generated * @modifiable */ @SuppressWarnings("hiding") public static final boolean featOkTst = JCasRegistry.getFeatOkTst("edu.cmu.hw1.types.Noun"); /** @generated */ final Feature casFeat_NounId; /** @generated */ final int casFeatCode_NounId; /** @generated */ public String getNounId(int addr) { if (featOkTst && casFeat_NounId == null) jcas.throwFeatMissing("NounId", "edu.cmu.hw1.types.Noun"); return ll_cas.ll_getStringValue(addr, casFeatCode_NounId); } /** @generated */ public void setNounId(int addr, String v) { if (featOkTst && casFeat_NounId == null) jcas.throwFeatMissing("NounId", "edu.cmu.hw1.types.Noun"); ll_cas.ll_setStringValue(addr, casFeatCode_NounId, v); } /** * initialize variables to correspond with Cas Type and Features * * @generated */ public Noun_Type(JCas jcas, Type casType) { super(jcas, casType); casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator()); casFeat_NounId = jcas.getRequiredFeatureDE(casType, "NounId", "uima.cas.String", featOkTst); casFeatCode_NounId = (null == casFeat_NounId) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl) casFeat_NounId).getCode(); } }
/** * Annotation holding the ranking scores for each of the passages associated with this Test Element. * Updated by JCasGen Mon Oct 05 15:32:22 EDT 2015 XML source: * /media/maki/OS/Users/Keith/Documents/CMU/Coursework/11791/PI5/pi5-kmaki/src/main/resources/descriptors/typeSystem.xml * * @generated */ public class Scoring extends SpanModification { /** * @generated * @ordered */ @SuppressWarnings("hiding") public static final int typeIndexID = JCasRegistry.register(Scoring.class); /** * @generated * @ordered */ @SuppressWarnings("hiding") public static final int type = typeIndexID; /** * @generated * @return index of the type */ @Override public int getTypeIndexID() { return typeIndexID; } /** * Never called. Disable default constructor * * @generated */ protected Scoring() { /* intentionally empty block */ } /** * Internal - constructor used by generator * * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public Scoring(int addr, TOP_Type type) { super(addr, type); readObject(); } /** * @generated * @param jcas JCas to which this Feature Structure belongs */ public Scoring(JCas jcas) { super(jcas); readObject(); } /** * @generated * @param jcas JCas to which this Feature Structure belongs * @param begin offset to the begin spot in the SofA * @param end offset to the end spot in the SofA */ public Scoring(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); } /** * * <!-- begin-user-doc --> * Write your own initialization here * <!-- end-user-doc --> * * @generated modifiable */ private void readObject() { /*default - does nothing empty block */ } // *--------------* // * Feature: scores /** * getter for scores - gets The list of scores for each of the respective passages associated with * this Test Element. * * @generated * @return value of the feature */ public FSList getScores() { if (Scoring_Type.featOkTst && ((Scoring_Type) jcasType).casFeat_scores == null) jcasType.jcas.throwFeatMissing("scores", "type.Scoring"); return (FSList) (jcasType.ll_cas.ll_getFSForRef( jcasType.ll_cas.ll_getRefValue(addr, ((Scoring_Type) jcasType).casFeatCode_scores))); } /** * setter for scores - sets The list of scores for each of the respective passages associated with * this Test Element. * * @generated * @param v value to set into the feature */ public void setScores(FSList v) { if (Scoring_Type.featOkTst && ((Scoring_Type) jcasType).casFeat_scores == null) jcasType.jcas.throwFeatMissing("scores", "type.Scoring"); jcasType.ll_cas.ll_setRefValue( addr, ((Scoring_Type) jcasType).casFeatCode_scores, jcasType.ll_cas.ll_getFSRef(v)); } }