/* First created by JCasGen Tue Oct 02 12:01:59 CEST 2012 */ package edu.ucdenver.ccp.nlp.core.uima.mention; 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; /** An abstract class for grouping all primitive (string, float, boolean, integer) slot mentions. * Updated by JCasGen Tue Oct 02 12:01:59 CEST 2012 * @generated */ public class CCPPrimitiveSlotMention_Type extends CCPSlotMention_Type { /** @generated */ @Override protected FSGenerator getFSGenerator() {return fsGenerator;} /** @generated */ private final FSGenerator fsGenerator = new FSGenerator() { public FeatureStructure createFS(int addr, CASImpl cas) { if (CCPPrimitiveSlotMention_Type.this.useExistingInstance) { // Return eq fs instance if already created FeatureStructure fs = CCPPrimitiveSlotMention_Type.this.jcas.getJfsFromCaddr(addr); if (null == fs) { fs = new CCPPrimitiveSlotMention(addr, CCPPrimitiveSlotMention_Type.this); CCPPrimitiveSlotMention_Type.this.jcas.putJfsFromCaddr(addr, fs); return fs; } return fs; } else return new CCPPrimitiveSlotMention(addr, CCPPrimitiveSlotMention_Type.this); } }; /** @generated */ @SuppressWarnings ("hiding") public final static int typeIndexID = CCPPrimitiveSlotMention.typeIndexID; /** @generated @modifiable */ @SuppressWarnings ("hiding") public final static boolean featOkTst = JCasRegistry.getFeatOkTst("edu.ucdenver.ccp.nlp.core.uima.mention.CCPPrimitiveSlotMention"); /** initialize variables to correspond with Cas Type and Features * @generated */ public CCPPrimitiveSlotMention_Type(JCas jcas, Type casType) { super(jcas, casType); casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator()); } }