
/* First created by JCasGen Wed Apr 04 11:24:03 CEST 2018 */
package uhh_lt.newsleak.types;

import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.cas.impl.TypeImpl;
import org.apache.uima.cas.Type;
import org.apache.uima.cas.impl.FeatureImpl;
import org.apache.uima.cas.Feature;
import org.apache.uima.jcas.tcas.Annotation_Type;

/** 
 * Updated by JCasGen Thu Apr 04 18:38:29 CEST 2019
 * @generated */
public class Paragraph_Type extends Annotation_Type {
  /** @generated */
  @SuppressWarnings ("hiding")
  public final static int typeIndexID = Paragraph.typeIndexID;
  /** @generated 
     @modifiable */
  @SuppressWarnings ("hiding")
  public final static boolean featOkTst = JCasRegistry.getFeatOkTst("uhh_lt.newsleak.types.Paragraph");
 
  /** @generated */
  final Feature casFeat_language;
  /** @generated */
  final int     casFeatCode_language;
  /** @generated
   * @param addr low level Feature Structure reference
   * @return the feature value 
   */ 
  public String getLanguage(int addr) {
        if (featOkTst && casFeat_language == null)
      jcas.throwFeatMissing("language", "uhh_lt.newsleak.types.Paragraph");
    return ll_cas.ll_getStringValue(addr, casFeatCode_language);
  }
  /** @generated
   * @param addr low level Feature Structure reference
   * @param v value to set 
   */    
  public void setLanguage(int addr, String v) {
        if (featOkTst && casFeat_language == null)
      jcas.throwFeatMissing("language", "uhh_lt.newsleak.types.Paragraph");
    ll_cas.ll_setStringValue(addr, casFeatCode_language, v);}
    
  
 
  /** @generated */
  final Feature casFeat_isNotFulltext;
  /** @generated */
  final int     casFeatCode_isNotFulltext;
  /** @generated
   * @param addr low level Feature Structure reference
   * @return the feature value 
   */ 
  public boolean getIsNotFulltext(int addr) {
        if (featOkTst && casFeat_isNotFulltext == null)
      jcas.throwFeatMissing("isNotFulltext", "uhh_lt.newsleak.types.Paragraph");
    return ll_cas.ll_getBooleanValue(addr, casFeatCode_isNotFulltext);
  }
  /** @generated
   * @param addr low level Feature Structure reference
   * @param v value to set 
   */    
  public void setIsNotFulltext(int addr, boolean v) {
        if (featOkTst && casFeat_isNotFulltext == null)
      jcas.throwFeatMissing("isNotFulltext", "uhh_lt.newsleak.types.Paragraph");
    ll_cas.ll_setBooleanValue(addr, casFeatCode_isNotFulltext, v);}
    
  



  /** initialize variables to correspond with Cas Type and Features
	 * @generated
	 * @param jcas JCas
	 * @param casType Type 
	 */
  public Paragraph_Type(JCas jcas, Type casType) {
    super(jcas, casType);
    casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

 
    casFeat_language = jcas.getRequiredFeatureDE(casType, "language", "uima.cas.String", featOkTst);
    casFeatCode_language  = (null == casFeat_language) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_language).getCode();

 
    casFeat_isNotFulltext = jcas.getRequiredFeatureDE(casType, "isNotFulltext", "uima.cas.Boolean", featOkTst);
    casFeatCode_isNotFulltext  = (null == casFeat_isNotFulltext) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_isNotFulltext).getCode();

  }
}



    