/* First created by JCasGen Fri Mar 11 15:22:34 ART 2011 */ package edu.isistan.uima.unified.typesystems.nlp; 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 edu.isistan.uima.unified.typesystems.IdentifiableAnnotation_Type; /** * Updated by JCasGen Fri Mar 11 15:22:35 ART 2011 * @generated */ public class Coreference_Type extends IdentifiableAnnotation_Type { /** @generated */ protected FSGenerator getFSGenerator() {return fsGenerator;} /** @generated */ private final FSGenerator fsGenerator = new FSGenerator() { public FeatureStructure createFS(int addr, CASImpl cas) { if (Coreference_Type.this.useExistingInstance) { // Return eq fs instance if already created FeatureStructure fs = Coreference_Type.this.jcas.getJfsFromCaddr(addr); if (null == fs) { fs = new Coreference(addr, Coreference_Type.this); Coreference_Type.this.jcas.putJfsFromCaddr(addr, fs); return fs; } return fs; } else return new Coreference(addr, Coreference_Type.this); } }; /** @generated */ public final static int typeIndexID = Coreference.typeIndexID; /** @generated @modifiable */ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("edu.isistan.uima.unified.typesystems.nlp.Coreference"); /** initialize variables to correspond with Cas Type and Features * @generated */ public Coreference_Type(JCas jcas, Type casType) { super(jcas, casType); casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator()); } }