| Constructor and Description |
|---|
SequenceLabel()
Create a new
Sequence with a null content (i.e., str). |
SequenceLabel(String aStr,
String aType)
Create a new
Sequence with the given string. |
SequenceLabel(String aStr,
String aType,
int aStartOffset,
int aSeqLength)
Creates a new
Sequence with the given content. |
SequenceLabel(String aStr,
String aType,
Span aSeqSpan)
Create a new
Sequence with the given string and Span. |
SequenceLabel(String aStr,
String aType,
Span aSeqSpan,
int aStartOffset,
int aSeqLength)
Creates a new
Sequence with the given content. |
| Modifier and Type | Method and Description |
|---|---|
Span |
getSpan()
Return the Span (or null if none).
|
String |
getString()
Return the string of the sequence (or null if none).
|
String |
getType()
Return the type of the Sequence.
|
int |
sequenceLength() |
void |
setFromString(String aStr)
Set the value from a String.
|
void |
setSequenceLength(int aSeqLength) |
void |
setSpan(Span span)
Set the Span for the Name.
|
void |
setStartOffset(int beginPosition) |
void |
setType(String neType)
Set type of the Sequence.
|
void |
setValue(String value)
Set the value for the Sequence.
|
int |
startOffset() |
String |
toString() |
public SequenceLabel()
Sequence with a null content (i.e., str).public SequenceLabel(String aStr, String aType)
Sequence with the given string.aStr - the new label's contentaType - the class of the namepublic SequenceLabel(String aStr, String aType, Span aSeqSpan)
Sequence with the given string and Span.aStr - the new label's contentaType - the class of the SpanaSeqSpan - the span of the sequencepublic SequenceLabel(String aStr, String aType, int aStartOffset, int aSeqLength)
Sequence with the given content.aStr - The new label's contentaType - the class of the SequenceaStartOffset - Start offset in original textaSeqLength - End offset in original textpublic SequenceLabel(String aStr, String aType, Span aSeqSpan, int aStartOffset, int aSeqLength)
Sequence with the given content.aStr - The new label's contentaType - the class of the sequenceaSeqSpan - the sequence spanaStartOffset - Start offset in original textaSeqLength - End offset in original textpublic final String getString()
public final String getType()
public final Span getSpan()
public final void setValue(String value)
value - The value for the Sequencepublic final void setType(String neType)
neType - the class of the Sequencepublic final void setSpan(Span span)
span - the Span of the namepublic final void setFromString(String aStr)
aStr - The str for the sequencepublic final int startOffset()
public final int sequenceLength()
public final void setStartOffset(int beginPosition)
beginPosition - the starting characterpublic final void setSequenceLength(int aSeqLength)
aSeqLength - the length of the sequenceCopyright © 2017 IXA pipes. All rights reserved.