blob: 0add512fd14933529ac324673390d58984c2390e [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.FSArray;
import org.apache.uima.jcas.cas.TOP_Type;
/**
* 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 DebugRuleApply extends DebugScriptApply {
/**
* @generated
* @ordered
*/
public final static int typeIndexID = JCasRegistry.register(DebugRuleApply.class);
/**
* @generated
* @ordered
*/
public final static int type = typeIndexID;
/** @generated */
public int getTypeIndexID() {
return typeIndexID;
}
/**
* Never called. Disable default constructor
*
* @generated
*/
protected DebugRuleApply() {/* intentionally empty block */
}
/**
* Internal - constructor used by generator
*
* @generated
*/
public DebugRuleApply(int addr, TOP_Type type) {
super(addr, type);
readObject();
}
/** @generated */
public DebugRuleApply(JCas jcas) {
super(jcas);
readObject();
}
/** @generated */
public DebugRuleApply(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: applied
/**
* getter for applied - gets
*
* @generated
*/
public int getApplied() {
if (DebugRuleApply_Type.featOkTst && ((DebugRuleApply_Type) jcasType).casFeat_applied == null)
jcasType.jcas.throwFeatMissing("applied", "org.apache.uima.ruta.type.DebugRuleApply");
return jcasType.ll_cas.ll_getIntValue(addr,
((DebugRuleApply_Type) jcasType).casFeatCode_applied);
}
/**
* setter for applied - sets
*
* @generated
*/
public void setApplied(int v) {
if (DebugRuleApply_Type.featOkTst && ((DebugRuleApply_Type) jcasType).casFeat_applied == null)
jcasType.jcas.throwFeatMissing("applied", "org.apache.uima.ruta.type.DebugRuleApply");
jcasType.ll_cas.ll_setIntValue(addr, ((DebugRuleApply_Type) jcasType).casFeatCode_applied, v);
}
// *--------------*
// * Feature: tried
/**
* getter for tried - gets
*
* @generated
*/
public int getTried() {
if (DebugRuleApply_Type.featOkTst && ((DebugRuleApply_Type) jcasType).casFeat_tried == null)
jcasType.jcas.throwFeatMissing("tried", "org.apache.uima.ruta.type.DebugRuleApply");
return jcasType.ll_cas.ll_getIntValue(addr, ((DebugRuleApply_Type) jcasType).casFeatCode_tried);
}
/**
* setter for tried - sets
*
* @generated
*/
public void setTried(int v) {
if (DebugRuleApply_Type.featOkTst && ((DebugRuleApply_Type) jcasType).casFeat_tried == null)
jcasType.jcas.throwFeatMissing("tried", "org.apache.uima.ruta.type.DebugRuleApply");
jcasType.ll_cas.ll_setIntValue(addr, ((DebugRuleApply_Type) jcasType).casFeatCode_tried, v);
}
// *--------------*
// * Feature: rules
/**
* getter for rules - gets
*
* @generated
*/
public FSArray getRules() {
if (DebugRuleApply_Type.featOkTst && ((DebugRuleApply_Type) jcasType).casFeat_rules == null)
jcasType.jcas.throwFeatMissing("rules", "org.apache.uima.ruta.type.DebugRuleApply");
return (FSArray) (jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr,
((DebugRuleApply_Type) jcasType).casFeatCode_rules)));
}
/**
* setter for rules - sets
*
* @generated
*/
public void setRules(FSArray v) {
if (DebugRuleApply_Type.featOkTst && ((DebugRuleApply_Type) jcasType).casFeat_rules == null)
jcasType.jcas.throwFeatMissing("rules", "org.apache.uima.ruta.type.DebugRuleApply");
jcasType.ll_cas.ll_setRefValue(addr, ((DebugRuleApply_Type) jcasType).casFeatCode_rules,
jcasType.ll_cas.ll_getFSRef(v));
}
/**
* indexed getter for rules - gets an indexed value -
*
* @generated
*/
public DebugRuleMatch getRules(int i) {
if (DebugRuleApply_Type.featOkTst && ((DebugRuleApply_Type) jcasType).casFeat_rules == null)
jcasType.jcas.throwFeatMissing("rules", "org.apache.uima.ruta.type.DebugRuleApply");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr,
((DebugRuleApply_Type) jcasType).casFeatCode_rules), i);
return (DebugRuleMatch) (jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(
jcasType.ll_cas
.ll_getRefValue(addr, ((DebugRuleApply_Type) jcasType).casFeatCode_rules), i)));
}
/**
* indexed setter for rules - sets an indexed value -
*
* @generated
*/
public void setRules(int i, DebugRuleMatch v) {
if (DebugRuleApply_Type.featOkTst && ((DebugRuleApply_Type) jcasType).casFeat_rules == null)
jcasType.jcas.throwFeatMissing("rules", "org.apache.uima.ruta.type.DebugRuleApply");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr,
((DebugRuleApply_Type) jcasType).casFeatCode_rules), i);
jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr,
((DebugRuleApply_Type) jcasType).casFeatCode_rules), i, jcasType.ll_cas.ll_getFSRef(v));
}
// *--------------*
// * Feature: id
/**
* getter for id - gets
*
* @generated
*/
public int getId() {
if (DebugRuleApply_Type.featOkTst && ((DebugRuleApply_Type) jcasType).casFeat_id == null)
jcasType.jcas.throwFeatMissing("id", "org.apache.uima.ruta.type.DebugRuleApply");
return jcasType.ll_cas.ll_getIntValue(addr, ((DebugRuleApply_Type) jcasType).casFeatCode_id);
}
/**
* setter for id - sets
*
* @generated
*/
public void setId(int v) {
if (DebugRuleApply_Type.featOkTst && ((DebugRuleApply_Type) jcasType).casFeat_id == null)
jcasType.jcas.throwFeatMissing("id", "org.apache.uima.ruta.type.DebugRuleApply");
jcasType.ll_cas.ll_setIntValue(addr, ((DebugRuleApply_Type) jcasType).casFeatCode_id, v);
}
// *--------------*
// * Feature: script
/**
* getter for script - gets
*
* @generated
*/
public String getScript() {
if (DebugRuleApply_Type.featOkTst && ((DebugRuleApply_Type) jcasType).casFeat_script == null)
jcasType.jcas.throwFeatMissing("script", "org.apache.uima.ruta.type.DebugRuleApply");
return jcasType.ll_cas.ll_getStringValue(addr,
((DebugRuleApply_Type) jcasType).casFeatCode_script);
}
/**
* setter for script - sets
*
* @generated
*/
public void setScript(String v) {
if (DebugRuleApply_Type.featOkTst && ((DebugRuleApply_Type) jcasType).casFeat_script == null)
jcasType.jcas.throwFeatMissing("script", "org.apache.uima.ruta.type.DebugRuleApply");
jcasType.ll_cas.ll_setStringValue(addr, ((DebugRuleApply_Type) jcasType).casFeatCode_script, v);
}
}