Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 /* First created by JCasGen Fri Jul 25 22:12:48 CEST 2014 */
 package it.uniroma2.art.coda.test.ae.type;
 
Updated by JCasGen Tue Aug 05 23:46:46 CEST 2014

Generated:
public class City_Type extends SingleWord_Type {
  

Generated:
  protected FSGenerator getFSGenerator() {return ;}
  

Generated:
  private final FSGenerator fsGenerator = 
    new FSGenerator() {
      public FeatureStructure createFS(int addrCASImpl cas) {
  			 if (City_Type.this.) {
  			   // Return eq fs instance if already created
  		     FeatureStructure fs = City_Type.this..getJfsFromCaddr(addr);
  		     if (null == fs) {
  		       fs = new City(addrCity_Type.this);
  			   City_Type.this..putJfsFromCaddr(addrfs);
  			   return fs;
  		     }
  		     return fs;
        } else return new City(addrCity_Type.this);
  	  }
    };
  

Generated:
  @SuppressWarnings ("hiding")
  public final static int typeIndexID = .;
  

Generated:
Modifiable:
  @SuppressWarnings ("hiding")
  public final static boolean featOkTst = JCasRegistry.getFeatOkTst("it.uniroma2.art.coda.test.ae.type.City");
 
  

Generated:
  final Feature casFeat_name;
  

Generated:
  final int     casFeatCode_name;
  

Generated:
 
  public String getName(int addr) {
        if ( &&  == null)
      .throwFeatMissing("name""it.uniroma2.art.coda.test.ae.type.City");
  }
  

Generated:
    
  public void setName(int addrString v) {
        if ( &&  == null)
      .throwFeatMissing("name""it.uniroma2.art.coda.test.ae.type.City");
    .ll_setStringValue(addrv);}
    
  



  
initialize variables to correspond with Cas Type and Features

Generated:
  public City_Type(JCas jcasType casType) {
    super(jcascasType);
 
     = jcas.getRequiredFeatureDE(casType"name""uima.cas.String");
  }
}



    
New to GrepCode? Check out our FAQ X