Exemplo n.º 1
0
public class Token extends Annotation {

  public static final int typeIndexID = JCasRegistry.register(Token.class);

  public static final int type = typeIndexID;

  public int getTypeIndexID() {
    return typeIndexID;
  }

  // Never called. Disable default constructor
  protected Token() {}

  /** Internal - Constructor used by generator */
  public Token(int addr, TOP_Type type) {
    super(addr, type);
  }

  public Token(JCas jcas) {
    super(jcas);
  }

  public Token(JCas jcas, int start, int end) {
    super(jcas, start, end);
  }
}
Exemplo n.º 2
0
/**
 * Updated by JCasGen Tue Mar 06 16:28:20 CET 2012 XML source:
 * /vol/home-vol3/wbi/wbi_stud/VLKB/Tim/vlkb/chemspotVSoscar3/desc/cr/iobCR.xml
 *
 * @generated
 */
public class GeneOrGeneProduct extends NamedEntity {
  /**
   * @generated
   * @ordered
   */
  public static final int typeIndexID = JCasRegistry.register(GeneOrGeneProduct.class);
  /**
   * @generated
   * @ordered
   */
  public static final int type = typeIndexID;
  /** @generated */
  public int getTypeIndexID() {
    return typeIndexID;
  }

  /**
   * Never called. Disable default constructor
   *
   * @generated
   */
  protected GeneOrGeneProduct() {
    /* intentionally empty block */
  }

  /**
   * Internal - constructor used by generator
   *
   * @generated
   */
  public GeneOrGeneProduct(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }

  /** @generated */
  public GeneOrGeneProduct(JCas jcas) {
    super(jcas);
    readObject();
  }

  /** @generated */
  public GeneOrGeneProduct(JCas jcas, int begin, int end) {
    super(jcas);
    setBegin(begin);
    setEnd(end);
    readObject();
  }

  /**
   *
   * <!-- begin-user-doc -->
   * Write your own initialization here
   * <!-- end-user-doc -->
   *
   * @generated modifiable
   */
  private void readObject() {}
}
Exemplo n.º 3
0
/**
 * Proper Noun, plural Updated by JCasGen Tue Mar 06 16:28:17 CET 2012 XML source:
 * /vol/home-vol3/wbi/wbi_stud/VLKB/Tim/vlkb/chemspotVSoscar3/desc/cr/iobCR.xml
 *
 * @generated
 */
public class NNPS extends ProperNoun {
  /**
   * @generated
   * @ordered
   */
  public static final int typeIndexID = JCasRegistry.register(NNPS.class);
  /**
   * @generated
   * @ordered
   */
  public static final int type = typeIndexID;
  /** @generated */
  public int getTypeIndexID() {
    return typeIndexID;
  }

  /**
   * Never called. Disable default constructor
   *
   * @generated
   */
  protected NNPS() {
    /* intentionally empty block */
  }

  /**
   * Internal - constructor used by generator
   *
   * @generated
   */
  public NNPS(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }

  /** @generated */
  public NNPS(JCas jcas) {
    super(jcas);
    readObject();
  }

  /**
   *
   * <!-- begin-user-doc -->
   * Write your own initialization here
   * <!-- end-user-doc -->
   *
   * @generated modifiable
   */
  private void readObject() {}
}
/**
 * A parent annotation which expects individual annotation types to inherit from. Updated by JCasGen
 * Mon Oct 19 13:23:53 EDT 2015 XML source: /Users/Yash/Dropbox/CMU/courses/Design and Engineering
 * of Intelligent Information Systems/pi7-ygaur/src/main/resources/descriptors/typeSystem.xml
 *
 * @generated
 */
public class ComponentAnnotation extends Annotation {
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int typeIndexID = JCasRegistry.register(ComponentAnnotation.class);
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int type = typeIndexID;
  /**
   * @generated
   * @return index of the type
   */
  @Override
  public int getTypeIndexID() {
    return typeIndexID;
  }

  /**
   * Never called. Disable default constructor
   *
   * @generated
   */
  protected ComponentAnnotation() {
    /* intentionally empty block */
  }

  /**
   * Internal - constructor used by generator
   *
   * @generated
   * @param addr low level Feature Structure reference
   * @param type the type of this Feature Structure
   */
  public ComponentAnnotation(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }

  /**
   * @generated
   * @param jcas JCas to which this Feature Structure belongs
   */
  public ComponentAnnotation(JCas jcas) {
    super(jcas);
    readObject();
  }

  /**
   * @generated
   * @param jcas JCas to which this Feature Structure belongs
   * @param begin offset to the begin spot in the SofA
   * @param end offset to the end spot in the SofA
   */
  public ComponentAnnotation(JCas jcas, int begin, int end) {
    super(jcas);
    setBegin(begin);
    setEnd(end);
    readObject();
  }

  /**
   *
   * <!-- begin-user-doc -->
   * Write your own initialization here
   * <!-- end-user-doc -->
   *
   * @generated modifiable
   */
  private void readObject() {
    /*default - does nothing empty block */
  }

  // *--------------*
  // * Feature: componentId

  /**
   * getter for componentId - gets An identifier that specifies which system produced this
   * annotation.
   *
   * @generated
   * @return value of the feature
   */
  public String getComponentId() {
    if (ComponentAnnotation_Type.featOkTst
        && ((ComponentAnnotation_Type) jcasType).casFeat_componentId == null)
      jcasType.jcas.throwFeatMissing("componentId", "type.ComponentAnnotation");
    return jcasType.ll_cas.ll_getStringValue(
        addr, ((ComponentAnnotation_Type) jcasType).casFeatCode_componentId);
  }

  /**
   * setter for componentId - sets An identifier that specifies which system produced this
   * annotation.
   *
   * @generated
   * @param v value to set into the feature
   */
  public void setComponentId(String v) {
    if (ComponentAnnotation_Type.featOkTst
        && ((ComponentAnnotation_Type) jcasType).casFeat_componentId == null)
      jcasType.jcas.throwFeatMissing("componentId", "type.ComponentAnnotation");
    jcasType.ll_cas.ll_setStringValue(
        addr, ((ComponentAnnotation_Type) jcasType).casFeatCode_componentId, v);
  }

  // *--------------*
  // * Feature: score

  /**
   * getter for score - gets The ranking score acquired for the answer and the confidence score
   * acquired for the question.
   *
   * @generated
   * @return value of the feature
   */
  public double getScore() {
    if (ComponentAnnotation_Type.featOkTst
        && ((ComponentAnnotation_Type) jcasType).casFeat_score == null)
      jcasType.jcas.throwFeatMissing("score", "type.ComponentAnnotation");
    return jcasType.ll_cas.ll_getDoubleValue(
        addr, ((ComponentAnnotation_Type) jcasType).casFeatCode_score);
  }

  /**
   * setter for score - sets The ranking score acquired for the answer and the confidence score
   * acquired for the question.
   *
   * @generated
   * @param v value to set into the feature
   */
  public void setScore(double v) {
    if (ComponentAnnotation_Type.featOkTst
        && ((ComponentAnnotation_Type) jcasType).casFeat_score == null)
      jcasType.jcas.throwFeatMissing("score", "type.ComponentAnnotation");
    jcasType.ll_cas.ll_setDoubleValue(
        addr, ((ComponentAnnotation_Type) jcasType).casFeatCode_score, v);
  }
}
Exemplo n.º 5
0
/**
 * Automatically generated type for Enzyme Updated by JCasGen Tue Mar 10 17:57:37 EET 2015 XML
 * source: desc/sbt_typesystem.xml
 *
 * @generated
 */
public class Enzyme extends Annotation {
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int typeIndexID = JCasRegistry.register(Enzyme.class);
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int type = typeIndexID;
  /**
   * @generated
   * @return index of the type
   */
  @Override
  public int getTypeIndexID() {
    return typeIndexID;
  }

  /**
   * Never called. Disable default constructor
   *
   * @generated
   */
  protected Enzyme() {
    /* intentionally empty block */
  }

  /**
   * Internal - constructor used by generator
   *
   * @generated
   * @param addr low level Feature Structure reference
   * @param type the type of this Feature Structure
   */
  public Enzyme(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }

  /**
   * @generated
   * @param jcas JCas to which this Feature Structure belongs
   */
  public Enzyme(JCas jcas) {
    super(jcas);
    readObject();
  }

  /**
   * @generated
   * @param jcas JCas to which this Feature Structure belongs
   * @param begin offset to the begin spot in the SofA
   * @param end offset to the end spot in the SofA
   */
  public Enzyme(JCas jcas, int begin, int end) {
    super(jcas);
    setBegin(begin);
    setEnd(end);
    readObject();
  }

  /**
   *
   * <!-- begin-user-doc -->
   * Write your own initialization here
   * <!-- end-user-doc -->
   *
   * @generated modifiable
   */
  private void readObject() {
    /*default - does nothing empty block */
  }

  // *--------------*
  // * Feature: string

  /**
   * getter for string - gets Feature <string> for type <Enzyme>
   *
   * @generated
   * @return value of the feature
   */
  public String getString() {
    if (Enzyme_Type.featOkTst && ((Enzyme_Type) jcasType).casFeat_string == null)
      jcasType.jcas.throwFeatMissing("string", "com.ontotext.s4.api.types.sbt.Enzyme");
    return jcasType.ll_cas.ll_getStringValue(addr, ((Enzyme_Type) jcasType).casFeatCode_string);
  }

  /**
   * setter for string - sets Feature <string> for type <Enzyme>
   *
   * @generated
   * @param v value to set into the feature
   */
  public void setString(String v) {
    if (Enzyme_Type.featOkTst && ((Enzyme_Type) jcasType).casFeat_string == null)
      jcasType.jcas.throwFeatMissing("string", "com.ontotext.s4.api.types.sbt.Enzyme");
    jcasType.ll_cas.ll_setStringValue(addr, ((Enzyme_Type) jcasType).casFeatCode_string, v);
  }

  // *--------------*
  // * Feature: class_feature

  /**
   * getter for class_feature - gets Feature <class_feature> for type <Enzyme>
   *
   * @generated
   * @return value of the feature
   */
  public String getClass_feature() {
    if (Enzyme_Type.featOkTst && ((Enzyme_Type) jcasType).casFeat_class_feature == null)
      jcasType.jcas.throwFeatMissing("class_feature", "com.ontotext.s4.api.types.sbt.Enzyme");
    return jcasType.ll_cas.ll_getStringValue(
        addr, ((Enzyme_Type) jcasType).casFeatCode_class_feature);
  }

  /**
   * setter for class_feature - sets Feature <class_feature> for type <Enzyme>
   *
   * @generated
   * @param v value to set into the feature
   */
  public void setClass_feature(String v) {
    if (Enzyme_Type.featOkTst && ((Enzyme_Type) jcasType).casFeat_class_feature == null)
      jcasType.jcas.throwFeatMissing("class_feature", "com.ontotext.s4.api.types.sbt.Enzyme");
    jcasType.ll_cas.ll_setStringValue(addr, ((Enzyme_Type) jcasType).casFeatCode_class_feature, v);
  }

  // *--------------*
  // * Feature: inst

  /**
   * getter for inst - gets Feature <inst> for type <Enzyme>
   *
   * @generated
   * @return value of the feature
   */
  public String getInst() {
    if (Enzyme_Type.featOkTst && ((Enzyme_Type) jcasType).casFeat_inst == null)
      jcasType.jcas.throwFeatMissing("inst", "com.ontotext.s4.api.types.sbt.Enzyme");
    return jcasType.ll_cas.ll_getStringValue(addr, ((Enzyme_Type) jcasType).casFeatCode_inst);
  }

  /**
   * setter for inst - sets Feature <inst> for type <Enzyme>
   *
   * @generated
   * @param v value to set into the feature
   */
  public void setInst(String v) {
    if (Enzyme_Type.featOkTst && ((Enzyme_Type) jcasType).casFeat_inst == null)
      jcasType.jcas.throwFeatMissing("inst", "com.ontotext.s4.api.types.sbt.Enzyme");
    jcasType.ll_cas.ll_setStringValue(addr, ((Enzyme_Type) jcasType).casFeatCode_inst, v);
  }

  // *--------------*
  // * Feature: type_feature

  /**
   * getter for type_feature - gets Feature <type_feature> for type <Enzyme>
   *
   * @generated
   * @return value of the feature
   */
  public String getType_feature() {
    if (Enzyme_Type.featOkTst && ((Enzyme_Type) jcasType).casFeat_type_feature == null)
      jcasType.jcas.throwFeatMissing("type_feature", "com.ontotext.s4.api.types.sbt.Enzyme");
    return jcasType.ll_cas.ll_getStringValue(
        addr, ((Enzyme_Type) jcasType).casFeatCode_type_feature);
  }

  /**
   * setter for type_feature - sets Feature <type_feature> for type <Enzyme>
   *
   * @generated
   * @param v value to set into the feature
   */
  public void setType_feature(String v) {
    if (Enzyme_Type.featOkTst && ((Enzyme_Type) jcasType).casFeat_type_feature == null)
      jcasType.jcas.throwFeatMissing("type_feature", "com.ontotext.s4.api.types.sbt.Enzyme");
    jcasType.ll_cas.ll_setStringValue(addr, ((Enzyme_Type) jcasType).casFeatCode_type_feature, v);
  }
}
/**
 * Updated by JCasGen Wed Sep 25 09:03:34 CEST 2013 XML source:
 * /home/zesch/workspace_new/dkpro.similarity-asl/dkpro.similarity.experiments.api-asl/src/main/resources/desc/type/SemanticRelatedness.xml
 *
 * @generated
 */
public class AnnotationPair extends Annotation {
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int typeIndexID = JCasRegistry.register(AnnotationPair.class);
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int type = typeIndexID;
  /** @generated */
  @Override
  public int getTypeIndexID() {
    return typeIndexID;
  }

  /**
   * Never called. Disable default constructor
   *
   * @generated
   */
  protected AnnotationPair() {
    /* intentionally empty block */
  }

  /**
   * Internal - constructor used by generator
   *
   * @generated
   */
  public AnnotationPair(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }

  /** @generated */
  public AnnotationPair(JCas jcas) {
    super(jcas);
    readObject();
  }

  /** @generated */
  public AnnotationPair(JCas jcas, int begin, int end) {
    super(jcas);
    setBegin(begin);
    setEnd(end);
    readObject();
  }

  /**
   *
   * <!-- begin-user-doc -->
   * Write your own initialization here
   * <!-- end-user-doc -->
   *
   * @generated modifiable
   */
  private void readObject() {
    /*default - does nothing empty block */
  }

  // *--------------*
  // * Feature: Annotation1

  /**
   * getter for Annotation1 - gets
   *
   * @generated
   */
  public Annotation getAnnotation1() {
    if (AnnotationPair_Type.featOkTst
        && ((AnnotationPair_Type) jcasType).casFeat_Annotation1 == null)
      jcasType.jcas.throwFeatMissing("Annotation1", "dkpro.similarity.type.AnnotationPair");
    return (Annotation)
        (jcasType.ll_cas.ll_getFSForRef(
            jcasType.ll_cas.ll_getRefValue(
                addr, ((AnnotationPair_Type) jcasType).casFeatCode_Annotation1)));
  }

  /**
   * setter for Annotation1 - sets
   *
   * @generated
   */
  public void setAnnotation1(Annotation v) {
    if (AnnotationPair_Type.featOkTst
        && ((AnnotationPair_Type) jcasType).casFeat_Annotation1 == null)
      jcasType.jcas.throwFeatMissing("Annotation1", "dkpro.similarity.type.AnnotationPair");
    jcasType.ll_cas.ll_setRefValue(
        addr,
        ((AnnotationPair_Type) jcasType).casFeatCode_Annotation1,
        jcasType.ll_cas.ll_getFSRef(v));
  }

  // *--------------*
  // * Feature: Annotation2

  /**
   * getter for Annotation2 - gets
   *
   * @generated
   */
  public Annotation getAnnotation2() {
    if (AnnotationPair_Type.featOkTst
        && ((AnnotationPair_Type) jcasType).casFeat_Annotation2 == null)
      jcasType.jcas.throwFeatMissing("Annotation2", "dkpro.similarity.type.AnnotationPair");
    return (Annotation)
        (jcasType.ll_cas.ll_getFSForRef(
            jcasType.ll_cas.ll_getRefValue(
                addr, ((AnnotationPair_Type) jcasType).casFeatCode_Annotation2)));
  }

  /**
   * setter for Annotation2 - sets
   *
   * @generated
   */
  public void setAnnotation2(Annotation v) {
    if (AnnotationPair_Type.featOkTst
        && ((AnnotationPair_Type) jcasType).casFeat_Annotation2 == null)
      jcasType.jcas.throwFeatMissing("Annotation2", "dkpro.similarity.type.AnnotationPair");
    jcasType.ll_cas.ll_setRefValue(
        addr,
        ((AnnotationPair_Type) jcasType).casFeatCode_Annotation2,
        jcasType.ll_cas.ll_getFSRef(v));
  }

  // *--------------*
  // * Feature: StringRepresentation1

  /**
   * getter for StringRepresentation1 - gets
   *
   * @generated
   */
  public String getStringRepresentation1() {
    if (AnnotationPair_Type.featOkTst
        && ((AnnotationPair_Type) jcasType).casFeat_StringRepresentation1 == null)
      jcasType.jcas.throwFeatMissing(
          "StringRepresentation1", "dkpro.similarity.type.AnnotationPair");
    return jcasType.ll_cas.ll_getStringValue(
        addr, ((AnnotationPair_Type) jcasType).casFeatCode_StringRepresentation1);
  }

  /**
   * setter for StringRepresentation1 - sets
   *
   * @generated
   */
  public void setStringRepresentation1(String v) {
    if (AnnotationPair_Type.featOkTst
        && ((AnnotationPair_Type) jcasType).casFeat_StringRepresentation1 == null)
      jcasType.jcas.throwFeatMissing(
          "StringRepresentation1", "dkpro.similarity.type.AnnotationPair");
    jcasType.ll_cas.ll_setStringValue(
        addr, ((AnnotationPair_Type) jcasType).casFeatCode_StringRepresentation1, v);
  }

  // *--------------*
  // * Feature: StringRepresentation2

  /**
   * getter for StringRepresentation2 - gets
   *
   * @generated
   */
  public String getStringRepresentation2() {
    if (AnnotationPair_Type.featOkTst
        && ((AnnotationPair_Type) jcasType).casFeat_StringRepresentation2 == null)
      jcasType.jcas.throwFeatMissing(
          "StringRepresentation2", "dkpro.similarity.type.AnnotationPair");
    return jcasType.ll_cas.ll_getStringValue(
        addr, ((AnnotationPair_Type) jcasType).casFeatCode_StringRepresentation2);
  }

  /**
   * setter for StringRepresentation2 - sets
   *
   * @generated
   */
  public void setStringRepresentation2(String v) {
    if (AnnotationPair_Type.featOkTst
        && ((AnnotationPair_Type) jcasType).casFeat_StringRepresentation2 == null)
      jcasType.jcas.throwFeatMissing(
          "StringRepresentation2", "dkpro.similarity.type.AnnotationPair");
    jcasType.ll_cas.ll_setStringValue(
        addr, ((AnnotationPair_Type) jcasType).casFeatCode_StringRepresentation2, v);
  }
}
/**
 * This type represents a text-hypothesis pair. Updated by JCasGen Fri Oct 05 20:16:50 CEST 2012 XML
 * source:
 * /Users/tailblues/progs/github/Excitement-Open-Platform/common/src/main/resources/desc/type/EntailmentTypes.xml
 *
 * @generated
 */
public class Pair extends TOP {
  /**
   * @generated
   * @ordered
   */
  // @SuppressWarnings ("hiding")
  public static final int typeIndexID = JCasRegistry.register(Pair.class);
  /**
   * @generated
   * @ordered
   */
  // @SuppressWarnings ("hiding")
  public static final int type = typeIndexID;
  /** @generated */
  @Override
  public int getTypeIndexID() {
    return typeIndexID;
  }

  /**
   * Never called. Disable default constructor
   *
   * @generated
   */
  protected Pair() {
    /* intentionally empty block */
  }

  /**
   * Internal - constructor used by generator
   *
   * @generated
   */
  public Pair(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }

  /** @generated */
  public Pair(JCas jcas) {
    super(jcas);
    readObject();
  }

  /**
   *
   * <!-- begin-user-doc -->
   * Write your own initialization here
   * <!-- end-user-doc -->
   *
   * @generated modifiable
   */
  private void readObject() {
    /*default - does nothing empty block */
  }

  // *--------------*
  // * Feature: pairID

  /**
   * getter for pairID - gets ID of this pair. The main purpose of this value is to distinguish a
   * certain pair among multiple pairs.
   *
   * @generated
   */
  public String getPairID() {
    if (Pair_Type.featOkTst && ((Pair_Type) jcasType).casFeat_pairID == null)
      jcasType.jcas.throwFeatMissing("pairID", "eu.excitement.type.entailment.Pair");
    return jcasType.ll_cas.ll_getStringValue(addr, ((Pair_Type) jcasType).casFeatCode_pairID);
  }

  /**
   * setter for pairID - sets ID of this pair. The main purpose of this value is to distinguish a
   * certain pair among multiple pairs.
   *
   * @generated
   */
  public void setPairID(String v) {
    if (Pair_Type.featOkTst && ((Pair_Type) jcasType).casFeat_pairID == null)
      jcasType.jcas.throwFeatMissing("pairID", "eu.excitement.type.entailment.Pair");
    jcasType.ll_cas.ll_setStringValue(addr, ((Pair_Type) jcasType).casFeatCode_pairID, v);
  }

  // *--------------*
  // * Feature: text

  /**
   * getter for text - gets This feature points a Text instance, which rep- resents the text part of
   * this pair.
   *
   * @generated
   */
  public Text getText() {
    if (Pair_Type.featOkTst && ((Pair_Type) jcasType).casFeat_text == null)
      jcasType.jcas.throwFeatMissing("text", "eu.excitement.type.entailment.Pair");
    return (Text)
        (jcasType.ll_cas.ll_getFSForRef(
            jcasType.ll_cas.ll_getRefValue(addr, ((Pair_Type) jcasType).casFeatCode_text)));
  }

  /**
   * setter for text - sets This feature points a Text instance, which rep- resents the text part of
   * this pair.
   *
   * @generated
   */
  public void setText(Text v) {
    if (Pair_Type.featOkTst && ((Pair_Type) jcasType).casFeat_text == null)
      jcasType.jcas.throwFeatMissing("text", "eu.excitement.type.entailment.Pair");
    jcasType.ll_cas.ll_setRefValue(
        addr, ((Pair_Type) jcasType).casFeatCode_text, jcasType.ll_cas.ll_getFSRef(v));
  }

  // *--------------*
  // * Feature: hypothesis

  /**
   * getter for hypothesis - gets This feature points a Hypothesis instance, which represents the
   * hypothesis part of this pair.
   *
   * @generated
   */
  public Hypothesis getHypothesis() {
    if (Pair_Type.featOkTst && ((Pair_Type) jcasType).casFeat_hypothesis == null)
      jcasType.jcas.throwFeatMissing("hypothesis", "eu.excitement.type.entailment.Pair");
    return (Hypothesis)
        (jcasType.ll_cas.ll_getFSForRef(
            jcasType.ll_cas.ll_getRefValue(addr, ((Pair_Type) jcasType).casFeatCode_hypothesis)));
  }

  /**
   * setter for hypothesis - sets This feature points a Hypothesis instance, which represents the
   * hypothesis part of this pair.
   *
   * @generated
   */
  public void setHypothesis(Hypothesis v) {
    if (Pair_Type.featOkTst && ((Pair_Type) jcasType).casFeat_hypothesis == null)
      jcasType.jcas.throwFeatMissing("hypothesis", "eu.excitement.type.entailment.Pair");
    jcasType.ll_cas.ll_setRefValue(
        addr, ((Pair_Type) jcasType).casFeatCode_hypothesis, jcasType.ll_cas.ll_getFSRef(v));
  }

  // *--------------*
  // * Feature: goldAnswer

  /**
   * getter for goldAnswer - gets This features records the gold standard answer for this pair. If
   * the pair (and CAS) represents a training data, this value will be filled in with the gold
   * standard answer. If it is a null value, the pair represents a entailment problem that is yet to
   * be answered.
   *
   * @generated
   */
  public String getGoldAnswer() {
    if (Pair_Type.featOkTst && ((Pair_Type) jcasType).casFeat_goldAnswer == null)
      jcasType.jcas.throwFeatMissing("goldAnswer", "eu.excitement.type.entailment.Pair");
    return jcasType.ll_cas.ll_getStringValue(addr, ((Pair_Type) jcasType).casFeatCode_goldAnswer);
  }

  /**
   * setter for goldAnswer - sets This features records the gold standard answer for this pair. If
   * the pair (and CAS) represents a training data, this value will be filled in with the gold
   * standard answer. If it is a null value, the pair represents a entailment problem that is yet to
   * be answered.
   *
   * @generated
   */
  public void setGoldAnswer(String v) {
    if (Pair_Type.featOkTst && ((Pair_Type) jcasType).casFeat_goldAnswer == null)
      jcasType.jcas.throwFeatMissing("goldAnswer", "eu.excitement.type.entailment.Pair");
    jcasType.ll_cas.ll_setStringValue(addr, ((Pair_Type) jcasType).casFeatCode_goldAnswer, v);
  }
}
Exemplo n.º 8
0
/**
 * Annotation holding the ranking scores for each of the passages associated with this Test Element.
 * Updated by JCasGen Mon Oct 05 15:32:22 EDT 2015 XML source:
 * /media/maki/OS/Users/Keith/Documents/CMU/Coursework/11791/PI5/pi5-kmaki/src/main/resources/descriptors/typeSystem.xml
 *
 * @generated
 */
public class Scoring extends SpanModification {
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int typeIndexID = JCasRegistry.register(Scoring.class);
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int type = typeIndexID;
  /**
   * @generated
   * @return index of the type
   */
  @Override
  public int getTypeIndexID() {
    return typeIndexID;
  }

  /**
   * Never called. Disable default constructor
   *
   * @generated
   */
  protected Scoring() {
    /* intentionally empty block */
  }

  /**
   * Internal - constructor used by generator
   *
   * @generated
   * @param addr low level Feature Structure reference
   * @param type the type of this Feature Structure
   */
  public Scoring(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }

  /**
   * @generated
   * @param jcas JCas to which this Feature Structure belongs
   */
  public Scoring(JCas jcas) {
    super(jcas);
    readObject();
  }

  /**
   * @generated
   * @param jcas JCas to which this Feature Structure belongs
   * @param begin offset to the begin spot in the SofA
   * @param end offset to the end spot in the SofA
   */
  public Scoring(JCas jcas, int begin, int end) {
    super(jcas);
    setBegin(begin);
    setEnd(end);
    readObject();
  }

  /**
   *
   * <!-- begin-user-doc -->
   * Write your own initialization here
   * <!-- end-user-doc -->
   *
   * @generated modifiable
   */
  private void readObject() {
    /*default - does nothing empty block */
  }

  // *--------------*
  // * Feature: scores

  /**
   * getter for scores - gets The list of scores for each of the respective passages associated with
   * this Test Element.
   *
   * @generated
   * @return value of the feature
   */
  public FSList getScores() {
    if (Scoring_Type.featOkTst && ((Scoring_Type) jcasType).casFeat_scores == null)
      jcasType.jcas.throwFeatMissing("scores", "type.Scoring");
    return (FSList)
        (jcasType.ll_cas.ll_getFSForRef(
            jcasType.ll_cas.ll_getRefValue(addr, ((Scoring_Type) jcasType).casFeatCode_scores)));
  }

  /**
   * setter for scores - sets The list of scores for each of the respective passages associated with
   * this Test Element.
   *
   * @generated
   * @param v value to set into the feature
   */
  public void setScores(FSList v) {
    if (Scoring_Type.featOkTst && ((Scoring_Type) jcasType).casFeat_scores == null)
      jcasType.jcas.throwFeatMissing("scores", "type.Scoring");
    jcasType.ll_cas.ll_setRefValue(
        addr, ((Scoring_Type) jcasType).casFeatCode_scores, jcasType.ll_cas.ll_getFSRef(v));
  }
}
Exemplo n.º 9
0
/**
 * The annotator object contains information which is used to determine who/what generated an
 * annotation. Updated by JCasGen Tue Oct 02 12:01:59 CEST 2012 XML source:
 * D:/ChemSpot/git/ChemSpot/desc/cr/CraftCR.xml
 *
 * @generated
 */
public class CCPAnnotator extends TOP {
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int typeIndexID = JCasRegistry.register(CCPAnnotator.class);
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int type = typeIndexID;
  /** @generated */
  @Override
  public int getTypeIndexID() {
    return typeIndexID;
  }

  /**
   * Never called. Disable default constructor
   *
   * @generated
   */
  protected CCPAnnotator() {
    /* intentionally empty block */
  }

  /**
   * Internal - constructor used by generator
   *
   * @generated
   */
  public CCPAnnotator(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }

  /** @generated */
  public CCPAnnotator(JCas jcas) {
    super(jcas);
    readObject();
  }

  /**
   *
   * <!-- begin-user-doc -->
   * Write your own initialization here
   * <!-- end-user-doc -->
   *
   * @generated modifiable
   */
  private void readObject() {
    /*default - does nothing empty block */
  }

  // *--------------*
  // * Feature: annotatorID

  /**
   * getter for annotatorID - gets This Integer should be a unique ID for a particular annotator.
   *
   * @generated
   */
  public int getAnnotatorID() {
    if (CCPAnnotator_Type.featOkTst && ((CCPAnnotator_Type) jcasType).casFeat_annotatorID == null)
      jcasType.jcas.throwFeatMissing(
          "annotatorID", "edu.ucdenver.ccp.nlp.core.uima.annotation.CCPAnnotator");
    return jcasType.ll_cas.ll_getIntValue(
        addr, ((CCPAnnotator_Type) jcasType).casFeatCode_annotatorID);
  }

  /**
   * setter for annotatorID - sets This Integer should be a unique ID for a particular annotator.
   *
   * @generated
   */
  public void setAnnotatorID(int v) {
    if (CCPAnnotator_Type.featOkTst && ((CCPAnnotator_Type) jcasType).casFeat_annotatorID == null)
      jcasType.jcas.throwFeatMissing(
          "annotatorID", "edu.ucdenver.ccp.nlp.core.uima.annotation.CCPAnnotator");
    jcasType.ll_cas.ll_setIntValue(addr, ((CCPAnnotator_Type) jcasType).casFeatCode_annotatorID, v);
  }

  // *--------------*
  // * Feature: firstName

  /**
   * getter for firstName - gets The first name of the annotator. Use of this field is optional as
   * the annotator ID is primarily used for determining the source of an annotation.
   *
   * @generated
   */
  public String getFirstName() {
    if (CCPAnnotator_Type.featOkTst && ((CCPAnnotator_Type) jcasType).casFeat_firstName == null)
      jcasType.jcas.throwFeatMissing(
          "firstName", "edu.ucdenver.ccp.nlp.core.uima.annotation.CCPAnnotator");
    return jcasType.ll_cas.ll_getStringValue(
        addr, ((CCPAnnotator_Type) jcasType).casFeatCode_firstName);
  }

  /**
   * setter for firstName - sets The first name of the annotator. Use of this field is optional as
   * the annotator ID is primarily used for determining the source of an annotation.
   *
   * @generated
   */
  public void setFirstName(String v) {
    if (CCPAnnotator_Type.featOkTst && ((CCPAnnotator_Type) jcasType).casFeat_firstName == null)
      jcasType.jcas.throwFeatMissing(
          "firstName", "edu.ucdenver.ccp.nlp.core.uima.annotation.CCPAnnotator");
    jcasType.ll_cas.ll_setStringValue(
        addr, ((CCPAnnotator_Type) jcasType).casFeatCode_firstName, v);
  }

  // *--------------*
  // * Feature: lastName

  /**
   * getter for lastName - gets The last name of the annotator. Use of this field is optional as the
   * annotator ID is primarily used for determining the source of an annotation.
   *
   * @generated
   */
  public String getLastName() {
    if (CCPAnnotator_Type.featOkTst && ((CCPAnnotator_Type) jcasType).casFeat_lastName == null)
      jcasType.jcas.throwFeatMissing(
          "lastName", "edu.ucdenver.ccp.nlp.core.uima.annotation.CCPAnnotator");
    return jcasType.ll_cas.ll_getStringValue(
        addr, ((CCPAnnotator_Type) jcasType).casFeatCode_lastName);
  }

  /**
   * setter for lastName - sets The last name of the annotator. Use of this field is optional as the
   * annotator ID is primarily used for determining the source of an annotation.
   *
   * @generated
   */
  public void setLastName(String v) {
    if (CCPAnnotator_Type.featOkTst && ((CCPAnnotator_Type) jcasType).casFeat_lastName == null)
      jcasType.jcas.throwFeatMissing(
          "lastName", "edu.ucdenver.ccp.nlp.core.uima.annotation.CCPAnnotator");
    jcasType.ll_cas.ll_setStringValue(addr, ((CCPAnnotator_Type) jcasType).casFeatCode_lastName, v);
  }

  // *--------------*
  // * Feature: affiliation

  /**
   * getter for affiliation - gets The affiliation of the annotator. Use of this field is optional
   * as the annotator ID is primarily used for determining the source of an annotation.
   *
   * @generated
   */
  public String getAffiliation() {
    if (CCPAnnotator_Type.featOkTst && ((CCPAnnotator_Type) jcasType).casFeat_affiliation == null)
      jcasType.jcas.throwFeatMissing(
          "affiliation", "edu.ucdenver.ccp.nlp.core.uima.annotation.CCPAnnotator");
    return jcasType.ll_cas.ll_getStringValue(
        addr, ((CCPAnnotator_Type) jcasType).casFeatCode_affiliation);
  }

  /**
   * setter for affiliation - sets The affiliation of the annotator. Use of this field is optional
   * as the annotator ID is primarily used for determining the source of an annotation.
   *
   * @generated
   */
  public void setAffiliation(String v) {
    if (CCPAnnotator_Type.featOkTst && ((CCPAnnotator_Type) jcasType).casFeat_affiliation == null)
      jcasType.jcas.throwFeatMissing(
          "affiliation", "edu.ucdenver.ccp.nlp.core.uima.annotation.CCPAnnotator");
    jcasType.ll_cas.ll_setStringValue(
        addr, ((CCPAnnotator_Type) jcasType).casFeatCode_affiliation, v);
  }
}
Exemplo n.º 10
0
/**
 * Updated by JCasGen Mon Aug 04 14:59:26 EDT 2014 XML source:
 * /Users/zhengzhongliu/Documents/projects/multilingual_script/semantics/multiScript/src/main/resources/TypeSystem.xml
 *
 * @generated
 */
public class FanseToken extends ComponentAnnotation {
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int typeIndexID = JCasRegistry.register(FanseToken.class);
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int type = typeIndexID;
  /**
   * @generated
   * @return index of the type
   */
  @Override
  public int getTypeIndexID() {
    return typeIndexID;
  }

  /**
   * Never called. Disable default constructor
   *
   * @generated
   */
  protected FanseToken() {
    /* intentionally empty block */
  }

  /**
   * Internal - constructor used by generator
   *
   * @generated
   * @param addr low level Feature Structure reference
   * @param type the type of this Feature Structure
   */
  public FanseToken(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }

  /**
   * @generated
   * @param jcas JCas to which this Feature Structure belongs
   */
  public FanseToken(JCas jcas) {
    super(jcas);
    readObject();
  }

  /**
   * @generated
   * @param jcas JCas to which this Feature Structure belongs
   * @param begin offset to the begin spot in the SofA
   * @param end offset to the end spot in the SofA
   */
  public FanseToken(JCas jcas, int begin, int end) {
    super(jcas);
    setBegin(begin);
    setEnd(end);
    readObject();
  }

  /**
   *
   * <!-- begin-user-doc -->
   * Write your own initialization here
   * <!-- end-user-doc -->
   *
   * @generated modifiable
   */
  private void readObject() {
    /*default - does nothing empty block */
  }

  // *--------------*
  // * Feature: tokenId

  /**
   * getter for tokenId - gets
   *
   * @generated
   * @return value of the feature
   */
  public int getTokenId() {
    if (FanseToken_Type.featOkTst && ((FanseToken_Type) jcasType).casFeat_tokenId == null)
      jcasType.jcas.throwFeatMissing("tokenId", "edu.cmu.cs.lti.multiScript.type.FanseToken");
    return jcasType.ll_cas.ll_getIntValue(addr, ((FanseToken_Type) jcasType).casFeatCode_tokenId);
  }

  /**
   * setter for tokenId - sets
   *
   * @generated
   * @param v value to set into the feature
   */
  public void setTokenId(int v) {
    if (FanseToken_Type.featOkTst && ((FanseToken_Type) jcasType).casFeat_tokenId == null)
      jcasType.jcas.throwFeatMissing("tokenId", "edu.cmu.cs.lti.multiScript.type.FanseToken");
    jcasType.ll_cas.ll_setIntValue(addr, ((FanseToken_Type) jcasType).casFeatCode_tokenId, v);
  }

  // *--------------*
  // * Feature: coarsePos

  /**
   * getter for coarsePos - gets
   *
   * @generated
   * @return value of the feature
   */
  public String getCoarsePos() {
    if (FanseToken_Type.featOkTst && ((FanseToken_Type) jcasType).casFeat_coarsePos == null)
      jcasType.jcas.throwFeatMissing("coarsePos", "edu.cmu.cs.lti.multiScript.type.FanseToken");
    return jcasType.ll_cas.ll_getStringValue(
        addr, ((FanseToken_Type) jcasType).casFeatCode_coarsePos);
  }

  /**
   * setter for coarsePos - sets
   *
   * @generated
   * @param v value to set into the feature
   */
  public void setCoarsePos(String v) {
    if (FanseToken_Type.featOkTst && ((FanseToken_Type) jcasType).casFeat_coarsePos == null)
      jcasType.jcas.throwFeatMissing("coarsePos", "edu.cmu.cs.lti.multiScript.type.FanseToken");
    jcasType.ll_cas.ll_setStringValue(addr, ((FanseToken_Type) jcasType).casFeatCode_coarsePos, v);
  }

  // *--------------*
  // * Feature: pos

  /**
   * getter for pos - gets
   *
   * @generated
   * @return value of the feature
   */
  public String getPos() {
    if (FanseToken_Type.featOkTst && ((FanseToken_Type) jcasType).casFeat_pos == null)
      jcasType.jcas.throwFeatMissing("pos", "edu.cmu.cs.lti.multiScript.type.FanseToken");
    return jcasType.ll_cas.ll_getStringValue(addr, ((FanseToken_Type) jcasType).casFeatCode_pos);
  }

  /**
   * setter for pos - sets
   *
   * @generated
   * @param v value to set into the feature
   */
  public void setPos(String v) {
    if (FanseToken_Type.featOkTst && ((FanseToken_Type) jcasType).casFeat_pos == null)
      jcasType.jcas.throwFeatMissing("pos", "edu.cmu.cs.lti.multiScript.type.FanseToken");
    jcasType.ll_cas.ll_setStringValue(addr, ((FanseToken_Type) jcasType).casFeatCode_pos, v);
  }

  // *--------------*
  // * Feature: lexicalSense

  /**
   * getter for lexicalSense - gets
   *
   * @generated
   * @return value of the feature
   */
  public String getLexicalSense() {
    if (FanseToken_Type.featOkTst && ((FanseToken_Type) jcasType).casFeat_lexicalSense == null)
      jcasType.jcas.throwFeatMissing("lexicalSense", "edu.cmu.cs.lti.multiScript.type.FanseToken");
    return jcasType.ll_cas.ll_getStringValue(
        addr, ((FanseToken_Type) jcasType).casFeatCode_lexicalSense);
  }

  /**
   * setter for lexicalSense - sets
   *
   * @generated
   * @param v value to set into the feature
   */
  public void setLexicalSense(String v) {
    if (FanseToken_Type.featOkTst && ((FanseToken_Type) jcasType).casFeat_lexicalSense == null)
      jcasType.jcas.throwFeatMissing("lexicalSense", "edu.cmu.cs.lti.multiScript.type.FanseToken");
    jcasType.ll_cas.ll_setStringValue(
        addr, ((FanseToken_Type) jcasType).casFeatCode_lexicalSense, v);
  }

  // *--------------*
  // * Feature: headDependencyRelations

  /**
   * getter for headDependencyRelations - gets
   *
   * @generated
   * @return value of the feature
   */
  public FSList getHeadDependencyRelations() {
    if (FanseToken_Type.featOkTst
        && ((FanseToken_Type) jcasType).casFeat_headDependencyRelations == null)
      jcasType.jcas.throwFeatMissing(
          "headDependencyRelations", "edu.cmu.cs.lti.multiScript.type.FanseToken");
    return (FSList)
        (jcasType.ll_cas.ll_getFSForRef(
            jcasType.ll_cas.ll_getRefValue(
                addr, ((FanseToken_Type) jcasType).casFeatCode_headDependencyRelations)));
  }

  /**
   * setter for headDependencyRelations - sets
   *
   * @generated
   * @param v value to set into the feature
   */
  public void setHeadDependencyRelations(FSList v) {
    if (FanseToken_Type.featOkTst
        && ((FanseToken_Type) jcasType).casFeat_headDependencyRelations == null)
      jcasType.jcas.throwFeatMissing(
          "headDependencyRelations", "edu.cmu.cs.lti.multiScript.type.FanseToken");
    jcasType.ll_cas.ll_setRefValue(
        addr,
        ((FanseToken_Type) jcasType).casFeatCode_headDependencyRelations,
        jcasType.ll_cas.ll_getFSRef(v));
  }

  // *--------------*
  // * Feature: childDependencyRelations

  /**
   * getter for childDependencyRelations - gets
   *
   * @generated
   * @return value of the feature
   */
  public FSList getChildDependencyRelations() {
    if (FanseToken_Type.featOkTst
        && ((FanseToken_Type) jcasType).casFeat_childDependencyRelations == null)
      jcasType.jcas.throwFeatMissing(
          "childDependencyRelations", "edu.cmu.cs.lti.multiScript.type.FanseToken");
    return (FSList)
        (jcasType.ll_cas.ll_getFSForRef(
            jcasType.ll_cas.ll_getRefValue(
                addr, ((FanseToken_Type) jcasType).casFeatCode_childDependencyRelations)));
  }

  /**
   * setter for childDependencyRelations - sets
   *
   * @generated
   * @param v value to set into the feature
   */
  public void setChildDependencyRelations(FSList v) {
    if (FanseToken_Type.featOkTst
        && ((FanseToken_Type) jcasType).casFeat_childDependencyRelations == null)
      jcasType.jcas.throwFeatMissing(
          "childDependencyRelations", "edu.cmu.cs.lti.multiScript.type.FanseToken");
    jcasType.ll_cas.ll_setRefValue(
        addr,
        ((FanseToken_Type) jcasType).casFeatCode_childDependencyRelations,
        jcasType.ll_cas.ll_getFSRef(v));
  }

  // *--------------*
  // * Feature: headSemanticRelations

  /**
   * getter for headSemanticRelations - gets
   *
   * @generated
   * @return value of the feature
   */
  public FSList getHeadSemanticRelations() {
    if (FanseToken_Type.featOkTst
        && ((FanseToken_Type) jcasType).casFeat_headSemanticRelations == null)
      jcasType.jcas.throwFeatMissing(
          "headSemanticRelations", "edu.cmu.cs.lti.multiScript.type.FanseToken");
    return (FSList)
        (jcasType.ll_cas.ll_getFSForRef(
            jcasType.ll_cas.ll_getRefValue(
                addr, ((FanseToken_Type) jcasType).casFeatCode_headSemanticRelations)));
  }

  /**
   * setter for headSemanticRelations - sets
   *
   * @generated
   * @param v value to set into the feature
   */
  public void setHeadSemanticRelations(FSList v) {
    if (FanseToken_Type.featOkTst
        && ((FanseToken_Type) jcasType).casFeat_headSemanticRelations == null)
      jcasType.jcas.throwFeatMissing(
          "headSemanticRelations", "edu.cmu.cs.lti.multiScript.type.FanseToken");
    jcasType.ll_cas.ll_setRefValue(
        addr,
        ((FanseToken_Type) jcasType).casFeatCode_headSemanticRelations,
        jcasType.ll_cas.ll_getFSRef(v));
  }

  // *--------------*
  // * Feature: childSemanticRelations

  /**
   * getter for childSemanticRelations - gets
   *
   * @generated
   * @return value of the feature
   */
  public FSList getChildSemanticRelations() {
    if (FanseToken_Type.featOkTst
        && ((FanseToken_Type) jcasType).casFeat_childSemanticRelations == null)
      jcasType.jcas.throwFeatMissing(
          "childSemanticRelations", "edu.cmu.cs.lti.multiScript.type.FanseToken");
    return (FSList)
        (jcasType.ll_cas.ll_getFSForRef(
            jcasType.ll_cas.ll_getRefValue(
                addr, ((FanseToken_Type) jcasType).casFeatCode_childSemanticRelations)));
  }

  /**
   * setter for childSemanticRelations - sets
   *
   * @generated
   * @param v value to set into the feature
   */
  public void setChildSemanticRelations(FSList v) {
    if (FanseToken_Type.featOkTst
        && ((FanseToken_Type) jcasType).casFeat_childSemanticRelations == null)
      jcasType.jcas.throwFeatMissing(
          "childSemanticRelations", "edu.cmu.cs.lti.multiScript.type.FanseToken");
    jcasType.ll_cas.ll_setRefValue(
        addr,
        ((FanseToken_Type) jcasType).casFeatCode_childSemanticRelations,
        jcasType.ll_cas.ll_getFSRef(v));
  }
}
Exemplo n.º 11
0
/**
 * Stores the information about a question. Updated by JCasGen Mon Oct 05 13:28:26 EDT 2015 XML
 * source:
 * /home/junaraki/git/f15-11-791/template-projects/pi6/pi6-andrewid/src/main/resources/descriptors/typeSystem.xml
 *
 * @generated
 */
public class Question extends ComponentAnnotation {
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int typeIndexID = JCasRegistry.register(Question.class);
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int type = typeIndexID;
  /**
   * @generated
   * @return index of the type
   */
  @Override
  public int getTypeIndexID() {
    return typeIndexID;
  }

  /**
   * Never called. Disable default constructor
   *
   * @generated
   */
  protected Question() {
    /* intentionally empty block */
  }

  /**
   * Internal - constructor used by generator
   *
   * @generated
   * @param addr low level Feature Structure reference
   * @param type the type of this Feature Structure
   */
  public Question(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }

  /**
   * @generated
   * @param jcas JCas to which this Feature Structure belongs
   */
  public Question(JCas jcas) {
    super(jcas);
    readObject();
  }

  /**
   * @generated
   * @param jcas JCas to which this Feature Structure belongs
   * @param begin offset to the begin spot in the SofA
   * @param end offset to the end spot in the SofA
   */
  public Question(JCas jcas, int begin, int end) {
    super(jcas);
    setBegin(begin);
    setEnd(end);
    readObject();
  }

  /**
   *
   * <!-- begin-user-doc -->
   * Write your own initialization here
   * <!-- end-user-doc -->
   *
   * @generated modifiable
   */
  private void readObject() {
    /*default - does nothing empty block */
  }

  // *--------------*
  // * Feature: id

  /**
   * getter for id - gets The identifier for the question.
   *
   * @generated
   * @return value of the feature
   */
  public String getId() {
    if (Question_Type.featOkTst && ((Question_Type) jcasType).casFeat_id == null)
      jcasType.jcas.throwFeatMissing("id", "type.Question");
    return jcasType.ll_cas.ll_getStringValue(addr, ((Question_Type) jcasType).casFeatCode_id);
  }

  /**
   * setter for id - sets The identifier for the question.
   *
   * @generated
   * @param v value to set into the feature
   */
  public void setId(String v) {
    if (Question_Type.featOkTst && ((Question_Type) jcasType).casFeat_id == null)
      jcasType.jcas.throwFeatMissing("id", "type.Question");
    jcasType.ll_cas.ll_setStringValue(addr, ((Question_Type) jcasType).casFeatCode_id, v);
  }

  // *--------------*
  // * Feature: sentence

  /**
   * getter for sentence - gets The text of the question.
   *
   * @generated
   * @return value of the feature
   */
  public String getSentence() {
    if (Question_Type.featOkTst && ((Question_Type) jcasType).casFeat_sentence == null)
      jcasType.jcas.throwFeatMissing("sentence", "type.Question");
    return jcasType.ll_cas.ll_getStringValue(addr, ((Question_Type) jcasType).casFeatCode_sentence);
  }

  /**
   * setter for sentence - sets The text of the question.
   *
   * @generated
   * @param v value to set into the feature
   */
  public void setSentence(String v) {
    if (Question_Type.featOkTst && ((Question_Type) jcasType).casFeat_sentence == null)
      jcasType.jcas.throwFeatMissing("sentence", "type.Question");
    jcasType.ll_cas.ll_setStringValue(addr, ((Question_Type) jcasType).casFeatCode_sentence, v);
  }

  // *--------------*
  // * Feature: passages

  /**
   * getter for passages - gets Passages associated with this question.
   *
   * @generated
   * @return value of the feature
   */
  public FSList getPassages() {
    if (Question_Type.featOkTst && ((Question_Type) jcasType).casFeat_passages == null)
      jcasType.jcas.throwFeatMissing("passages", "type.Question");
    return (FSList)
        (jcasType.ll_cas.ll_getFSForRef(
            jcasType.ll_cas.ll_getRefValue(addr, ((Question_Type) jcasType).casFeatCode_passages)));
  }

  /**
   * setter for passages - sets Passages associated with this question.
   *
   * @generated
   * @param v value to set into the feature
   */
  public void setPassages(FSList v) {
    if (Question_Type.featOkTst && ((Question_Type) jcasType).casFeat_passages == null)
      jcasType.jcas.throwFeatMissing("passages", "type.Question");
    jcasType.ll_cas.ll_setRefValue(
        addr, ((Question_Type) jcasType).casFeatCode_passages, jcasType.ll_cas.ll_getFSRef(v));
  }

  // *--------------*
  // * Feature: measurement

  /**
   * getter for measurement - gets This stores all the measurements related to the question.
   *
   * @generated
   * @return value of the feature
   */
  public Measurement getMeasurement() {
    if (Question_Type.featOkTst && ((Question_Type) jcasType).casFeat_measurement == null)
      jcasType.jcas.throwFeatMissing("measurement", "type.Question");
    return (Measurement)
        (jcasType.ll_cas.ll_getFSForRef(
            jcasType.ll_cas.ll_getRefValue(
                addr, ((Question_Type) jcasType).casFeatCode_measurement)));
  }

  /**
   * setter for measurement - sets This stores all the measurements related to the question.
   *
   * @generated
   * @param v value to set into the feature
   */
  public void setMeasurement(Measurement v) {
    if (Question_Type.featOkTst && ((Question_Type) jcasType).casFeat_measurement == null)
      jcasType.jcas.throwFeatMissing("measurement", "type.Question");
    jcasType.ll_cas.ll_setRefValue(
        addr, ((Question_Type) jcasType).casFeatCode_measurement, jcasType.ll_cas.ll_getFSRef(v));
  }
}
Exemplo n.º 12
0
/**
 * Include the beginning and end positions Updated by JCasGen Sun Sep 13 18:03:51 EDT 2015 XML
 * source:
 * /Users/yuchenluo/git/pi2-qicongc/pi2-qicongc/src/main/resources/pi2-qicongc-typesystem.xml
 *
 * @generated
 */
public class Span extends TOP {
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int typeIndexID = JCasRegistry.register(Span.class);
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int type = typeIndexID;
  /**
   * @generated
   * @return index of the type
   */
  @Override
  public int getTypeIndexID() {
    return typeIndexID;
  }

  /**
   * Never called. Disable default constructor
   *
   * @generated
   */
  protected Span() {
    /* intentionally empty block */
  }

  /**
   * Internal - constructor used by generator
   *
   * @generated
   * @param addr low level Feature Structure reference
   * @param type the type of this Feature Structure
   */
  public Span(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }

  /**
   * @generated
   * @param jcas JCas to which this Feature Structure belongs
   */
  public Span(JCas jcas) {
    super(jcas);
    readObject();
  }

  /**
   *
   * <!-- begin-user-doc -->
   * Write your own initialization here
   * <!-- end-user-doc -->
   *
   * @generated modifiable
   */
  private void readObject() {
    /*default - does nothing empty block */
  }

  // *--------------*
  // * Feature: Begin

  /**
   * getter for Begin - gets Beginning position.
   *
   * @generated
   * @return value of the feature
   */
  public int getBegin() {
    if (Span_Type.featOkTst && ((Span_Type) jcasType).casFeat_Begin == null)
      jcasType.jcas.throwFeatMissing("Begin", "Span");
    return jcasType.ll_cas.ll_getIntValue(addr, ((Span_Type) jcasType).casFeatCode_Begin);
  }

  /**
   * setter for Begin - sets Beginning position.
   *
   * @generated
   * @param v value to set into the feature
   */
  public void setBegin(int v) {
    if (Span_Type.featOkTst && ((Span_Type) jcasType).casFeat_Begin == null)
      jcasType.jcas.throwFeatMissing("Begin", "Span");
    jcasType.ll_cas.ll_setIntValue(addr, ((Span_Type) jcasType).casFeatCode_Begin, v);
  }

  // *--------------*
  // * Feature: End

  /**
   * getter for End - gets End position.
   *
   * @generated
   * @return value of the feature
   */
  public int getEnd() {
    if (Span_Type.featOkTst && ((Span_Type) jcasType).casFeat_End == null)
      jcasType.jcas.throwFeatMissing("End", "Span");
    return jcasType.ll_cas.ll_getIntValue(addr, ((Span_Type) jcasType).casFeatCode_End);
  }

  /**
   * setter for End - sets End position.
   *
   * @generated
   * @param v value to set into the feature
   */
  public void setEnd(int v) {
    if (Span_Type.featOkTst && ((Span_Type) jcasType).casFeat_End == null)
      jcasType.jcas.throwFeatMissing("End", "Span");
    jcasType.ll_cas.ll_setIntValue(addr, ((Span_Type) jcasType).casFeatCode_End, v);
  }
}
/**
 * Updated by JCasGen Fri Oct 05 20:16:40 CEST 2012 XML source:
 * /Users/tailblues/progs/github/Excitement-Open-Platform/common/src/main/resources/desc/type/Dependency.xml
 *
 * @generated
 */
public class Governor extends Annotation {
  /**
   * @generated
   * @ordered
   */
  // @SuppressWarnings ("hiding")
  public static final int typeIndexID = JCasRegistry.register(Governor.class);
  /**
   * @generated
   * @ordered
   */
  // @SuppressWarnings ("hiding")
  public static final int type = typeIndexID;
  /** @generated */
  @Override
  public int getTypeIndexID() {
    return typeIndexID;
  }

  /**
   * Never called. Disable default constructor
   *
   * @generated
   */
  protected Governor() {
    /* intentionally empty block */
  }

  /**
   * Internal - constructor used by generator
   *
   * @generated
   */
  public Governor(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }

  /** @generated */
  public Governor(JCas jcas) {
    super(jcas);
    readObject();
  }

  /** @generated */
  public Governor(JCas jcas, int begin, int end) {
    super(jcas);
    setBegin(begin);
    setEnd(end);
    readObject();
  }

  /**
   *
   * <!-- begin-user-doc -->
   * Write your own initialization here
   * <!-- end-user-doc -->
   *
   * @generated modifiable
   */
  private void readObject() {
    /*default - does nothing empty block */
  }

  // *--------------*
  // * Feature: Dependent

  /**
   * getter for Dependent - gets
   *
   * @generated
   */
  public Token getDependent() {
    if (Governor_Type.featOkTst && ((Governor_Type) jcasType).casFeat_Dependent == null)
      jcasType.jcas.throwFeatMissing(
          "Dependent", "de.tudarmstadt.ukp.dkpro.core.api.syntax.type.dependency.Governor");
    return (Token)
        (jcasType.ll_cas.ll_getFSForRef(
            jcasType.ll_cas.ll_getRefValue(
                addr, ((Governor_Type) jcasType).casFeatCode_Dependent)));
  }

  /**
   * setter for Dependent - sets
   *
   * @generated
   */
  public void setDependent(Token v) {
    if (Governor_Type.featOkTst && ((Governor_Type) jcasType).casFeat_Dependent == null)
      jcasType.jcas.throwFeatMissing(
          "Dependent", "de.tudarmstadt.ukp.dkpro.core.api.syntax.type.dependency.Governor");
    jcasType.ll_cas.ll_setRefValue(
        addr, ((Governor_Type) jcasType).casFeatCode_Dependent, jcasType.ll_cas.ll_getFSRef(v));
  }

  // *--------------*
  // * Feature: Dependency

  /**
   * getter for Dependency - gets
   *
   * @generated
   */
  public Dependency getDependency() {
    if (Governor_Type.featOkTst && ((Governor_Type) jcasType).casFeat_Dependency == null)
      jcasType.jcas.throwFeatMissing(
          "Dependency", "de.tudarmstadt.ukp.dkpro.core.api.syntax.type.dependency.Governor");
    return (Dependency)
        (jcasType.ll_cas.ll_getFSForRef(
            jcasType.ll_cas.ll_getRefValue(
                addr, ((Governor_Type) jcasType).casFeatCode_Dependency)));
  }

  /**
   * setter for Dependency - sets
   *
   * @generated
   */
  public void setDependency(Dependency v) {
    if (Governor_Type.featOkTst && ((Governor_Type) jcasType).casFeat_Dependency == null)
      jcasType.jcas.throwFeatMissing(
          "Dependency", "de.tudarmstadt.ukp.dkpro.core.api.syntax.type.dependency.Governor");
    jcasType.ll_cas.ll_setRefValue(
        addr, ((Governor_Type) jcasType).casFeatCode_Dependency, jcasType.ll_cas.ll_getFSRef(v));
  }
}
Exemplo n.º 14
0
/**
 * This is common to every annotation. It has fields about its source(component which generated the
 * annotation), the confidence of it being an annotation, it's start and end offsets Updated by
 * JCasGen Wed Sep 11 19:05:22 EDT 2013 XML source:
 * /home/kartik/git/hw1-kartikgo/hw1-kartikgo/src/main/resources/hw1-kartikgo-typesystem.xml
 *
 * @generated
 */
public class MetaData extends Annotation {
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int typeIndexID = JCasRegistry.register(MetaData.class);
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int type = typeIndexID;
  /** @generated */
  @Override
  public int getTypeIndexID() {
    return typeIndexID;
  }

  /**
   * Never called. Disable default constructor
   *
   * @generated
   */
  protected MetaData() {
    /* intentionally empty block */
  }

  /**
   * Internal - constructor used by generator
   *
   * @generated
   */
  public MetaData(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }

  /** @generated */
  public MetaData(JCas jcas) {
    super(jcas);
    readObject();
  }

  /** @generated */
  public MetaData(JCas jcas, int begin, int end) {
    super(jcas);
    setBegin(begin);
    setEnd(end);
    readObject();
  }

  /**
   *
   * <!-- begin-user-doc -->
   * Write your own initialization here
   * <!-- end-user-doc -->
   *
   * @generated modifiable
   */
  private void readObject() {
    /*default - does nothing empty block */
  }

  // *--------------*
  // * Feature: Source

  /**
   * getter for Source - gets
   *
   * @generated
   */
  public String getSource() {
    if (MetaData_Type.featOkTst && ((MetaData_Type) jcasType).casFeat_Source == null)
      jcasType.jcas.throwFeatMissing("Source", "General.MetaData");
    return jcasType.ll_cas.ll_getStringValue(addr, ((MetaData_Type) jcasType).casFeatCode_Source);
  }

  /**
   * setter for Source - sets
   *
   * @generated
   */
  public void setSource(String v) {
    if (MetaData_Type.featOkTst && ((MetaData_Type) jcasType).casFeat_Source == null)
      jcasType.jcas.throwFeatMissing("Source", "General.MetaData");
    jcasType.ll_cas.ll_setStringValue(addr, ((MetaData_Type) jcasType).casFeatCode_Source, v);
  }

  // *--------------*
  // * Feature: Start

  /**
   * getter for Start - gets
   *
   * @generated
   */
  public int getStart() {
    if (MetaData_Type.featOkTst && ((MetaData_Type) jcasType).casFeat_Start == null)
      jcasType.jcas.throwFeatMissing("Start", "General.MetaData");
    return jcasType.ll_cas.ll_getIntValue(addr, ((MetaData_Type) jcasType).casFeatCode_Start);
  }

  /**
   * setter for Start - sets
   *
   * @generated
   */
  public void setStart(int v) {
    if (MetaData_Type.featOkTst && ((MetaData_Type) jcasType).casFeat_Start == null)
      jcasType.jcas.throwFeatMissing("Start", "General.MetaData");
    jcasType.ll_cas.ll_setIntValue(addr, ((MetaData_Type) jcasType).casFeatCode_Start, v);
  }

  // *--------------*
  // * Feature: End

  /**
   * getter for End - gets
   *
   * @generated
   */
  public int getEnd() {
    if (MetaData_Type.featOkTst && ((MetaData_Type) jcasType).casFeat_End == null)
      jcasType.jcas.throwFeatMissing("End", "General.MetaData");
    return jcasType.ll_cas.ll_getIntValue(addr, ((MetaData_Type) jcasType).casFeatCode_End);
  }

  /**
   * setter for End - sets
   *
   * @generated
   */
  public void setEnd(int v) {
    if (MetaData_Type.featOkTst && ((MetaData_Type) jcasType).casFeat_End == null)
      jcasType.jcas.throwFeatMissing("End", "General.MetaData");
    jcasType.ll_cas.ll_setIntValue(addr, ((MetaData_Type) jcasType).casFeatCode_End, v);
  }

  // *--------------*
  // * Feature: Confidence

  /**
   * getter for Confidence - gets
   *
   * @generated
   */
  public double getConfidence() {
    if (MetaData_Type.featOkTst && ((MetaData_Type) jcasType).casFeat_Confidence == null)
      jcasType.jcas.throwFeatMissing("Confidence", "General.MetaData");
    return jcasType.ll_cas.ll_getDoubleValue(
        addr, ((MetaData_Type) jcasType).casFeatCode_Confidence);
  }

  /**
   * setter for Confidence - sets
   *
   * @generated
   */
  public void setConfidence(double v) {
    if (MetaData_Type.featOkTst && ((MetaData_Type) jcasType).casFeat_Confidence == null)
      jcasType.jcas.throwFeatMissing("Confidence", "General.MetaData");
    jcasType.ll_cas.ll_setDoubleValue(addr, ((MetaData_Type) jcasType).casFeatCode_Confidence, v);
  }
}
Exemplo n.º 15
0
/**
 * Updated by JCasGen Tue Mar 06 16:28:13 CET 2012 XML source:
 * /vol/home-vol3/wbi/wbi_stud/VLKB/Tim/vlkb/chemspotVSoscar3/desc/cr/iobCR.xml
 *
 * @generated
 */
public class Capability extends TOP {
  /**
   * @generated
   * @ordered
   */
  public static final int typeIndexID = JCasRegistry.register(Capability.class);
  /**
   * @generated
   * @ordered
   */
  public static final int type = typeIndexID;
  /** @generated */
  public int getTypeIndexID() {
    return typeIndexID;
  }

  /**
   * Never called. Disable default constructor
   *
   * @generated
   */
  protected Capability() {
    /* intentionally empty block */
  }

  /**
   * Internal - constructor used by generator
   *
   * @generated
   */
  public Capability(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }

  /** @generated */
  public Capability(JCas jcas) {
    super(jcas);
    readObject();
  }

  /**
   *
   * <!-- begin-user-doc -->
   * Write your own initialization here
   * <!-- end-user-doc -->
   *
   * @generated modifiable
   */
  private void readObject() {}

  // *--------------*
  // * Feature: types

  /**
   * getter for types - gets
   *
   * @generated
   */
  public StringArray getTypes() {
    if (Capability_Type.featOkTst && ((Capability_Type) jcasType).casFeat_types == null)
      jcasType.jcas.throwFeatMissing("types", "org.u_compare.shared.comparable.Capability");
    return (StringArray)
        (jcasType.ll_cas.ll_getFSForRef(
            jcasType.ll_cas.ll_getRefValue(addr, ((Capability_Type) jcasType).casFeatCode_types)));
  }

  /**
   * setter for types - sets
   *
   * @generated
   */
  public void setTypes(StringArray v) {
    if (Capability_Type.featOkTst && ((Capability_Type) jcasType).casFeat_types == null)
      jcasType.jcas.throwFeatMissing("types", "org.u_compare.shared.comparable.Capability");
    jcasType.ll_cas.ll_setRefValue(
        addr, ((Capability_Type) jcasType).casFeatCode_types, jcasType.ll_cas.ll_getFSRef(v));
  }

  /**
   * indexed getter for types - gets an indexed value -
   *
   * @generated
   */
  public String getTypes(int i) {
    if (Capability_Type.featOkTst && ((Capability_Type) jcasType).casFeat_types == null)
      jcasType.jcas.throwFeatMissing("types", "org.u_compare.shared.comparable.Capability");
    jcasType.jcas.checkArrayBounds(
        jcasType.ll_cas.ll_getRefValue(addr, ((Capability_Type) jcasType).casFeatCode_types), i);
    return jcasType.ll_cas.ll_getStringArrayValue(
        jcasType.ll_cas.ll_getRefValue(addr, ((Capability_Type) jcasType).casFeatCode_types), i);
  }

  /**
   * indexed setter for types - sets an indexed value -
   *
   * @generated
   */
  public void setTypes(int i, String v) {
    if (Capability_Type.featOkTst && ((Capability_Type) jcasType).casFeat_types == null)
      jcasType.jcas.throwFeatMissing("types", "org.u_compare.shared.comparable.Capability");
    jcasType.jcas.checkArrayBounds(
        jcasType.ll_cas.ll_getRefValue(addr, ((Capability_Type) jcasType).casFeatCode_types), i);
    jcasType.ll_cas.ll_setStringArrayValue(
        jcasType.ll_cas.ll_getRefValue(addr, ((Capability_Type) jcasType).casFeatCode_types), i, v);
  }
}
/**
 * Updated by JCasGen Mon Oct 07 00:25:34 EDT 2013 XML source:
 * /home/richie/git/hw3-skohli/hw3-skohli/src/main/resources/hw2-skohli-aae.xml
 *
 * @generated
 */
public class TokenizedDocument extends Annotation {
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int typeIndexID = JCasRegistry.register(TokenizedDocument.class);
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int type = typeIndexID;
  /** @generated */
  @Override
  public int getTypeIndexID() {
    return typeIndexID;
  }

  /**
   * Never called. Disable default constructor
   *
   * @generated
   */
  protected TokenizedDocument() {
    /* intentionally empty block */
  }

  /**
   * Internal - constructor used by generator
   *
   * @generated
   */
  public TokenizedDocument(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }

  /** @generated */
  public TokenizedDocument(JCas jcas) {
    super(jcas);
    readObject();
  }

  /** @generated */
  public TokenizedDocument(JCas jcas, int begin, int end) {
    super(jcas);
    setBegin(begin);
    setEnd(end);
    readObject();
  }

  /**
   *
   * <!-- begin-user-doc -->
   * Write your own initialization here
   * <!-- end-user-doc -->
   *
   * @generated modifiable
   */
  private void readObject() {
    /*default - does nothing empty block */
  }

  // *--------------*
  // * Feature: tokenizedQuestion

  /**
   * getter for tokenizedQuestion - gets
   *
   * @generated
   */
  public TokenizedSentence getTokenizedQuestion() {
    if (TokenizedDocument_Type.featOkTst
        && ((TokenizedDocument_Type) jcasType).casFeat_tokenizedQuestion == null)
      jcasType.jcas.throwFeatMissing(
          "tokenizedQuestion", "edu.cmu.deiis.subTypes.TokenizedDocument");
    return (TokenizedSentence)
        (jcasType.ll_cas.ll_getFSForRef(
            jcasType.ll_cas.ll_getRefValue(
                addr, ((TokenizedDocument_Type) jcasType).casFeatCode_tokenizedQuestion)));
  }

  /**
   * setter for tokenizedQuestion - sets
   *
   * @generated
   */
  public void setTokenizedQuestion(TokenizedSentence v) {
    if (TokenizedDocument_Type.featOkTst
        && ((TokenizedDocument_Type) jcasType).casFeat_tokenizedQuestion == null)
      jcasType.jcas.throwFeatMissing(
          "tokenizedQuestion", "edu.cmu.deiis.subTypes.TokenizedDocument");
    jcasType.ll_cas.ll_setRefValue(
        addr,
        ((TokenizedDocument_Type) jcasType).casFeatCode_tokenizedQuestion,
        jcasType.ll_cas.ll_getFSRef(v));
  }

  // *--------------*
  // * Feature: tokenizedAnswers

  /**
   * getter for tokenizedAnswers - gets
   *
   * @generated
   */
  public FSArray getTokenizedAnswers() {
    if (TokenizedDocument_Type.featOkTst
        && ((TokenizedDocument_Type) jcasType).casFeat_tokenizedAnswers == null)
      jcasType.jcas.throwFeatMissing(
          "tokenizedAnswers", "edu.cmu.deiis.subTypes.TokenizedDocument");
    return (FSArray)
        (jcasType.ll_cas.ll_getFSForRef(
            jcasType.ll_cas.ll_getRefValue(
                addr, ((TokenizedDocument_Type) jcasType).casFeatCode_tokenizedAnswers)));
  }

  /**
   * setter for tokenizedAnswers - sets
   *
   * @generated
   */
  public void setTokenizedAnswers(FSArray v) {
    if (TokenizedDocument_Type.featOkTst
        && ((TokenizedDocument_Type) jcasType).casFeat_tokenizedAnswers == null)
      jcasType.jcas.throwFeatMissing(
          "tokenizedAnswers", "edu.cmu.deiis.subTypes.TokenizedDocument");
    jcasType.ll_cas.ll_setRefValue(
        addr,
        ((TokenizedDocument_Type) jcasType).casFeatCode_tokenizedAnswers,
        jcasType.ll_cas.ll_getFSRef(v));
  }

  /**
   * indexed getter for tokenizedAnswers - gets an indexed value -
   *
   * @generated
   */
  public TokenizedSentence getTokenizedAnswers(int i) {
    if (TokenizedDocument_Type.featOkTst
        && ((TokenizedDocument_Type) jcasType).casFeat_tokenizedAnswers == null)
      jcasType.jcas.throwFeatMissing(
          "tokenizedAnswers", "edu.cmu.deiis.subTypes.TokenizedDocument");
    jcasType.jcas.checkArrayBounds(
        jcasType.ll_cas.ll_getRefValue(
            addr, ((TokenizedDocument_Type) jcasType).casFeatCode_tokenizedAnswers),
        i);
    return (TokenizedSentence)
        (jcasType.ll_cas.ll_getFSForRef(
            jcasType.ll_cas.ll_getRefArrayValue(
                jcasType.ll_cas.ll_getRefValue(
                    addr, ((TokenizedDocument_Type) jcasType).casFeatCode_tokenizedAnswers),
                i)));
  }

  /**
   * indexed setter for tokenizedAnswers - sets an indexed value -
   *
   * @generated
   */
  public void setTokenizedAnswers(int i, TokenizedSentence v) {
    if (TokenizedDocument_Type.featOkTst
        && ((TokenizedDocument_Type) jcasType).casFeat_tokenizedAnswers == null)
      jcasType.jcas.throwFeatMissing(
          "tokenizedAnswers", "edu.cmu.deiis.subTypes.TokenizedDocument");
    jcasType.jcas.checkArrayBounds(
        jcasType.ll_cas.ll_getRefValue(
            addr, ((TokenizedDocument_Type) jcasType).casFeatCode_tokenizedAnswers),
        i);
    jcasType.ll_cas.ll_setRefArrayValue(
        jcasType.ll_cas.ll_getRefValue(
            addr, ((TokenizedDocument_Type) jcasType).casFeatCode_tokenizedAnswers),
        i,
        jcasType.ll_cas.ll_getFSRef(v));
  }
}
Exemplo n.º 17
0
/**
 * Updated by JCasGen Sun Sep 08 22:17:46 EDT 2013 XML source:
 * E:/CMU_1st_Semester/11791/assignment/hw1-kuol/src/main/resources/hw1-kuol-typesystem.xml
 *
 * @generated
 */
public class QuestionAnswer extends Annotation {
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int typeIndexID = JCasRegistry.register(QuestionAnswer.class);
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int type = typeIndexID;
  /** @generated */
  @Override
  public int getTypeIndexID() {
    return typeIndexID;
  }

  /**
   * Never called. Disable default constructor
   *
   * @generated
   */
  protected QuestionAnswer() {
    /* intentionally empty block */
  }

  /**
   * Internal - constructor used by generator
   *
   * @generated
   */
  public QuestionAnswer(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }

  /** @generated */
  public QuestionAnswer(JCas jcas) {
    super(jcas);
    readObject();
  }

  /** @generated */
  public QuestionAnswer(JCas jcas, int begin, int end) {
    super(jcas);
    setBegin(begin);
    setEnd(end);
    readObject();
  }

  /**
   *
   * <!-- begin-user-doc -->
   * Write your own initialization here
   * <!-- end-user-doc -->
   *
   * @generated modifiable
   */
  private void readObject() {
    /*default - does nothing empty block */
  }

  // *--------------*
  // * Feature: qaString

  /**
   * getter for qaString - gets
   *
   * @generated
   */
  public String getQaString() {
    if (QuestionAnswer_Type.featOkTst && ((QuestionAnswer_Type) jcasType).casFeat_qaString == null)
      jcasType.jcas.throwFeatMissing("qaString", "qa.type.QuestionAnswer");
    return jcasType.ll_cas.ll_getStringValue(
        addr, ((QuestionAnswer_Type) jcasType).casFeatCode_qaString);
  }

  /**
   * setter for qaString - sets
   *
   * @generated
   */
  public void setQaString(String v) {
    if (QuestionAnswer_Type.featOkTst && ((QuestionAnswer_Type) jcasType).casFeat_qaString == null)
      jcasType.jcas.throwFeatMissing("qaString", "qa.type.QuestionAnswer");
    jcasType.ll_cas.ll_setStringValue(
        addr, ((QuestionAnswer_Type) jcasType).casFeatCode_qaString, v);
  }
}
Exemplo n.º 18
0
/**
 * Updated by JCasGen Mon Sep 23 14:23:08 EDT 2013 XML source:
 * F:/eclipse/hw2-yuanchin/src/main/resources/hw2-yuanchin-aae.xml
 *
 * @generated
 */
public class Annotation extends org.apache.uima.jcas.tcas.Annotation {
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int typeIndexID = JCasRegistry.register(Annotation.class);
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int type = typeIndexID;
  /** @generated */
  @Override
  public int getTypeIndexID() {
    return typeIndexID;
  }

  /**
   * Never called. Disable default constructor
   *
   * @generated
   */
  protected Annotation() {
    /* intentionally empty block */
  }

  /**
   * Internal - constructor used by generator
   *
   * @generated
   */
  public Annotation(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }

  /** @generated */
  public Annotation(JCas jcas) {
    super(jcas);
    readObject();
  }

  /** @generated */
  public Annotation(JCas jcas, int begin, int end) {
    super(jcas);
    setBegin(begin);
    setEnd(end);
    readObject();
  }

  /**
   *
   * <!-- begin-user-doc -->
   * Write your own initialization here
   * <!-- end-user-doc -->
   *
   * @generated modifiable
   */
  private void readObject() {
    /*default - does nothing empty block */
  }

  // *--------------*
  // * Feature: casProcessorId

  /**
   * getter for casProcessorId - gets The unique identifier of the CAS processor that added this
   * annotation to the CAS
   *
   * @generated
   */
  public String getCasProcessorId() {
    if (Annotation_Type.featOkTst && ((Annotation_Type) jcasType).casFeat_casProcessorId == null)
      jcasType.jcas.throwFeatMissing("casProcessorId", "edu.cmu.deiis.types.Annotation");
    return jcasType.ll_cas.ll_getStringValue(
        addr, ((Annotation_Type) jcasType).casFeatCode_casProcessorId);
  }

  /**
   * setter for casProcessorId - sets The unique identifier of the CAS processor that added this
   * annotation to the CAS
   *
   * @generated
   */
  public void setCasProcessorId(String v) {
    if (Annotation_Type.featOkTst && ((Annotation_Type) jcasType).casFeat_casProcessorId == null)
      jcasType.jcas.throwFeatMissing("casProcessorId", "edu.cmu.deiis.types.Annotation");
    jcasType.ll_cas.ll_setStringValue(
        addr, ((Annotation_Type) jcasType).casFeatCode_casProcessorId, v);
  }

  // *--------------*
  // * Feature: confidence

  /**
   * getter for confidence - gets The confidence level assigned to the Annotation by the CAS
   * processor that created it.
   *
   * @generated
   */
  public double getConfidence() {
    if (Annotation_Type.featOkTst && ((Annotation_Type) jcasType).casFeat_confidence == null)
      jcasType.jcas.throwFeatMissing("confidence", "edu.cmu.deiis.types.Annotation");
    return jcasType.ll_cas.ll_getDoubleValue(
        addr, ((Annotation_Type) jcasType).casFeatCode_confidence);
  }

  /**
   * setter for confidence - sets The confidence level assigned to the Annotation by the CAS
   * processor that created it.
   *
   * @generated
   */
  public void setConfidence(double v) {
    if (Annotation_Type.featOkTst && ((Annotation_Type) jcasType).casFeat_confidence == null)
      jcasType.jcas.throwFeatMissing("confidence", "edu.cmu.deiis.types.Annotation");
    jcasType.ll_cas.ll_setDoubleValue(addr, ((Annotation_Type) jcasType).casFeatCode_confidence, v);
  }
}
Exemplo n.º 19
0
/**
 * * This class belongs to the package annotator.element and annotates 1,2,3 Grams and extends
 * {@link TestElement}. It includes the {@link contains} feature which gives the the constituent
 * tokens in this Ngram.
 *
 * <p>
 *
 * @author Parag Agrawal
 * @version %I%, %G% Updated by JCasGen Wed Sep 11 09:29:05 EDT 2013 XML source:
 *     C:/Users/user/git/HW1-paraga/hw1-paraga/src/main/resources/typeSystemDescriptor.xml
 * @generated
 */
public class NGram extends TestElement {
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int typeIndexID = JCasRegistry.register(NGram.class);
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int type = typeIndexID;
  /** @generated */
  @Override
  public int getTypeIndexID() {
    return typeIndexID;
  }

  /**
   * Never called. Disable default constructor
   *
   * @generated
   */
  protected NGram() {
    /* intentionally empty block */
  }

  /**
   * Internal - constructor used by generator
   *
   * @generated
   */
  public NGram(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }

  /** @generated */
  public NGram(JCas jcas) {
    super(jcas);
    readObject();
  }

  /** @generated */
  public NGram(JCas jcas, int begin, int end) {
    super(jcas);
    setBegin(begin);
    setEnd(end);
    readObject();
  }

  /**
   *
   * <!-- begin-user-doc -->
   * Write your own initialization here
   * <!-- end-user-doc -->
   *
   * @generated modifiable
   */
  private void readObject() {
    /*default - does nothing empty block */
  }

  // *--------------*
  // * Feature: contains

  /**
   * getter for contains - gets feature structure array of the constituents tokens.
   *
   * @generated
   */
  public FSArray getContains() {
    if (NGram_Type.featOkTst && ((NGram_Type) jcasType).casFeat_contains == null)
      jcasType.jcas.throwFeatMissing("contains", "annotator.element.NGram");
    return (FSArray)
        (jcasType.ll_cas.ll_getFSForRef(
            jcasType.ll_cas.ll_getRefValue(addr, ((NGram_Type) jcasType).casFeatCode_contains)));
  }

  /**
   * setter for contains - sets feature structure array of the constituents tokens.
   *
   * @generated
   */
  public void setContains(FSArray v) {
    if (NGram_Type.featOkTst && ((NGram_Type) jcasType).casFeat_contains == null)
      jcasType.jcas.throwFeatMissing("contains", "annotator.element.NGram");
    jcasType.ll_cas.ll_setRefValue(
        addr, ((NGram_Type) jcasType).casFeatCode_contains, jcasType.ll_cas.ll_getFSRef(v));
  }

  /**
   * indexed getter for contains - gets an indexed value - feature structure array of the
   * constituents tokens.
   *
   * @generated
   */
  public Token getContains(int i) {
    if (NGram_Type.featOkTst && ((NGram_Type) jcasType).casFeat_contains == null)
      jcasType.jcas.throwFeatMissing("contains", "annotator.element.NGram");
    jcasType.jcas.checkArrayBounds(
        jcasType.ll_cas.ll_getRefValue(addr, ((NGram_Type) jcasType).casFeatCode_contains), i);
    return (Token)
        (jcasType.ll_cas.ll_getFSForRef(
            jcasType.ll_cas.ll_getRefArrayValue(
                jcasType.ll_cas.ll_getRefValue(addr, ((NGram_Type) jcasType).casFeatCode_contains),
                i)));
  }

  /**
   * indexed setter for contains - sets an indexed value - feature structure array of the
   * constituents tokens.
   *
   * @generated
   */
  public void setContains(int i, Token v) {
    if (NGram_Type.featOkTst && ((NGram_Type) jcasType).casFeat_contains == null)
      jcasType.jcas.throwFeatMissing("contains", "annotator.element.NGram");
    jcasType.jcas.checkArrayBounds(
        jcasType.ll_cas.ll_getRefValue(addr, ((NGram_Type) jcasType).casFeatCode_contains), i);
    jcasType.ll_cas.ll_setRefArrayValue(
        jcasType.ll_cas.ll_getRefValue(addr, ((NGram_Type) jcasType).casFeatCode_contains),
        i,
        jcasType.ll_cas.ll_getFSRef(v));
  }
}
Exemplo n.º 20
0
/**
 * Updated by JCasGen Tue Sep 24 21:44:42 EDT 2013 XML source:
 * /Users/Cambi/Documents/Program/git/Cambi-SftMethd-hw2/hw2-taog/src/main/resources/descriptors/evaluatorDecriptor.xml
 *
 * @generated
 */
public class AnswerScore extends Annotation {
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int typeIndexID = JCasRegistry.register(AnswerScore.class);
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int type = typeIndexID;
  /** @generated */
  @Override
  public int getTypeIndexID() {
    return typeIndexID;
  }

  /**
   * Never called. Disable default constructor
   *
   * @generated
   */
  protected AnswerScore() {
    /* intentionally empty block */
  }

  /**
   * Internal - constructor used by generator
   *
   * @generated
   */
  public AnswerScore(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }

  /** @generated */
  public AnswerScore(JCas jcas) {
    super(jcas);
    readObject();
  }

  /** @generated */
  public AnswerScore(JCas jcas, int begin, int end) {
    super(jcas);
    setBegin(begin);
    setEnd(end);
    readObject();
  }

  /**
   *
   * <!-- begin-user-doc -->
   * Write your own initialization here
   * <!-- end-user-doc -->
   *
   * @generated modifiable
   */
  private void readObject() {
    /*default - does nothing empty block */
  }

  // *--------------*
  // * Feature: score

  /**
   * getter for score - gets
   *
   * @generated
   */
  public double getScore() {
    if (AnswerScore_Type.featOkTst && ((AnswerScore_Type) jcasType).casFeat_score == null)
      jcasType.jcas.throwFeatMissing("score", "edu.cmu.deiis.types.AnswerScore");
    return jcasType.ll_cas.ll_getDoubleValue(addr, ((AnswerScore_Type) jcasType).casFeatCode_score);
  }

  /**
   * setter for score - sets
   *
   * @generated
   */
  public void setScore(double v) {
    if (AnswerScore_Type.featOkTst && ((AnswerScore_Type) jcasType).casFeat_score == null)
      jcasType.jcas.throwFeatMissing("score", "edu.cmu.deiis.types.AnswerScore");
    jcasType.ll_cas.ll_setDoubleValue(addr, ((AnswerScore_Type) jcasType).casFeatCode_score, v);
  }

  // *--------------*
  // * Feature: answer

  /**
   * getter for answer - gets
   *
   * @generated
   */
  public Answer getAnswer() {
    if (AnswerScore_Type.featOkTst && ((AnswerScore_Type) jcasType).casFeat_answer == null)
      jcasType.jcas.throwFeatMissing("answer", "edu.cmu.deiis.types.AnswerScore");
    return (Answer)
        (jcasType.ll_cas.ll_getFSForRef(
            jcasType.ll_cas.ll_getRefValue(
                addr, ((AnswerScore_Type) jcasType).casFeatCode_answer)));
  }

  /**
   * setter for answer - sets
   *
   * @generated
   */
  public void setAnswer(Answer v) {
    if (AnswerScore_Type.featOkTst && ((AnswerScore_Type) jcasType).casFeat_answer == null)
      jcasType.jcas.throwFeatMissing("answer", "edu.cmu.deiis.types.AnswerScore");
    jcasType.ll_cas.ll_setRefValue(
        addr, ((AnswerScore_Type) jcasType).casFeatCode_answer, jcasType.ll_cas.ll_getFSRef(v));
  }

  // *--------------*
  // * Feature: scoreBasedOnToken

  /**
   * getter for scoreBasedOnToken - gets
   *
   * @generated
   */
  public double getScoreBasedOnToken() {
    if (AnswerScore_Type.featOkTst
        && ((AnswerScore_Type) jcasType).casFeat_scoreBasedOnToken == null)
      jcasType.jcas.throwFeatMissing("scoreBasedOnToken", "edu.cmu.deiis.types.AnswerScore");
    return jcasType.ll_cas.ll_getDoubleValue(
        addr, ((AnswerScore_Type) jcasType).casFeatCode_scoreBasedOnToken);
  }

  /**
   * setter for scoreBasedOnToken - sets
   *
   * @generated
   */
  public void setScoreBasedOnToken(double v) {
    if (AnswerScore_Type.featOkTst
        && ((AnswerScore_Type) jcasType).casFeat_scoreBasedOnToken == null)
      jcasType.jcas.throwFeatMissing("scoreBasedOnToken", "edu.cmu.deiis.types.AnswerScore");
    jcasType.ll_cas.ll_setDoubleValue(
        addr, ((AnswerScore_Type) jcasType).casFeatCode_scoreBasedOnToken, v);
  }

  // *--------------*
  // * Feature: scoreBasedOnGoldenAnswer

  /**
   * getter for scoreBasedOnGoldenAnswer - gets
   *
   * @generated
   */
  public double getScoreBasedOnGoldenAnswer() {
    if (AnswerScore_Type.featOkTst
        && ((AnswerScore_Type) jcasType).casFeat_scoreBasedOnGoldenAnswer == null)
      jcasType.jcas.throwFeatMissing("scoreBasedOnGoldenAnswer", "edu.cmu.deiis.types.AnswerScore");
    return jcasType.ll_cas.ll_getDoubleValue(
        addr, ((AnswerScore_Type) jcasType).casFeatCode_scoreBasedOnGoldenAnswer);
  }

  /**
   * setter for scoreBasedOnGoldenAnswer - sets
   *
   * @generated
   */
  public void setScoreBasedOnGoldenAnswer(double v) {
    if (AnswerScore_Type.featOkTst
        && ((AnswerScore_Type) jcasType).casFeat_scoreBasedOnGoldenAnswer == null)
      jcasType.jcas.throwFeatMissing("scoreBasedOnGoldenAnswer", "edu.cmu.deiis.types.AnswerScore");
    jcasType.ll_cas.ll_setDoubleValue(
        addr, ((AnswerScore_Type) jcasType).casFeatCode_scoreBasedOnGoldenAnswer, v);
  }
}
Exemplo n.º 21
0
/**
 * Updated by JCasGen Tue Nov 19 00:48:18 EST 2013 XML source:
 * C:/Users/James_He/git/hw3-jiacongh1/hw3-jiacongh/src/main/resources/descriptors/EvaluationAnnotation.xml
 *
 * @generated
 */
public class ScoredAnnotation extends Annotation {
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int typeIndexID = JCasRegistry.register(ScoredAnnotation.class);
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int type = typeIndexID;
  /** @generated */
  @Override
  public int getTypeIndexID() {
    return typeIndexID;
  }

  /**
   * Never called. Disable default constructor
   *
   * @generated
   */
  protected ScoredAnnotation() {
    /* intentionally empty block */
  }

  /**
   * Internal - constructor used by generator
   *
   * @generated
   */
  public ScoredAnnotation(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }

  /** @generated */
  public ScoredAnnotation(JCas jcas) {
    super(jcas);
    readObject();
  }

  /** @generated */
  public ScoredAnnotation(JCas jcas, int begin, int end) {
    super(jcas);
    setBegin(begin);
    setEnd(end);
    readObject();
  }

  /**
   *
   * <!-- begin-user-doc -->
   * Write your own initialization here
   * <!-- end-user-doc -->
   *
   * @generated modifiable
   */
  private void readObject() {
    /*default - does nothing empty block */
  }

  // *--------------*
  // * Feature: score

  /**
   * getter for score - gets
   *
   * @generated
   */
  public double getScore() {
    if (ScoredAnnotation_Type.featOkTst && ((ScoredAnnotation_Type) jcasType).casFeat_score == null)
      jcasType.jcas.throwFeatMissing("score", "org.cleartk.score.type.ScoredAnnotation");
    return jcasType.ll_cas.ll_getDoubleValue(
        addr, ((ScoredAnnotation_Type) jcasType).casFeatCode_score);
  }

  /**
   * setter for score - sets
   *
   * @generated
   */
  public void setScore(double v) {
    if (ScoredAnnotation_Type.featOkTst && ((ScoredAnnotation_Type) jcasType).casFeat_score == null)
      jcasType.jcas.throwFeatMissing("score", "org.cleartk.score.type.ScoredAnnotation");
    jcasType.ll_cas.ll_setDoubleValue(
        addr, ((ScoredAnnotation_Type) jcasType).casFeatCode_score, v);
  }
}
Exemplo n.º 22
0
/**
 * Updated by JCasGen Fri Nov 16 15:19:22 MST 2012 XML source:
 * /Users/AntBurke/dev/workspaces/eclipse/uimaWorkspace/PersonAnnotator/desc/DevTypeSystemDescriptor.xml
 *
 * @generated
 */
public class Person extends Annotation {
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int typeIndexID = JCasRegistry.register(Person.class);
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int type = typeIndexID;
  /** @generated */
  @Override
  public int getTypeIndexID() {
    return typeIndexID;
  }

  /**
   * Never called. Disable default constructor
   *
   * @generated
   */
  protected Person() {
    /* intentionally empty block */
  }

  /**
   * Internal - constructor used by generator
   *
   * @generated
   */
  public Person(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }

  /** @generated */
  public Person(JCas jcas) {
    super(jcas);
    readObject();
  }

  /** @generated */
  public Person(JCas jcas, int begin, int end) {
    super(jcas);
    setBegin(begin);
    setEnd(end);
    readObject();
  }

  /**
   *
   * <!-- begin-user-doc -->
   * Write your own initialization here
   * <!-- end-user-doc -->
   *
   * @generated modifiable
   */
  private void readObject() {
    /*default - does nothing empty block */
  }
}
Exemplo n.º 23
0
/**
 * * This class belongs to the package annotator.element and annotates a single token (in a naive
 * sense token can be considered as a word) and extends {@link TestElement}. It includes the {@link
 * isCapitalized} feature which is 'true' if the token is capitalized.
 *
 * <p>
 *
 * @author Parag Agrawal
 * @version %I%, %G% Updated by JCasGen Wed Sep 11 09:29:05 EDT 2013 XML source:
 *     C:/Users/user/git/HW1-paraga/hw1-paraga/src/main/resources/typeSystemDescriptor.xml
 * @generated
 */
public class Token extends TestElement {
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int typeIndexID = JCasRegistry.register(Token.class);
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int type = typeIndexID;
  /** @generated */
  @Override
  public int getTypeIndexID() {
    return typeIndexID;
  }

  /**
   * Never called. Disable default constructor
   *
   * @generated
   */
  protected Token() {
    /* intentionally empty block */
  }

  /**
   * Internal - constructor used by generator
   *
   * @generated
   */
  public Token(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }

  /** @generated */
  public Token(JCas jcas) {
    super(jcas);
    readObject();
  }

  /** @generated */
  public Token(JCas jcas, int begin, int end) {
    super(jcas);
    setBegin(begin);
    setEnd(end);
    readObject();
  }

  /**
   *
   * <!-- begin-user-doc -->
   * Write your own initialization here
   * <!-- end-user-doc -->
   *
   * @generated modifiable
   */
  private void readObject() {
    /*default - does nothing empty block */
  }

  // *--------------*
  // * Feature: isCapitalized

  /**
   * getter for isCapitalized - gets 'true' if the token is capitalized.
   *
   * @generated
   */
  public boolean getIsCapitalized() {
    if (Token_Type.featOkTst && ((Token_Type) jcasType).casFeat_isCapitalized == null)
      jcasType.jcas.throwFeatMissing("isCapitalized", "annotator.element.Token");
    return jcasType.ll_cas.ll_getBooleanValue(
        addr, ((Token_Type) jcasType).casFeatCode_isCapitalized);
  }

  /**
   * setter for isCapitalized - sets 'true' if the token is capitalized.
   *
   * @generated
   */
  public void setIsCapitalized(boolean v) {
    if (Token_Type.featOkTst && ((Token_Type) jcasType).casFeat_isCapitalized == null)
      jcasType.jcas.throwFeatMissing("isCapitalized", "annotator.element.Token");
    jcasType.ll_cas.ll_setBooleanValue(addr, ((Token_Type) jcasType).casFeatCode_isCapitalized, v);
  }

  // *--------------*
  // * Feature: hasPunctuation

  /**
   * getter for hasPunctuation - gets 'true' if the token contains punctuation marks such as
   * apostrophe marks.
   *
   * @generated
   */
  public boolean getHasPunctuation() {
    if (Token_Type.featOkTst && ((Token_Type) jcasType).casFeat_hasPunctuation == null)
      jcasType.jcas.throwFeatMissing("hasPunctuation", "annotator.element.Token");
    return jcasType.ll_cas.ll_getBooleanValue(
        addr, ((Token_Type) jcasType).casFeatCode_hasPunctuation);
  }

  /**
   * setter for hasPunctuation - sets 'true' if the token contains punctuation marks such as
   * apostrophe marks.
   *
   * @generated
   */
  public void setHasPunctuation(boolean v) {
    if (Token_Type.featOkTst && ((Token_Type) jcasType).casFeat_hasPunctuation == null)
      jcasType.jcas.throwFeatMissing("hasPunctuation", "annotator.element.Token");
    jcasType.ll_cas.ll_setBooleanValue(addr, ((Token_Type) jcasType).casFeatCode_hasPunctuation, v);
  }
}
Exemplo n.º 24
0
/**
 * Updated by JCasGen Sun Oct 27 07:28:41 PDT 2013 XML source:
 * /home/psureshk/workspace/hw4-psureshk/src/main/resources/descriptors/typesystems/VectorSpaceTypes.xml
 *
 * @generated
 */
public class Token extends Annotation {
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int typeIndexID = JCasRegistry.register(Token.class);
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int type = typeIndexID;
  /** @generated */
  @Override
  public int getTypeIndexID() {
    return typeIndexID;
  }

  /**
   * Never called. Disable default constructor
   *
   * @generated
   */
  protected Token() {
    /* intentionally empty block */
  }

  /**
   * Internal - constructor used by generator
   *
   * @generated
   */
  public Token(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }

  /** @generated */
  public Token(JCas jcas) {
    super(jcas);
    readObject();
  }

  /** @generated */
  public Token(JCas jcas, int begin, int end) {
    super(jcas);
    setBegin(begin);
    setEnd(end);
    readObject();
  }

  /**
   *
   * <!-- begin-user-doc -->
   * Write your own initialization here
   * <!-- end-user-doc -->
   *
   * @generated modifiable
   */
  private void readObject() {
    /*default - does nothing empty block */
  }

  // *--------------*
  // * Feature: text

  /**
   * getter for text - gets
   *
   * @generated
   */
  public String getText() {
    if (Token_Type.featOkTst && ((Token_Type) jcasType).casFeat_text == null)
      jcasType.jcas.throwFeatMissing("text", "edu.cmu.lti.f13.hw4.hw4_psureshk.typesystems.Token");
    return jcasType.ll_cas.ll_getStringValue(addr, ((Token_Type) jcasType).casFeatCode_text);
  }

  /**
   * setter for text - sets
   *
   * @generated
   */
  public void setText(String v) {
    if (Token_Type.featOkTst && ((Token_Type) jcasType).casFeat_text == null)
      jcasType.jcas.throwFeatMissing("text", "edu.cmu.lti.f13.hw4.hw4_psureshk.typesystems.Token");
    jcasType.ll_cas.ll_setStringValue(addr, ((Token_Type) jcasType).casFeatCode_text, v);
  }

  // *--------------*
  // * Feature: frequency

  /**
   * getter for frequency - gets
   *
   * @generated
   */
  public int getFrequency() {
    if (Token_Type.featOkTst && ((Token_Type) jcasType).casFeat_frequency == null)
      jcasType.jcas.throwFeatMissing(
          "frequency", "edu.cmu.lti.f13.hw4.hw4_psureshk.typesystems.Token");
    return jcasType.ll_cas.ll_getIntValue(addr, ((Token_Type) jcasType).casFeatCode_frequency);
  }

  /**
   * setter for frequency - sets
   *
   * @generated
   */
  public void setFrequency(int v) {
    if (Token_Type.featOkTst && ((Token_Type) jcasType).casFeat_frequency == null)
      jcasType.jcas.throwFeatMissing(
          "frequency", "edu.cmu.lti.f13.hw4.hw4_psureshk.typesystems.Token");
    jcasType.ll_cas.ll_setIntValue(addr, ((Token_Type) jcasType).casFeatCode_frequency, v);
  }
}
Exemplo n.º 25
0
/**
 * Updated by JCasGen Sat Mar 07 22:05:56 CET 2015 XML source:
 * /Users/richarde/dev/bluebrain/git/Bluima/modules/bluima_typesystem/target/jcasgen/typesystem.xml
 *
 * @generated
 */
public class FrequentToken extends Noise {
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int typeIndexID = JCasRegistry.register(FrequentToken.class);
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int type = typeIndexID;
  /**
   * @generated
   * @return index of the type
   */
  @Override
  public int getTypeIndexID() {
    return typeIndexID;
  }

  /**
   * Never called. Disable default constructor
   *
   * @generated
   */
  protected FrequentToken() {
    /* intentionally empty block */
  }

  /**
   * Internal - constructor used by generator
   *
   * @generated
   * @param addr low level Feature Structure reference
   * @param type the type of this Feature Structure
   */
  public FrequentToken(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }

  /**
   * @generated
   * @param jcas JCas to which this Feature Structure belongs
   */
  public FrequentToken(JCas jcas) {
    super(jcas);
    readObject();
  }

  /**
   * @generated
   * @param jcas JCas to which this Feature Structure belongs
   * @param begin offset to the begin spot in the SofA
   * @param end offset to the end spot in the SofA
   */
  public FrequentToken(JCas jcas, int begin, int end) {
    super(jcas);
    setBegin(begin);
    setEnd(end);
    readObject();
  }

  /**
   *
   * <!-- begin-user-doc -->
   * Write your own initialization here
   * <!-- end-user-doc -->
   *
   * @generated modifiable
   */
  private void readObject() {
    /*default - does nothing empty block */
  }
}
Exemplo n.º 26
0
/**
 * Updated by JCasGen Sun Nov 24 14:42:38 EST 2013 XML source:
 * /Users/wanghaoyu/git/hw5-team08/qa4mre-base/src/main/resources/TypeSystemDescriptor.xml
 *
 * @generated
 */
public class CandidateSentence extends Annotation {
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int typeIndexID = JCasRegistry.register(CandidateSentence.class);
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int type = typeIndexID;
  /** @generated */
  @Override
  public int getTypeIndexID() {
    return typeIndexID;
  }

  /**
   * Never called. Disable default constructor
   *
   * @generated
   */
  protected CandidateSentence() {
    /* intentionally empty block */
  }

  /**
   * Internal - constructor used by generator
   *
   * @generated
   */
  public CandidateSentence(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }

  /** @generated */
  public CandidateSentence(JCas jcas) {
    super(jcas);
    readObject();
  }

  /** @generated */
  public CandidateSentence(JCas jcas, int begin, int end) {
    super(jcas);
    setBegin(begin);
    setEnd(end);
    readObject();
  }

  /**
   *
   * <!-- begin-user-doc -->
   * Write your own initialization here
   * <!-- end-user-doc -->
   *
   * @generated modifiable
   */
  private void readObject() {
    /*default - does nothing empty block */
  }

  // *--------------*
  // * Feature: relevanceScore

  /**
   * getter for relevanceScore - gets
   *
   * @generated
   */
  public double getRelevanceScore() {
    if (CandidateSentence_Type.featOkTst
        && ((CandidateSentence_Type) jcasType).casFeat_relevanceScore == null)
      jcasType.jcas.throwFeatMissing("relevanceScore", "edu.cmu.lti.qalab.types.CandidateSentence");
    return jcasType.ll_cas.ll_getDoubleValue(
        addr, ((CandidateSentence_Type) jcasType).casFeatCode_relevanceScore);
  }

  /**
   * setter for relevanceScore - sets
   *
   * @generated
   */
  public void setRelevanceScore(double v) {
    if (CandidateSentence_Type.featOkTst
        && ((CandidateSentence_Type) jcasType).casFeat_relevanceScore == null)
      jcasType.jcas.throwFeatMissing("relevanceScore", "edu.cmu.lti.qalab.types.CandidateSentence");
    jcasType.ll_cas.ll_setDoubleValue(
        addr, ((CandidateSentence_Type) jcasType).casFeatCode_relevanceScore, v);
  }

  // *--------------*
  // * Feature: sentence

  /**
   * getter for sentence - gets
   *
   * @generated
   */
  public Sentence getSentence() {
    if (CandidateSentence_Type.featOkTst
        && ((CandidateSentence_Type) jcasType).casFeat_sentence == null)
      jcasType.jcas.throwFeatMissing("sentence", "edu.cmu.lti.qalab.types.CandidateSentence");
    return (Sentence)
        (jcasType.ll_cas.ll_getFSForRef(
            jcasType.ll_cas.ll_getRefValue(
                addr, ((CandidateSentence_Type) jcasType).casFeatCode_sentence)));
  }

  /**
   * setter for sentence - sets
   *
   * @generated
   */
  public void setSentence(Sentence v) {
    if (CandidateSentence_Type.featOkTst
        && ((CandidateSentence_Type) jcasType).casFeat_sentence == null)
      jcasType.jcas.throwFeatMissing("sentence", "edu.cmu.lti.qalab.types.CandidateSentence");
    jcasType.ll_cas.ll_setRefValue(
        addr,
        ((CandidateSentence_Type) jcasType).casFeatCode_sentence,
        jcasType.ll_cas.ll_getFSRef(v));
  }

  // *--------------*
  // * Feature: depMatchScore

  /**
   * getter for depMatchScore - gets
   *
   * @generated
   */
  public double getDepMatchScore() {
    if (CandidateSentence_Type.featOkTst
        && ((CandidateSentence_Type) jcasType).casFeat_depMatchScore == null)
      jcasType.jcas.throwFeatMissing("depMatchScore", "edu.cmu.lti.qalab.types.CandidateSentence");
    return jcasType.ll_cas.ll_getDoubleValue(
        addr, ((CandidateSentence_Type) jcasType).casFeatCode_depMatchScore);
  }

  /**
   * setter for depMatchScore - sets
   *
   * @generated
   */
  public void setDepMatchScore(double v) {
    if (CandidateSentence_Type.featOkTst
        && ((CandidateSentence_Type) jcasType).casFeat_depMatchScore == null)
      jcasType.jcas.throwFeatMissing("depMatchScore", "edu.cmu.lti.qalab.types.CandidateSentence");
    jcasType.ll_cas.ll_setDoubleValue(
        addr, ((CandidateSentence_Type) jcasType).casFeatCode_depMatchScore, v);
  }

  // *--------------*
  // * Feature: synonymMatchScore

  /**
   * getter for synonymMatchScore - gets
   *
   * @generated
   */
  public double getSynonymMatchScore() {
    if (CandidateSentence_Type.featOkTst
        && ((CandidateSentence_Type) jcasType).casFeat_synonymMatchScore == null)
      jcasType.jcas.throwFeatMissing(
          "synonymMatchScore", "edu.cmu.lti.qalab.types.CandidateSentence");
    return jcasType.ll_cas.ll_getDoubleValue(
        addr, ((CandidateSentence_Type) jcasType).casFeatCode_synonymMatchScore);
  }

  /**
   * setter for synonymMatchScore - sets
   *
   * @generated
   */
  public void setSynonymMatchScore(double v) {
    if (CandidateSentence_Type.featOkTst
        && ((CandidateSentence_Type) jcasType).casFeat_synonymMatchScore == null)
      jcasType.jcas.throwFeatMissing(
          "synonymMatchScore", "edu.cmu.lti.qalab.types.CandidateSentence");
    jcasType.ll_cas.ll_setDoubleValue(
        addr, ((CandidateSentence_Type) jcasType).casFeatCode_synonymMatchScore, v);
  }

  // *--------------*
  // * Feature: candAnswerList

  /**
   * getter for candAnswerList - gets
   *
   * @generated
   */
  public FSList getCandAnswerList() {
    if (CandidateSentence_Type.featOkTst
        && ((CandidateSentence_Type) jcasType).casFeat_candAnswerList == null)
      jcasType.jcas.throwFeatMissing("candAnswerList", "edu.cmu.lti.qalab.types.CandidateSentence");
    return (FSList)
        (jcasType.ll_cas.ll_getFSForRef(
            jcasType.ll_cas.ll_getRefValue(
                addr, ((CandidateSentence_Type) jcasType).casFeatCode_candAnswerList)));
  }

  /**
   * setter for candAnswerList - sets
   *
   * @generated
   */
  public void setCandAnswerList(FSList v) {
    if (CandidateSentence_Type.featOkTst
        && ((CandidateSentence_Type) jcasType).casFeat_candAnswerList == null)
      jcasType.jcas.throwFeatMissing("candAnswerList", "edu.cmu.lti.qalab.types.CandidateSentence");
    jcasType.ll_cas.ll_setRefValue(
        addr,
        ((CandidateSentence_Type) jcasType).casFeatCode_candAnswerList,
        jcasType.ll_cas.ll_getFSRef(v));
  }
}
Exemplo n.º 27
0
/**
 * the temporal entities from MUC7; their particular type is stored in the attribure Updated by
 * JCasGen Sat Mar 07 22:05:57 CET 2015 XML source:
 * /Users/richarde/dev/bluebrain/git/Bluima/modules/bluima_typesystem/target/jcasgen/typesystem.xml
 *
 * @generated
 */
public class TIMEX extends Annotation {
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int typeIndexID = JCasRegistry.register(TIMEX.class);
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int type = typeIndexID;
  /**
   * @generated
   * @return index of the type
   */
  @Override
  public int getTypeIndexID() {
    return typeIndexID;
  }

  /**
   * Never called. Disable default constructor
   *
   * @generated
   */
  protected TIMEX() {
    /* intentionally empty block */
  }

  /**
   * Internal - constructor used by generator
   *
   * @generated
   * @param addr low level Feature Structure reference
   * @param type the type of this Feature Structure
   */
  public TIMEX(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }

  /**
   * @generated
   * @param jcas JCas to which this Feature Structure belongs
   */
  public TIMEX(JCas jcas) {
    super(jcas);
    readObject();
  }

  /**
   * @generated
   * @param jcas JCas to which this Feature Structure belongs
   * @param begin offset to the begin spot in the SofA
   * @param end offset to the end spot in the SofA
   */
  public TIMEX(JCas jcas, int begin, int end) {
    super(jcas);
    setBegin(begin);
    setEnd(end);
    readObject();
  }

  /**
   *
   * <!-- begin-user-doc -->
   * Write your own initialization here
   * <!-- end-user-doc -->
   *
   * @generated modifiable
   */
  private void readObject() {
    /*default - does nothing empty block */
  }

  // *--------------*
  // * Feature: typeOfNE

  /**
   * getter for typeOfNE - gets the type of the NE (e.g., DATE, LOCATION etc.)
   *
   * @generated
   * @return value of the feature
   */
  public String getTypeOfNE() {
    if (TIMEX_Type.featOkTst && ((TIMEX_Type) jcasType).casFeat_typeOfNE == null)
      jcasType.jcas.throwFeatMissing("typeOfNE", "de.julielab.jules.types.muc7.TIMEX");
    return jcasType.ll_cas.ll_getStringValue(addr, ((TIMEX_Type) jcasType).casFeatCode_typeOfNE);
  }

  /**
   * setter for typeOfNE - sets the type of the NE (e.g., DATE, LOCATION etc.)
   *
   * @generated
   * @param v value to set into the feature
   */
  public void setTypeOfNE(String v) {
    if (TIMEX_Type.featOkTst && ((TIMEX_Type) jcasType).casFeat_typeOfNE == null)
      jcasType.jcas.throwFeatMissing("typeOfNE", "de.julielab.jules.types.muc7.TIMEX");
    jcasType.ll_cas.ll_setStringValue(addr, ((TIMEX_Type) jcasType).casFeatCode_typeOfNE, v);
  }

  // *--------------*
  // * Feature: min

  /**
   * getter for min - gets the minimal head of the named entity
   *
   * @generated
   * @return value of the feature
   */
  public String getMin() {
    if (TIMEX_Type.featOkTst && ((TIMEX_Type) jcasType).casFeat_min == null)
      jcasType.jcas.throwFeatMissing("min", "de.julielab.jules.types.muc7.TIMEX");
    return jcasType.ll_cas.ll_getStringValue(addr, ((TIMEX_Type) jcasType).casFeatCode_min);
  }

  /**
   * setter for min - sets the minimal head of the named entity
   *
   * @generated
   * @param v value to set into the feature
   */
  public void setMin(String v) {
    if (TIMEX_Type.featOkTst && ((TIMEX_Type) jcasType).casFeat_min == null)
      jcasType.jcas.throwFeatMissing("min", "de.julielab.jules.types.muc7.TIMEX");
    jcasType.ll_cas.ll_setStringValue(addr, ((TIMEX_Type) jcasType).casFeatCode_min, v);
  }
}
Exemplo n.º 28
0
/**
 * Stores a question and its associated answer candidates. Updated by JCasGen Tue Sep 22 14:20:21
 * EDT 2015 XML source: /Users/yuchenluo/Downloads/pi3-qicongc/src/main/resources/typeSystem.xml
 *
 * @generated
 */
public class InputDocument extends ComponentAnnotation {
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int typeIndexID = JCasRegistry.register(InputDocument.class);
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int type = typeIndexID;
  /**
   * @generated
   * @return index of the type
   */
  @Override
  public int getTypeIndexID() {
    return typeIndexID;
  }

  /**
   * Never called. Disable default constructor
   *
   * @generated
   */
  protected InputDocument() {
    /* intentionally empty block */
  }

  /**
   * Internal - constructor used by generator
   *
   * @generated
   * @param addr low level Feature Structure reference
   * @param type the type of this Feature Structure
   */
  public InputDocument(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }

  /**
   * @generated
   * @param jcas JCas to which this Feature Structure belongs
   */
  public InputDocument(JCas jcas) {
    super(jcas);
    readObject();
  }

  /**
   * @generated
   * @param jcas JCas to which this Feature Structure belongs
   * @param begin offset to the begin spot in the SofA
   * @param end offset to the end spot in the SofA
   */
  public InputDocument(JCas jcas, int begin, int end) {
    super(jcas);
    setBegin(begin);
    setEnd(end);
    readObject();
  }

  /**
   *
   * <!-- begin-user-doc -->
   * Write your own initialization here
   * <!-- end-user-doc -->
   *
   * @generated modifiable
   */
  private void readObject() {
    /*default - does nothing empty block */
  }

  // *--------------*
  // * Feature: question

  /**
   * getter for question - gets
   *
   * @generated
   * @return value of the feature
   */
  public Question getQuestion() {
    if (InputDocument_Type.featOkTst && ((InputDocument_Type) jcasType).casFeat_question == null)
      jcasType.jcas.throwFeatMissing("question", "type.InputDocument");
    return (Question)
        (jcasType.ll_cas.ll_getFSForRef(
            jcasType.ll_cas.ll_getRefValue(
                addr, ((InputDocument_Type) jcasType).casFeatCode_question)));
  }

  /**
   * setter for question - sets
   *
   * @generated
   * @param v value to set into the feature
   */
  public void setQuestion(Question v) {
    if (InputDocument_Type.featOkTst && ((InputDocument_Type) jcasType).casFeat_question == null)
      jcasType.jcas.throwFeatMissing("question", "type.InputDocument");
    jcasType.ll_cas.ll_setRefValue(
        addr, ((InputDocument_Type) jcasType).casFeatCode_question, jcasType.ll_cas.ll_getFSRef(v));
  }

  // *--------------*
  // * Feature: answers

  /**
   * getter for answers - gets
   *
   * @generated
   * @return value of the feature
   */
  public FSList getAnswers() {
    if (InputDocument_Type.featOkTst && ((InputDocument_Type) jcasType).casFeat_answers == null)
      jcasType.jcas.throwFeatMissing("answers", "type.InputDocument");
    return (FSList)
        (jcasType.ll_cas.ll_getFSForRef(
            jcasType.ll_cas.ll_getRefValue(
                addr, ((InputDocument_Type) jcasType).casFeatCode_answers)));
  }

  /**
   * setter for answers - sets
   *
   * @generated
   * @param v value to set into the feature
   */
  public void setAnswers(FSList v) {
    if (InputDocument_Type.featOkTst && ((InputDocument_Type) jcasType).casFeat_answers == null)
      jcasType.jcas.throwFeatMissing("answers", "type.InputDocument");
    jcasType.ll_cas.ll_setRefValue(
        addr, ((InputDocument_Type) jcasType).casFeatCode_answers, jcasType.ll_cas.ll_getFSRef(v));
  }
}
Exemplo n.º 29
0
/**
 * Updated by JCasGen Sat Mar 07 22:05:56 CET 2015 XML source:
 * /Users/richarde/dev/bluebrain/git/Bluima/modules/bluima_typesystem/target/jcasgen/typesystem.xml
 *
 * @generated
 */
public class TopicToken extends Annotation {
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int typeIndexID = JCasRegistry.register(TopicToken.class);
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int type = typeIndexID;
  /**
   * @generated
   * @return index of the type
   */
  @Override
  public int getTypeIndexID() {
    return typeIndexID;
  }

  /**
   * Never called. Disable default constructor
   *
   * @generated
   */
  protected TopicToken() {
    /* intentionally empty block */
  }

  /**
   * Internal - constructor used by generator
   *
   * @generated
   * @param addr low level Feature Structure reference
   * @param type the type of this Feature Structure
   */
  public TopicToken(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }

  /**
   * @generated
   * @param jcas JCas to which this Feature Structure belongs
   */
  public TopicToken(JCas jcas) {
    super(jcas);
    readObject();
  }

  /**
   * @generated
   * @param jcas JCas to which this Feature Structure belongs
   * @param begin offset to the begin spot in the SofA
   * @param end offset to the end spot in the SofA
   */
  public TopicToken(JCas jcas, int begin, int end) {
    super(jcas);
    setBegin(begin);
    setEnd(end);
    readObject();
  }

  /**
   *
   * <!-- begin-user-doc -->
   * Write your own initialization here
   * <!-- end-user-doc -->
   *
   * @generated modifiable
   */
  private void readObject() {
    /*default - does nothing empty block */
  }

  // *--------------*
  // * Feature: enclosingAnnot

  /**
   * getter for enclosingAnnot - gets
   *
   * @generated
   * @return value of the feature
   */
  public Annotation getEnclosingAnnot() {
    if (TopicToken_Type.featOkTst && ((TopicToken_Type) jcasType).casFeat_enclosingAnnot == null)
      jcasType.jcas.throwFeatMissing("enclosingAnnot", "ch.epfl.bbp.uima.types.TopicToken");
    return (Annotation)
        (jcasType.ll_cas.ll_getFSForRef(
            jcasType.ll_cas.ll_getRefValue(
                addr, ((TopicToken_Type) jcasType).casFeatCode_enclosingAnnot)));
  }

  /**
   * setter for enclosingAnnot - sets
   *
   * @generated
   * @param v value to set into the feature
   */
  public void setEnclosingAnnot(Annotation v) {
    if (TopicToken_Type.featOkTst && ((TopicToken_Type) jcasType).casFeat_enclosingAnnot == null)
      jcasType.jcas.throwFeatMissing("enclosingAnnot", "ch.epfl.bbp.uima.types.TopicToken");
    jcasType.ll_cas.ll_setRefValue(
        addr,
        ((TopicToken_Type) jcasType).casFeatCode_enclosingAnnot,
        jcasType.ll_cas.ll_getFSRef(v));
  }
}
Exemplo n.º 30
0
/**
 * Updated by JCasGen Tue Oct 08 22:26:25 EDT 2013 XML source:
 * /home/kartik/git/hw3-kartikgo/hw3-kartikgo/src/main/resources/descriptors/deiis_types.xml
 *
 * @generated
 */
public class Event extends Anchor {
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int typeIndexID = JCasRegistry.register(Event.class);
  /**
   * @generated
   * @ordered
   */
  @SuppressWarnings("hiding")
  public static final int type = typeIndexID;
  /** @generated */
  @Override
  public int getTypeIndexID() {
    return typeIndexID;
  }

  /**
   * Never called. Disable default constructor
   *
   * @generated
   */
  protected Event() {
    /* intentionally empty block */
  }

  /**
   * Internal - constructor used by generator
   *
   * @generated
   */
  public Event(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }

  /** @generated */
  public Event(JCas jcas) {
    super(jcas);
    readObject();
  }

  /** @generated */
  public Event(JCas jcas, int begin, int end) {
    super(jcas);
    setBegin(begin);
    setEnd(end);
    readObject();
  }

  /**
   *
   * <!-- begin-user-doc -->
   * Write your own initialization here
   * <!-- end-user-doc -->
   *
   * @generated modifiable
   */
  private void readObject() {
    /*default - does nothing empty block */
  }

  // *--------------*
  // * Feature: eventClass

  /**
   * getter for eventClass - gets
   *
   * @generated
   */
  public String getEventClass() {
    if (Event_Type.featOkTst && ((Event_Type) jcasType).casFeat_eventClass == null)
      jcasType.jcas.throwFeatMissing("eventClass", "org.cleartk.timeml.type.Event");
    return jcasType.ll_cas.ll_getStringValue(addr, ((Event_Type) jcasType).casFeatCode_eventClass);
  }

  /**
   * setter for eventClass - sets
   *
   * @generated
   */
  public void setEventClass(String v) {
    if (Event_Type.featOkTst && ((Event_Type) jcasType).casFeat_eventClass == null)
      jcasType.jcas.throwFeatMissing("eventClass", "org.cleartk.timeml.type.Event");
    jcasType.ll_cas.ll_setStringValue(addr, ((Event_Type) jcasType).casFeatCode_eventClass, v);
  }

  // *--------------*
  // * Feature: eventInstanceID

  /**
   * getter for eventInstanceID - gets
   *
   * @generated
   */
  public String getEventInstanceID() {
    if (Event_Type.featOkTst && ((Event_Type) jcasType).casFeat_eventInstanceID == null)
      jcasType.jcas.throwFeatMissing("eventInstanceID", "org.cleartk.timeml.type.Event");
    return jcasType.ll_cas.ll_getStringValue(
        addr, ((Event_Type) jcasType).casFeatCode_eventInstanceID);
  }

  /**
   * setter for eventInstanceID - sets
   *
   * @generated
   */
  public void setEventInstanceID(String v) {
    if (Event_Type.featOkTst && ((Event_Type) jcasType).casFeat_eventInstanceID == null)
      jcasType.jcas.throwFeatMissing("eventInstanceID", "org.cleartk.timeml.type.Event");
    jcasType.ll_cas.ll_setStringValue(addr, ((Event_Type) jcasType).casFeatCode_eventInstanceID, v);
  }

  // *--------------*
  // * Feature: signalID

  /**
   * getter for signalID - gets
   *
   * @generated
   */
  public String getSignalID() {
    if (Event_Type.featOkTst && ((Event_Type) jcasType).casFeat_signalID == null)
      jcasType.jcas.throwFeatMissing("signalID", "org.cleartk.timeml.type.Event");
    return jcasType.ll_cas.ll_getStringValue(addr, ((Event_Type) jcasType).casFeatCode_signalID);
  }

  /**
   * setter for signalID - sets
   *
   * @generated
   */
  public void setSignalID(String v) {
    if (Event_Type.featOkTst && ((Event_Type) jcasType).casFeat_signalID == null)
      jcasType.jcas.throwFeatMissing("signalID", "org.cleartk.timeml.type.Event");
    jcasType.ll_cas.ll_setStringValue(addr, ((Event_Type) jcasType).casFeatCode_signalID, v);
  }

  // *--------------*
  // * Feature: stem

  /**
   * getter for stem - gets
   *
   * @generated
   */
  public String getStem() {
    if (Event_Type.featOkTst && ((Event_Type) jcasType).casFeat_stem == null)
      jcasType.jcas.throwFeatMissing("stem", "org.cleartk.timeml.type.Event");
    return jcasType.ll_cas.ll_getStringValue(addr, ((Event_Type) jcasType).casFeatCode_stem);
  }

  /**
   * setter for stem - sets
   *
   * @generated
   */
  public void setStem(String v) {
    if (Event_Type.featOkTst && ((Event_Type) jcasType).casFeat_stem == null)
      jcasType.jcas.throwFeatMissing("stem", "org.cleartk.timeml.type.Event");
    jcasType.ll_cas.ll_setStringValue(addr, ((Event_Type) jcasType).casFeatCode_stem, v);
  }

  // *--------------*
  // * Feature: pos

  /**
   * getter for pos - gets
   *
   * @generated
   */
  public String getPos() {
    if (Event_Type.featOkTst && ((Event_Type) jcasType).casFeat_pos == null)
      jcasType.jcas.throwFeatMissing("pos", "org.cleartk.timeml.type.Event");
    return jcasType.ll_cas.ll_getStringValue(addr, ((Event_Type) jcasType).casFeatCode_pos);
  }

  /**
   * setter for pos - sets
   *
   * @generated
   */
  public void setPos(String v) {
    if (Event_Type.featOkTst && ((Event_Type) jcasType).casFeat_pos == null)
      jcasType.jcas.throwFeatMissing("pos", "org.cleartk.timeml.type.Event");
    jcasType.ll_cas.ll_setStringValue(addr, ((Event_Type) jcasType).casFeatCode_pos, v);
  }

  // *--------------*
  // * Feature: tense

  /**
   * getter for tense - gets
   *
   * @generated
   */
  public String getTense() {
    if (Event_Type.featOkTst && ((Event_Type) jcasType).casFeat_tense == null)
      jcasType.jcas.throwFeatMissing("tense", "org.cleartk.timeml.type.Event");
    return jcasType.ll_cas.ll_getStringValue(addr, ((Event_Type) jcasType).casFeatCode_tense);
  }

  /**
   * setter for tense - sets
   *
   * @generated
   */
  public void setTense(String v) {
    if (Event_Type.featOkTst && ((Event_Type) jcasType).casFeat_tense == null)
      jcasType.jcas.throwFeatMissing("tense", "org.cleartk.timeml.type.Event");
    jcasType.ll_cas.ll_setStringValue(addr, ((Event_Type) jcasType).casFeatCode_tense, v);
  }

  // *--------------*
  // * Feature: aspect

  /**
   * getter for aspect - gets
   *
   * @generated
   */
  public String getAspect() {
    if (Event_Type.featOkTst && ((Event_Type) jcasType).casFeat_aspect == null)
      jcasType.jcas.throwFeatMissing("aspect", "org.cleartk.timeml.type.Event");
    return jcasType.ll_cas.ll_getStringValue(addr, ((Event_Type) jcasType).casFeatCode_aspect);
  }

  /**
   * setter for aspect - sets
   *
   * @generated
   */
  public void setAspect(String v) {
    if (Event_Type.featOkTst && ((Event_Type) jcasType).casFeat_aspect == null)
      jcasType.jcas.throwFeatMissing("aspect", "org.cleartk.timeml.type.Event");
    jcasType.ll_cas.ll_setStringValue(addr, ((Event_Type) jcasType).casFeatCode_aspect, v);
  }

  // *--------------*
  // * Feature: cardinality

  /**
   * getter for cardinality - gets
   *
   * @generated
   */
  public String getCardinality() {
    if (Event_Type.featOkTst && ((Event_Type) jcasType).casFeat_cardinality == null)
      jcasType.jcas.throwFeatMissing("cardinality", "org.cleartk.timeml.type.Event");
    return jcasType.ll_cas.ll_getStringValue(addr, ((Event_Type) jcasType).casFeatCode_cardinality);
  }

  /**
   * setter for cardinality - sets
   *
   * @generated
   */
  public void setCardinality(String v) {
    if (Event_Type.featOkTst && ((Event_Type) jcasType).casFeat_cardinality == null)
      jcasType.jcas.throwFeatMissing("cardinality", "org.cleartk.timeml.type.Event");
    jcasType.ll_cas.ll_setStringValue(addr, ((Event_Type) jcasType).casFeatCode_cardinality, v);
  }

  // *--------------*
  // * Feature: polarity

  /**
   * getter for polarity - gets
   *
   * @generated
   */
  public String getPolarity() {
    if (Event_Type.featOkTst && ((Event_Type) jcasType).casFeat_polarity == null)
      jcasType.jcas.throwFeatMissing("polarity", "org.cleartk.timeml.type.Event");
    return jcasType.ll_cas.ll_getStringValue(addr, ((Event_Type) jcasType).casFeatCode_polarity);
  }

  /**
   * setter for polarity - sets
   *
   * @generated
   */
  public void setPolarity(String v) {
    if (Event_Type.featOkTst && ((Event_Type) jcasType).casFeat_polarity == null)
      jcasType.jcas.throwFeatMissing("polarity", "org.cleartk.timeml.type.Event");
    jcasType.ll_cas.ll_setStringValue(addr, ((Event_Type) jcasType).casFeatCode_polarity, v);
  }

  // *--------------*
  // * Feature: modality

  /**
   * getter for modality - gets
   *
   * @generated
   */
  public String getModality() {
    if (Event_Type.featOkTst && ((Event_Type) jcasType).casFeat_modality == null)
      jcasType.jcas.throwFeatMissing("modality", "org.cleartk.timeml.type.Event");
    return jcasType.ll_cas.ll_getStringValue(addr, ((Event_Type) jcasType).casFeatCode_modality);
  }

  /**
   * setter for modality - sets
   *
   * @generated
   */
  public void setModality(String v) {
    if (Event_Type.featOkTst && ((Event_Type) jcasType).casFeat_modality == null)
      jcasType.jcas.throwFeatMissing("modality", "org.cleartk.timeml.type.Event");
    jcasType.ll_cas.ll_setStringValue(addr, ((Event_Type) jcasType).casFeatCode_modality, v);
  }
}