public class TextFragment extends Object
| Constructor and Description |
|---|
TextFragment(Text text,
int startIndex,
int endIndex)
Creates a new fragment of the given text node.
|
public TextFragment(Text text, int startIndex, int endIndex)
text - the source text node.startIndex - the index of fragment's first character, in the source text node.endIndex - the index of fragment's last character, in the source text node.public Text getText()
public int getStartIndex()
public int getEndIndex()
Copyright © 2004–2015 XWiki. All rights reserved.