All Downloads are FREE. Search and download functionalities are using the official Maven repository.

webanno.custom.ComplexLinkHost 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.cas.FSArray;
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 ComplexLinkHost extends Annotation {
 
  /** @generated
   * @ordered 
   */
  @SuppressWarnings ("hiding")
  public final static String _TypeName = "webanno.custom.ComplexLinkHost";
  
  /** @generated
   * @ordered 
   */
  @SuppressWarnings ("hiding")
  public final static int typeIndexID = JCasRegistry.register(ComplexLinkHost.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_links = "links";
  public final static String _FeatName_value = "value";


  /* Feature Adjusted Offsets */
  private final static CallSite _FC_links = TypeSystemImpl.createCallSite(ComplexLinkHost.class, "links");
  private final static MethodHandle _FH_links = _FC_links.dynamicInvoker();
  private final static CallSite _FC_value = TypeSystemImpl.createCallSite(ComplexLinkHost.class, "value");
  private final static MethodHandle _FH_value = _FC_value.dynamicInvoker();

   
  /** Never called.  Disable default constructor
   * @generated */
  @Deprecated
  @SuppressWarnings ("deprecation")
  protected ComplexLinkHost() {/* 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 ComplexLinkHost(TypeImpl type, CASImpl casImpl) {
    super(type, casImpl);
    readObject();
  }
  
  /** @generated
   * @param jcas JCas to which this Feature Structure belongs 
   */
  public ComplexLinkHost(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 ComplexLinkHost(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: links

  /** getter for links - gets 
   * @generated
   * @return value of the feature 
   */
  @SuppressWarnings("unchecked")
  public FSArray getLinks() { 
    return (FSArray)(_getFeatureValueNc(wrapGetIntCatchException(_FH_links)));
  }
    
  /** setter for links - sets  
   * @generated
   * @param v value to set into the feature 
   */
  public void setLinks(FSArray v) {
    _setFeatureValueNcWj(wrapGetIntCatchException(_FH_links), v);
  }    
    
    
  /** indexed getter for links - gets an indexed value - 
   * @generated
   * @param i index in the array to get
   * @return value of the element at index i 
   */
  @SuppressWarnings("unchecked")
  public ComplexLinkType getLinks(int i) {
     return (ComplexLinkType)(((FSArray)(_getFeatureValueNc(wrapGetIntCatchException(_FH_links)))).get(i));
  } 

  /** indexed setter for links - sets an indexed value - 
   * @generated
   * @param i index in the array to set
   * @param v value to set into the array 
   */
  @SuppressWarnings("unchecked")
    public void setLinks(int i, ComplexLinkType v) {
    ((FSArray)(_getFeatureValueNc(wrapGetIntCatchException(_FH_links)))).set(i, 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