001 002 003/* First created by JCasGen Wed May 07 09:15:21 EDT 2014 */ 004package org.cleartk.timeml.type; 005 006import org.apache.uima.jcas.JCas; 007import org.apache.uima.jcas.JCasRegistry; 008import org.apache.uima.jcas.cas.TOP_Type; 009 010 011 012/** 013 * Updated by JCasGen Wed May 07 09:15:21 EDT 2014 014 * XML source: /Users/bethard/Code/cleartk/target/checkout/cleartk-type-system/target/jcasgen/typesystem.xml 015 * @generated */ 016public class Time extends Anchor { 017 /** @generated 018 * @ordered 019 */ 020 @SuppressWarnings ("hiding") 021 public final static int typeIndexID = JCasRegistry.register(Time.class); 022 /** @generated 023 * @ordered 024 */ 025 @SuppressWarnings ("hiding") 026 public final static int type = typeIndexID; 027 /** @generated 028 * @return index of the type 029 */ 030 @Override 031 public int getTypeIndexID() {return typeIndexID;} 032 033 /** Never called. Disable default constructor 034 * @generated */ 035 protected Time() {/* intentionally empty block */} 036 037 /** Internal - constructor used by generator 038 * @generated 039 * @param addr low level Feature Structure reference 040 * @param type the type of this Feature Structure 041 */ 042 public Time(int addr, TOP_Type type) { 043 super(addr, type); 044 readObject(); 045 } 046 047 /** @generated 048 * @param jcas JCas to which this Feature Structure belongs 049 */ 050 public Time(JCas jcas) { 051 super(jcas); 052 readObject(); 053 } 054 055 /** @generated 056 * @param jcas JCas to which this Feature Structure belongs 057 * @param begin offset to the begin spot in the SofA 058 * @param end offset to the end spot in the SofA 059 */ 060 public Time(JCas jcas, int begin, int end) { 061 super(jcas); 062 setBegin(begin); 063 setEnd(end); 064 readObject(); 065 } 066 067 /** 068 * <!-- begin-user-doc --> 069 * Write your own initialization here 070 * <!-- end-user-doc --> 071 * 072 * @generated modifiable 073 */ 074 private void readObject() {/*default - does nothing empty block */} 075 076 077 078 //*--------------* 079 //* Feature: timeType 080 081 /** getter for timeType - gets 082 * @generated 083 * @return value of the feature 084 */ 085 public String getTimeType() { 086 if (Time_Type.featOkTst && ((Time_Type)jcasType).casFeat_timeType == null) 087 jcasType.jcas.throwFeatMissing("timeType", "org.cleartk.timeml.type.Time"); 088 return jcasType.ll_cas.ll_getStringValue(addr, ((Time_Type)jcasType).casFeatCode_timeType);} 089 090 /** setter for timeType - sets 091 * @generated 092 * @param v value to set into the feature 093 */ 094 public void setTimeType(String v) { 095 if (Time_Type.featOkTst && ((Time_Type)jcasType).casFeat_timeType == null) 096 jcasType.jcas.throwFeatMissing("timeType", "org.cleartk.timeml.type.Time"); 097 jcasType.ll_cas.ll_setStringValue(addr, ((Time_Type)jcasType).casFeatCode_timeType, v);} 098 099 100 //*--------------* 101 //* Feature: beginPoint 102 103 /** getter for beginPoint - gets 104 * @generated 105 * @return value of the feature 106 */ 107 public String getBeginPoint() { 108 if (Time_Type.featOkTst && ((Time_Type)jcasType).casFeat_beginPoint == null) 109 jcasType.jcas.throwFeatMissing("beginPoint", "org.cleartk.timeml.type.Time"); 110 return jcasType.ll_cas.ll_getStringValue(addr, ((Time_Type)jcasType).casFeatCode_beginPoint);} 111 112 /** setter for beginPoint - sets 113 * @generated 114 * @param v value to set into the feature 115 */ 116 public void setBeginPoint(String v) { 117 if (Time_Type.featOkTst && ((Time_Type)jcasType).casFeat_beginPoint == null) 118 jcasType.jcas.throwFeatMissing("beginPoint", "org.cleartk.timeml.type.Time"); 119 jcasType.ll_cas.ll_setStringValue(addr, ((Time_Type)jcasType).casFeatCode_beginPoint, v);} 120 121 122 //*--------------* 123 //* Feature: endPoint 124 125 /** getter for endPoint - gets 126 * @generated 127 * @return value of the feature 128 */ 129 public String getEndPoint() { 130 if (Time_Type.featOkTst && ((Time_Type)jcasType).casFeat_endPoint == null) 131 jcasType.jcas.throwFeatMissing("endPoint", "org.cleartk.timeml.type.Time"); 132 return jcasType.ll_cas.ll_getStringValue(addr, ((Time_Type)jcasType).casFeatCode_endPoint);} 133 134 /** setter for endPoint - sets 135 * @generated 136 * @param v value to set into the feature 137 */ 138 public void setEndPoint(String v) { 139 if (Time_Type.featOkTst && ((Time_Type)jcasType).casFeat_endPoint == null) 140 jcasType.jcas.throwFeatMissing("endPoint", "org.cleartk.timeml.type.Time"); 141 jcasType.ll_cas.ll_setStringValue(addr, ((Time_Type)jcasType).casFeatCode_endPoint, v);} 142 143 144 //*--------------* 145 //* Feature: quant 146 147 /** getter for quant - gets 148 * @generated 149 * @return value of the feature 150 */ 151 public String getQuant() { 152 if (Time_Type.featOkTst && ((Time_Type)jcasType).casFeat_quant == null) 153 jcasType.jcas.throwFeatMissing("quant", "org.cleartk.timeml.type.Time"); 154 return jcasType.ll_cas.ll_getStringValue(addr, ((Time_Type)jcasType).casFeatCode_quant);} 155 156 /** setter for quant - sets 157 * @generated 158 * @param v value to set into the feature 159 */ 160 public void setQuant(String v) { 161 if (Time_Type.featOkTst && ((Time_Type)jcasType).casFeat_quant == null) 162 jcasType.jcas.throwFeatMissing("quant", "org.cleartk.timeml.type.Time"); 163 jcasType.ll_cas.ll_setStringValue(addr, ((Time_Type)jcasType).casFeatCode_quant, v);} 164 165 166 //*--------------* 167 //* Feature: freq 168 169 /** getter for freq - gets 170 * @generated 171 * @return value of the feature 172 */ 173 public String getFreq() { 174 if (Time_Type.featOkTst && ((Time_Type)jcasType).casFeat_freq == null) 175 jcasType.jcas.throwFeatMissing("freq", "org.cleartk.timeml.type.Time"); 176 return jcasType.ll_cas.ll_getStringValue(addr, ((Time_Type)jcasType).casFeatCode_freq);} 177 178 /** setter for freq - sets 179 * @generated 180 * @param v value to set into the feature 181 */ 182 public void setFreq(String v) { 183 if (Time_Type.featOkTst && ((Time_Type)jcasType).casFeat_freq == null) 184 jcasType.jcas.throwFeatMissing("freq", "org.cleartk.timeml.type.Time"); 185 jcasType.ll_cas.ll_setStringValue(addr, ((Time_Type)jcasType).casFeatCode_freq, v);} 186 187 188 //*--------------* 189 //* Feature: functionInDocument 190 191 /** getter for functionInDocument - gets 192 * @generated 193 * @return value of the feature 194 */ 195 public String getFunctionInDocument() { 196 if (Time_Type.featOkTst && ((Time_Type)jcasType).casFeat_functionInDocument == null) 197 jcasType.jcas.throwFeatMissing("functionInDocument", "org.cleartk.timeml.type.Time"); 198 return jcasType.ll_cas.ll_getStringValue(addr, ((Time_Type)jcasType).casFeatCode_functionInDocument);} 199 200 /** setter for functionInDocument - sets 201 * @generated 202 * @param v value to set into the feature 203 */ 204 public void setFunctionInDocument(String v) { 205 if (Time_Type.featOkTst && ((Time_Type)jcasType).casFeat_functionInDocument == null) 206 jcasType.jcas.throwFeatMissing("functionInDocument", "org.cleartk.timeml.type.Time"); 207 jcasType.ll_cas.ll_setStringValue(addr, ((Time_Type)jcasType).casFeatCode_functionInDocument, v);} 208 209 210 //*--------------* 211 //* Feature: temporalFunction 212 213 /** getter for temporalFunction - gets 214 * @generated 215 * @return value of the feature 216 */ 217 public String getTemporalFunction() { 218 if (Time_Type.featOkTst && ((Time_Type)jcasType).casFeat_temporalFunction == null) 219 jcasType.jcas.throwFeatMissing("temporalFunction", "org.cleartk.timeml.type.Time"); 220 return jcasType.ll_cas.ll_getStringValue(addr, ((Time_Type)jcasType).casFeatCode_temporalFunction);} 221 222 /** setter for temporalFunction - sets 223 * @generated 224 * @param v value to set into the feature 225 */ 226 public void setTemporalFunction(String v) { 227 if (Time_Type.featOkTst && ((Time_Type)jcasType).casFeat_temporalFunction == null) 228 jcasType.jcas.throwFeatMissing("temporalFunction", "org.cleartk.timeml.type.Time"); 229 jcasType.ll_cas.ll_setStringValue(addr, ((Time_Type)jcasType).casFeatCode_temporalFunction, v);} 230 231 232 //*--------------* 233 //* Feature: value 234 235 /** getter for value - gets 236 * @generated 237 * @return value of the feature 238 */ 239 public String getValue() { 240 if (Time_Type.featOkTst && ((Time_Type)jcasType).casFeat_value == null) 241 jcasType.jcas.throwFeatMissing("value", "org.cleartk.timeml.type.Time"); 242 return jcasType.ll_cas.ll_getStringValue(addr, ((Time_Type)jcasType).casFeatCode_value);} 243 244 /** setter for value - sets 245 * @generated 246 * @param v value to set into the feature 247 */ 248 public void setValue(String v) { 249 if (Time_Type.featOkTst && ((Time_Type)jcasType).casFeat_value == null) 250 jcasType.jcas.throwFeatMissing("value", "org.cleartk.timeml.type.Time"); 251 jcasType.ll_cas.ll_setStringValue(addr, ((Time_Type)jcasType).casFeatCode_value, v);} 252 253 254 //*--------------* 255 //* Feature: valueFromFunction 256 257 /** getter for valueFromFunction - gets 258 * @generated 259 * @return value of the feature 260 */ 261 public String getValueFromFunction() { 262 if (Time_Type.featOkTst && ((Time_Type)jcasType).casFeat_valueFromFunction == null) 263 jcasType.jcas.throwFeatMissing("valueFromFunction", "org.cleartk.timeml.type.Time"); 264 return jcasType.ll_cas.ll_getStringValue(addr, ((Time_Type)jcasType).casFeatCode_valueFromFunction);} 265 266 /** setter for valueFromFunction - sets 267 * @generated 268 * @param v value to set into the feature 269 */ 270 public void setValueFromFunction(String v) { 271 if (Time_Type.featOkTst && ((Time_Type)jcasType).casFeat_valueFromFunction == null) 272 jcasType.jcas.throwFeatMissing("valueFromFunction", "org.cleartk.timeml.type.Time"); 273 jcasType.ll_cas.ll_setStringValue(addr, ((Time_Type)jcasType).casFeatCode_valueFromFunction, v);} 274 275 276 //*--------------* 277 //* Feature: mod 278 279 /** getter for mod - gets 280 * @generated 281 * @return value of the feature 282 */ 283 public String getMod() { 284 if (Time_Type.featOkTst && ((Time_Type)jcasType).casFeat_mod == null) 285 jcasType.jcas.throwFeatMissing("mod", "org.cleartk.timeml.type.Time"); 286 return jcasType.ll_cas.ll_getStringValue(addr, ((Time_Type)jcasType).casFeatCode_mod);} 287 288 /** setter for mod - sets 289 * @generated 290 * @param v value to set into the feature 291 */ 292 public void setMod(String v) { 293 if (Time_Type.featOkTst && ((Time_Type)jcasType).casFeat_mod == null) 294 jcasType.jcas.throwFeatMissing("mod", "org.cleartk.timeml.type.Time"); 295 jcasType.ll_cas.ll_setStringValue(addr, ((Time_Type)jcasType).casFeatCode_mod, v);} 296 297 298 //*--------------* 299 //* Feature: anchorTime 300 301 /** getter for anchorTime - gets 302 * @generated 303 * @return value of the feature 304 */ 305 public Time getAnchorTime() { 306 if (Time_Type.featOkTst && ((Time_Type)jcasType).casFeat_anchorTime == null) 307 jcasType.jcas.throwFeatMissing("anchorTime", "org.cleartk.timeml.type.Time"); 308 return (Time)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Time_Type)jcasType).casFeatCode_anchorTime)));} 309 310 /** setter for anchorTime - sets 311 * @generated 312 * @param v value to set into the feature 313 */ 314 public void setAnchorTime(Time v) { 315 if (Time_Type.featOkTst && ((Time_Type)jcasType).casFeat_anchorTime == null) 316 jcasType.jcas.throwFeatMissing("anchorTime", "org.cleartk.timeml.type.Time"); 317 jcasType.ll_cas.ll_setRefValue(addr, ((Time_Type)jcasType).casFeatCode_anchorTime, jcasType.ll_cas.ll_getFSRef(v));} 318 } 319 320