|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.okapi.common.resource.TextPart
public class TextPart
Implements the base object for the parts that make up a content.
| Field Summary | |
|---|---|
TextFragment |
text
Text fragment of this part. |
| Constructor Summary | |
|---|---|
TextPart()
Creates an empty part. |
|
TextPart(java.lang.String text)
Creates a new TextPart with a given text string. |
|
TextPart(TextFragment text)
Creates a new TextPart with a given TextFragment. |
|
| Method Summary | |
|---|---|
TextPart |
clone()
|
TextFragment |
getContent()
Gets the text fragment for this part. |
boolean |
isSegment()
Indicates if this part is a Segment. |
void |
setContent(TextFragment fragment)
Sets the TextFragment for this part. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public TextFragment text
| Constructor Detail |
|---|
public TextPart()
public TextPart(TextFragment text)
TextFragment.
text - the TextFragment for this new part.public TextPart(java.lang.String text)
text - the text for this new part.| Method Detail |
|---|
public TextPart clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic TextFragment getContent()
public void setContent(TextFragment fragment)
TextFragment for this part.
fragment - the TextFragment to assign to this part.
It must not be null.public boolean isSegment()
Segment.
Segment, false if it is not.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||