blob: c74ed38aedaae7e53649ab0b44b4bdd8d6fb58fb [file] [log] [blame]
/* First created by JCasGen Tue Aug 09 16:26:13 CEST 2011 */
package org.apache.uima.ruta.type;
import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.jcas.cas.TOP_Type;
import org.apache.uima.jcas.tcas.Annotation;
/**
* Updated by JCasGen Thu Jul 12 10:42:33 CEST 2012 XML source:
* D:/work/workspace-uima6/uimaj-ruta/src
* /main/java/org/apache/uima/ruta/engine/InternalTypeSystem.xml
*
* @generated
*/
public class ProfiledAnnotation extends Annotation {
/**
* @generated
* @ordered
*/
public final static int typeIndexID = JCasRegistry.register(ProfiledAnnotation.class);
/**
* @generated
* @ordered
*/
public final static int type = typeIndexID;
/** @generated */
public int getTypeIndexID() {
return typeIndexID;
}
/**
* Never called. Disable default constructor
*
* @generated
*/
protected ProfiledAnnotation() {/* intentionally empty block */
}
/**
* Internal - constructor used by generator
*
* @generated
*/
public ProfiledAnnotation(int addr, TOP_Type type) {
super(addr, type);
readObject();
}
/** @generated */
public ProfiledAnnotation(JCas jcas) {
super(jcas);
readObject();
}
/** @generated */
public ProfiledAnnotation(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() {
}
// *--------------*
// * Feature: time
/**
* getter for time - gets
*
* @generated
*/
public long getTime() {
if (ProfiledAnnotation_Type.featOkTst
&& ((ProfiledAnnotation_Type) jcasType).casFeat_time == null)
jcasType.jcas.throwFeatMissing("time", "org.apache.uima.ruta.type.ProfiledAnnotation");
return jcasType.ll_cas.ll_getLongValue(addr,
((ProfiledAnnotation_Type) jcasType).casFeatCode_time);
}
/**
* setter for time - sets
*
* @generated
*/
public void setTime(long v) {
if (ProfiledAnnotation_Type.featOkTst
&& ((ProfiledAnnotation_Type) jcasType).casFeat_time == null)
jcasType.jcas.throwFeatMissing("time", "org.apache.uima.ruta.type.ProfiledAnnotation");
jcasType.ll_cas.ll_setLongValue(addr, ((ProfiledAnnotation_Type) jcasType).casFeatCode_time, v);
}
}