
webanno.custom.Relation Maven / Gradle / Ivy
/* Apache UIMA v3 - First created by JCasGen Wed Jun 14 21:38:06 CEST 2023 */
package webanno.custom;
import java.lang.invoke.CallSite;
import java.lang.invoke.MethodHandle;
import org.apache.uima.cas.impl.CASImpl;
import org.apache.uima.cas.impl.TypeImpl;
import org.apache.uima.cas.impl.TypeSystemImpl;
import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.jcas.tcas.Annotation;
/**
* Updated by JCasGen Wed Jun 14 21:38:06 CEST 2023
* XML source: /Users/bluefire/git/dkpro-core/target/checkout/dkpro-core-io-webanno-asl/target/jcasgen/typesystem.xml
* @generated */
public class Relation extends Annotation {
/** @generated
* @ordered
*/
@SuppressWarnings ("hiding")
public final static String _TypeName = "webanno.custom.Relation";
/** @generated
* @ordered
*/
@SuppressWarnings ("hiding")
public final static int typeIndexID = JCasRegistry.register(Relation.class);
/** @generated
* @ordered
*/
@SuppressWarnings ("hiding")
public final static int type = typeIndexID;
/** @generated
* @return index of the type
*/
@Override
public int getTypeIndexID() {return typeIndexID;}
/* *******************
* Feature Offsets *
* *******************/
public final static String _FeatName_Governor = "Governor";
public final static String _FeatName_Dependent = "Dependent";
public final static String _FeatName_value = "value";
/* Feature Adjusted Offsets */
private final static CallSite _FC_Governor = TypeSystemImpl.createCallSite(Relation.class, "Governor");
private final static MethodHandle _FH_Governor = _FC_Governor.dynamicInvoker();
private final static CallSite _FC_Dependent = TypeSystemImpl.createCallSite(Relation.class, "Dependent");
private final static MethodHandle _FH_Dependent = _FC_Dependent.dynamicInvoker();
private final static CallSite _FC_value = TypeSystemImpl.createCallSite(Relation.class, "value");
private final static MethodHandle _FH_value = _FC_value.dynamicInvoker();
/** Never called. Disable default constructor
* @generated */
@Deprecated
@SuppressWarnings ("deprecation")
protected Relation() {/* intentionally empty block */}
/** Internal - constructor used by generator
* @generated
* @param casImpl the CAS this Feature Structure belongs to
* @param type the type of this Feature Structure
*/
public Relation(TypeImpl type, CASImpl casImpl) {
super(type, casImpl);
readObject();
}
/** @generated
* @param jcas JCas to which this Feature Structure belongs
*/
public Relation(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 Relation(JCas jcas, int begin, int end) {
super(jcas);
setBegin(begin);
setEnd(end);
readObject();
}
/**
*
* Write your own initialization here
*
*
* @generated modifiable
*/
private void readObject() {/*default - does nothing empty block */}
//*--------------*
//* Feature: Governor
/** getter for Governor - gets
* @generated
* @return value of the feature
*/
public Annotation getGovernor() {
return (Annotation)(_getFeatureValueNc(wrapGetIntCatchException(_FH_Governor)));
}
/** setter for Governor - sets
* @generated
* @param v value to set into the feature
*/
public void setGovernor(Annotation v) {
_setFeatureValueNcWj(wrapGetIntCatchException(_FH_Governor), v);
}
//*--------------*
//* Feature: Dependent
/** getter for Dependent - gets
* @generated
* @return value of the feature
*/
public Annotation getDependent() {
return (Annotation)(_getFeatureValueNc(wrapGetIntCatchException(_FH_Dependent)));
}
/** setter for Dependent - sets
* @generated
* @param v value to set into the feature
*/
public void setDependent(Annotation v) {
_setFeatureValueNcWj(wrapGetIntCatchException(_FH_Dependent), v);
}
//*--------------*
//* Feature: value
/** getter for value - gets
* @generated
* @return value of the feature
*/
public String getValue() {
return _getStringValueNc(wrapGetIntCatchException(_FH_value));
}
/** setter for value - sets
* @generated
* @param v value to set into the feature
*/
public void setValue(String v) {
_setStringValueNfc(wrapGetIntCatchException(_FH_value), v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy