/** @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 DocumentLine(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
DocumentLine annLine = new DocumentLine(jcas, currLineBegin, currLineBegin + lineLength); currLineBegin += lineLength; annLine.setX(bLine.getRegion().x); annLine.setY(bLine.getRegion().y); annLine.setHeight(bLine.getRegion().height); annLine.setWidth(bLine.getRegion().width); annLine.setPageId(block.getPageId()); annLine.setBlock(block.getId()); annLine.setLineText(lineText); // LATER a workaround annLine.setBeginnings(new FloatArray(jcas, bLine .getBeginnings().size())); for (int i = 0; i < bLine.getBeginnings().size(); i++) { annLine.setBeginnings(i, bLine.getBeginnings().get(i)); annLine.setEndings(new FloatArray(jcas, bLine.getEndings() .size())); for (int i = 0; i < bLine.getEndings().size(); i++) { annLine.setEndings(i, bLine.getEndings().get(i)); annLine.addToIndexes();
public FeatureStructure createFS(int addr, CASImpl cas) { if (DocumentLine_Type.this.useExistingInstance) { // Return eq fs instance if already created FeatureStructure fs = DocumentLine_Type.this.jcas.getJfsFromCaddr(addr); if (null == fs) { fs = new DocumentLine(addr, DocumentLine_Type.this); DocumentLine_Type.this.jcas.putJfsFromCaddr(addr, fs); return fs; } return fs; } else return new DocumentLine(addr, DocumentLine_Type.this); } };
/** Internal - constructor used by generator * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public DocumentLine(int addr, TOP_Type type) { super(addr, type); readObject(); }
/** @generated * @param jcas JCas to which this Feature Structure belongs */ public DocumentLine(JCas jcas) { super(jcas); readObject(); }