|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITextPieceInfo
Interface to properties of text piece. Rendered and XSLT-transfomed text of
node can only differ by white spaces, its obvious that some XML white spaces
are losed. Info is bridge from rendering to original document, implementing
bridge from rendered to transformed document and using ikslibs to bridge
transformed to original document.
Text indexes start from zero.
Method Summary | |
---|---|
DomPointer |
getDomPointer(int charGapIndex,
XMLAccess xmlAccess)
Returns pointer to original document specified by node assoc with this keeper and charGapIndex. |
ITextPieceKeeper |
getKeeper()
Returns associated text piece keeper. |
int |
getLastIndex()
Returns last index in rendered text. |
String |
getNodeID()
Identification of node in original document(not XSLT-transformed) holding the text (text node, cdata node). |
int |
getRenderedOffset()
Index of the first character of this text piece in whole rendered text of textual node. |
String |
getRenderedText()
Returns rendered keeper's text. |
int |
resolveRenderedIndex(int indexInRenderedText,
XMLAccess xmlAccess)
Resolves index in this rendered text to index in associated DOM node's(not XSLT - transformed) original text . |
Method Detail |
---|
String getNodeID()
String getRenderedText()
int getLastIndex()
int getRenderedOffset()
int resolveRenderedIndex(int indexInRenderedText, XMLAccess xmlAccess)
indexInRenderedText
- index in this's rendered text (0 to text.length-1)or
index one behind the text(for example when index is
character gap index, can be text lenght)
DomPointer getDomPointer(int charGapIndex, XMLAccess xmlAccess)
charGapIndex
- index of character gap in this's rendered text
ITextPieceKeeper getKeeper()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |