public class Sentence
extends Annotation
Modifier and Type | Field and Description |
---|---|
static int |
type |
static int |
typeIndexID |
Modifier | Constructor and Description |
---|---|
protected |
Sentence()
Never called.
|
|
Sentence(int addr,
TOP_Type type)
Internal - constructor used by generator
|
|
Sentence(JCas jcas) |
|
Sentence(JCas jcas,
int begin,
int end) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSegmentId()
getter for segmentId - gets
|
int |
getSentenceNumber()
getter for sentenceNumber - gets
|
int |
getTypeIndexID() |
private void |
readObject()
Write your own initialization here
|
void |
setSegmentId(java.lang.String v)
setter for segmentId - sets
|
void |
setSentenceNumber(int v)
setter for sentenceNumber - sets
|
protected Sentence()
public Sentence(int addr, TOP_Type type)
addr
- low level Feature Structure referencetype
- the type of this Feature Structurepublic Sentence(JCas jcas)
jcas
- JCas to which this Feature Structure belongspublic Sentence(JCas jcas, int begin, int end)
jcas
- JCas to which this Feature Structure belongsbegin
- offset to the begin spot in the SofAend
- offset to the end spot in the SofApublic int getTypeIndexID()
private void readObject()
public int getSentenceNumber()
public void setSentenceNumber(int v)
v
- value to set into the featurepublic java.lang.String getSegmentId()
public void setSegmentId(java.lang.String v)
v
- value to set into the feature