001
002
003/* First created by JCasGen Wed May 07 09:15:21 EDT 2014 */
004package org.cleartk.ne.type;
005
006import org.apache.uima.jcas.JCas; 
007import org.apache.uima.jcas.JCasRegistry;
008import org.apache.uima.jcas.cas.TOP_Type;
009
010import org.cleartk.score.type.ScoredAnnotation;
011
012
013/** 
014 * Updated by JCasGen Wed May 07 09:15:21 EDT 2014
015 * XML source: /Users/bethard/Code/cleartk/target/checkout/cleartk-type-system/target/jcasgen/typesystem.xml
016 * @generated */
017public class Ace2005Document extends ScoredAnnotation {
018  /** @generated
019   * @ordered 
020   */
021  @SuppressWarnings ("hiding")
022  public final static int typeIndexID = JCasRegistry.register(Ace2005Document.class);
023  /** @generated
024   * @ordered 
025   */
026  @SuppressWarnings ("hiding")
027  public final static int type = typeIndexID;
028  /** @generated
029   * @return index of the type  
030   */
031  @Override
032  public              int getTypeIndexID() {return typeIndexID;}
033 
034  /** Never called.  Disable default constructor
035   * @generated */
036  protected Ace2005Document() {/* intentionally empty block */}
037    
038  /** Internal - constructor used by generator 
039   * @generated
040   * @param addr low level Feature Structure reference
041   * @param type the type of this Feature Structure 
042   */
043  public Ace2005Document(int addr, TOP_Type type) {
044    super(addr, type);
045    readObject();
046  }
047  
048  /** @generated
049   * @param jcas JCas to which this Feature Structure belongs 
050   */
051  public Ace2005Document(JCas jcas) {
052    super(jcas);
053    readObject();   
054  } 
055
056  /** @generated
057   * @param jcas JCas to which this Feature Structure belongs
058   * @param begin offset to the begin spot in the SofA
059   * @param end offset to the end spot in the SofA 
060  */  
061  public Ace2005Document(JCas jcas, int begin, int end) {
062    super(jcas);
063    setBegin(begin);
064    setEnd(end);
065    readObject();
066  }   
067
068  /** 
069   * <!-- begin-user-doc -->
070   * Write your own initialization here
071   * <!-- end-user-doc -->
072   *
073   * @generated modifiable 
074   */
075  private void readObject() {/*default - does nothing empty block */}
076     
077 
078    
079  //*--------------*
080  //* Feature: aceSource
081
082  /** getter for aceSource - gets 
083   * @generated
084   * @return value of the feature 
085   */
086  public String getAceSource() {
087    if (Ace2005Document_Type.featOkTst && ((Ace2005Document_Type)jcasType).casFeat_aceSource == null)
088      jcasType.jcas.throwFeatMissing("aceSource", "org.cleartk.ne.type.Ace2005Document");
089    return jcasType.ll_cas.ll_getStringValue(addr, ((Ace2005Document_Type)jcasType).casFeatCode_aceSource);}
090    
091  /** setter for aceSource - sets  
092   * @generated
093   * @param v value to set into the feature 
094   */
095  public void setAceSource(String v) {
096    if (Ace2005Document_Type.featOkTst && ((Ace2005Document_Type)jcasType).casFeat_aceSource == null)
097      jcasType.jcas.throwFeatMissing("aceSource", "org.cleartk.ne.type.Ace2005Document");
098    jcasType.ll_cas.ll_setStringValue(addr, ((Ace2005Document_Type)jcasType).casFeatCode_aceSource, v);}    
099   
100    
101  //*--------------*
102  //* Feature: aceUri
103
104  /** getter for aceUri - gets 
105   * @generated
106   * @return value of the feature 
107   */
108  public String getAceUri() {
109    if (Ace2005Document_Type.featOkTst && ((Ace2005Document_Type)jcasType).casFeat_aceUri == null)
110      jcasType.jcas.throwFeatMissing("aceUri", "org.cleartk.ne.type.Ace2005Document");
111    return jcasType.ll_cas.ll_getStringValue(addr, ((Ace2005Document_Type)jcasType).casFeatCode_aceUri);}
112    
113  /** setter for aceUri - sets  
114   * @generated
115   * @param v value to set into the feature 
116   */
117  public void setAceUri(String v) {
118    if (Ace2005Document_Type.featOkTst && ((Ace2005Document_Type)jcasType).casFeat_aceUri == null)
119      jcasType.jcas.throwFeatMissing("aceUri", "org.cleartk.ne.type.Ace2005Document");
120    jcasType.ll_cas.ll_setStringValue(addr, ((Ace2005Document_Type)jcasType).casFeatCode_aceUri, v);}    
121   
122    
123  //*--------------*
124  //* Feature: aceType
125
126  /** getter for aceType - gets 
127   * @generated
128   * @return value of the feature 
129   */
130  public String getAceType() {
131    if (Ace2005Document_Type.featOkTst && ((Ace2005Document_Type)jcasType).casFeat_aceType == null)
132      jcasType.jcas.throwFeatMissing("aceType", "org.cleartk.ne.type.Ace2005Document");
133    return jcasType.ll_cas.ll_getStringValue(addr, ((Ace2005Document_Type)jcasType).casFeatCode_aceType);}
134    
135  /** setter for aceType - sets  
136   * @generated
137   * @param v value to set into the feature 
138   */
139  public void setAceType(String v) {
140    if (Ace2005Document_Type.featOkTst && ((Ace2005Document_Type)jcasType).casFeat_aceType == null)
141      jcasType.jcas.throwFeatMissing("aceType", "org.cleartk.ne.type.Ace2005Document");
142    jcasType.ll_cas.ll_setStringValue(addr, ((Ace2005Document_Type)jcasType).casFeatCode_aceType, v);}    
143  }
144
145