/* First created by JCasGen Mon May 02 14:10:48 CEST 2011 */ package de.tudarmstadt.ukp.dkpro.core.type.pos; 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; /** Common noun * Updated by JCasGen Mon May 02 14:13:32 CEST 2011 * @generated */ public class NN_Type extends N_Type { /** @generated */ protected FSGenerator getFSGenerator() {return fsGenerator;} /** @generated */ private final FSGenerator fsGenerator = new FSGenerator() { public FeatureStructure createFS(int addr, CASImpl cas) { if (NN_Type.this.useExistingInstance) { // Return eq fs instance if already created FeatureStructure fs = NN_Type.this.jcas.getJfsFromCaddr(addr); if (null == fs) { fs = new NN(addr, NN_Type.this); NN_Type.this.jcas.putJfsFromCaddr(addr, fs); return fs; } return fs; } else return new NN(addr, NN_Type.this); } }; /** @generated */ public final static int typeIndexID = NN.typeIndexID; /** @generated @modifiable */ public final static boolean featOkTst = JCasRegistry.getFeatOkTst("de.tudarmstadt.ukp.dkpro.core.type.pos.NN"); /** initialize variables to correspond with Cas Type and Features * @generated */ public NN_Type(JCas jcas, Type casType) { super(jcas, casType); casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator()); } }