//Dstl (c) Crown Copyright 2017
/* First created by JCasGen Thu Oct 13 13:31:25 BST 2016 */
package uk.gov.dstl.baleen.types.structure;
import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.jcas.cas.TOP_Type;
/** A cell in a Table.
* Updated by JCasGen Thu Dec 22 22:42:18 CET 2016
* XML source: /Users/chrisflatley/Projects/railroad/baleen/baleen/baleen-uima/src/main/resources/types/structure_type_system.xml
* @generated */
public class TableCell extends TablePart {
/** @generated
* @ordered
*/
@SuppressWarnings ("hiding")
public final static int typeIndexID = JCasRegistry.register(TableCell.class);
/** @generated
* @ordered
*/
@SuppressWarnings ("hiding")
public final static int type = typeIndexID;
/** @generated
* @return index of the type
*/
@Override
public int getTypeIndexID() {return typeIndexID;}
/** Never called. Disable default constructor
* @generated */
protected TableCell() {/* intentionally empty block */}
/** Internal - constructor used by generator
* @generated
* @param addr low level Feature Structure reference
* @param type the type of this Feature Structure
*/
public TableCell(int addr, TOP_Type type) {
super(addr, type);
readObject();
}
/** @generated
* @param jcas JCas to which this Feature Structure belongs
*/
public TableCell(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 TableCell(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() {/*default - does nothing empty block */}
//*--------------*
//* Feature: row
/** getter for row - gets The row number in the table
* @generated
* @return value of the feature
*/
public int getRow() {
if (TableCell_Type.featOkTst && ((TableCell_Type)jcasType).casFeat_row == null)
jcasType.jcas.throwFeatMissing("row", "uk.gov.dstl.baleen.types.structure.TableCell");
return jcasType.ll_cas.ll_getIntValue(addr, ((TableCell_Type)jcasType).casFeatCode_row);}
/** setter for row - sets The row number in the table
* @generated
* @param v value to set into the feature
*/
public void setRow(int v) {
if (TableCell_Type.featOkTst && ((TableCell_Type)jcasType).casFeat_row == null)
jcasType.jcas.throwFeatMissing("row", "uk.gov.dstl.baleen.types.structure.TableCell");
jcasType.ll_cas.ll_setIntValue(addr, ((TableCell_Type)jcasType).casFeatCode_row, v);}
//*--------------*
//* Feature: column
/** getter for column - gets The column number of the cell in the table
* @generated
* @return value of the feature
*/
public int getColumn() {
if (TableCell_Type.featOkTst && ((TableCell_Type)jcasType).casFeat_column == null)
jcasType.jcas.throwFeatMissing("column", "uk.gov.dstl.baleen.types.structure.TableCell");
return jcasType.ll_cas.ll_getIntValue(addr, ((TableCell_Type)jcasType).casFeatCode_column);}
/** setter for column - sets The column number of the cell in the table
* @generated
* @param v value to set into the feature
*/
public void setColumn(int v) {
if (TableCell_Type.featOkTst && ((TableCell_Type)jcasType).casFeat_column == null)
jcasType.jcas.throwFeatMissing("column", "uk.gov.dstl.baleen.types.structure.TableCell");
jcasType.ll_cas.ll_setIntValue(addr, ((TableCell_Type)jcasType).casFeatCode_column, v);}
//*--------------*
//* Feature: rowSpan
/** getter for rowSpan - gets The number of rows spanned by this cell. Assume any value less than 2 (or null) to be 1 (ie the cell covers 1 row).
* @generated
* @return value of the feature
*/
public int getRowSpan() {
if (TableCell_Type.featOkTst && ((TableCell_Type)jcasType).casFeat_rowSpan == null)
jcasType.jcas.throwFeatMissing("rowSpan", "uk.gov.dstl.baleen.types.structure.TableCell");
return jcasType.ll_cas.ll_getIntValue(addr, ((TableCell_Type)jcasType).casFeatCode_rowSpan);}
/** setter for rowSpan - sets The number of rows spanned by this cell. Assume any value less than 2 (or null) to be 1 (ie the cell covers 1 row).
* @generated
* @param v value to set into the feature
*/
public void setRowSpan(int v) {
if (TableCell_Type.featOkTst && ((TableCell_Type)jcasType).casFeat_rowSpan == null)
jcasType.jcas.throwFeatMissing("rowSpan", "uk.gov.dstl.baleen.types.structure.TableCell");
jcasType.ll_cas.ll_setIntValue(addr, ((TableCell_Type)jcasType).casFeatCode_rowSpan, v);}
//*--------------*
//* Feature: columnSpan
/** getter for columnSpan - gets The number of columns spanned by this cell. Assume any value less than 2 (or null) to be 1 (ie the cell covers 1 column).
* @generated
* @return value of the feature
*/
public int getColumnSpan() {
if (TableCell_Type.featOkTst && ((TableCell_Type)jcasType).casFeat_columnSpan == null)
jcasType.jcas.throwFeatMissing("columnSpan", "uk.gov.dstl.baleen.types.structure.TableCell");
return jcasType.ll_cas.ll_getIntValue(addr, ((TableCell_Type)jcasType).casFeatCode_columnSpan);}
/** setter for columnSpan - sets The number of columns spanned by this cell. Assume any value less than 2 (or null) to be 1 (ie the cell covers 1 column).
* @generated
* @param v value to set into the feature
*/
public void setColumnSpan(int v) {
if (TableCell_Type.featOkTst && ((TableCell_Type)jcasType).casFeat_columnSpan == null)
jcasType.jcas.throwFeatMissing("columnSpan", "uk.gov.dstl.baleen.types.structure.TableCell");
jcasType.ll_cas.ll_setIntValue(addr, ((TableCell_Type)jcasType).casFeatCode_columnSpan, v);}
}