Package org.xwiki.annotation.content
Interface AlteredContent
-
public interface AlteredContent
This class models an altered content, by providing the translations of offsets from the original content to the altered content.- Since:
- 2.3M1
- Version:
- $Id: b73b585d064efb8805e48da0b9d578f76db45670 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getAlteredOffset(int i)
CharSequence
getContent()
int
getInitialLength()
int
getInitialOffset(int i)
-
-
-
Method Detail
-
getInitialOffset
int getInitialOffset(int i)
- Parameters:
i
- is altered offset to map- Returns:
- initial offset corresponding to specified altered offset
-
getAlteredOffset
int getAlteredOffset(int i)
- Parameters:
i
- is initial offset to map- Returns:
- altered offset corresponding to specified initial offset
-
getContent
CharSequence getContent()
- Returns:
- the char sequence representing the altered content
-
getInitialLength
int getInitialLength()
- Returns:
- initial length of content
-
-