public int getEndOffset() {
return endOffset;
}
public String getLinkTargetWithoutHash() {
WtPageName target = getLink().getTarget();
if (target == null) {
return null;
}
String targetString = target.getAsString();
int hashIndex = targetString.indexOf('#');
if (hashIndex > 0) {
targetString = targetString.substring(0, hashIndex);
}