blob: 180024bdd879109b44a9f6b977ab7a990de85c08 [file] [log] [blame]
/* First created by JCasGen Wed Jan 11 14:42:22 CET 2012 */
package org.apache.uima.ruta.type;
import org.apache.uima.cas.FeatureStructure;
import org.apache.uima.cas.Type;
import org.apache.uima.cas.impl.CASImpl;
import org.apache.uima.cas.impl.FSGenerator;
import org.apache.uima.cas.impl.TypeImpl;
import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.jcas.tcas.Annotation_Type;
/**
* Updated by JCasGen Wed Jan 11 14:42:26 CET 2012
*
* @generated
*/
public class TokenSeed_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 (TokenSeed_Type.this.useExistingInstance) {
// Return eq fs instance if already created
FeatureStructure fs = TokenSeed_Type.this.jcas.getJfsFromCaddr(addr);
if (null == fs) {
fs = new TokenSeed(addr, TokenSeed_Type.this);
TokenSeed_Type.this.jcas.putJfsFromCaddr(addr, fs);
return fs;
}
return fs;
} else
return new TokenSeed(addr, TokenSeed_Type.this);
}
};
/** @generated */
public final static int typeIndexID = TokenSeed.typeIndexID;
/**
* @generated
* @modifiable
*/
public final static boolean featOkTst = JCasRegistry
.getFeatOkTst("org.apache.uima.ruta.type.TokenSeed");
/**
* initialize variables to correspond with Cas Type and Features
*
* @generated
*/
public TokenSeed_Type(JCas jcas, Type casType) {
super(jcas, casType);
casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl) this.casType, getFSGenerator());
}
}