/** * Gets the part of the title after the first colon. If there is no * colon, returns the whole title. * @return */ public String getTitleStringWithoutNamespace(){ return getTitleStringWithoutNamespace(canonicalTitle); }
/** * <p> * Returns the title string of the revised page without any namespace * prefixes. The string is formatted as it would be on an HTML page and not * as in the URL used by MediaWiki for the page. For example, spaces are * represented as spaces and not as underscores. For example * </p> * <p> * On a single MediaWiki site, the combination of page title and page * namespace is a key for a page at any given moment. However, users may * change the title and namespace by moving pages. The page id provides a * better clue to identify pages across history. * </p> * * @return title string */ @Override public String getTitle() { return raw.getTitle().getTitleStringWithoutNamespace(); }
/** * <p> * Returns the title string of the revised page without any namespace * prefixes. The string is formatted as it would be on an HTML page and not * as in the URL used by MediaWiki for the page. For example, spaces are * represented as spaces and not as underscores. For example * </p> * <p> * On a single MediaWiki site, the combination of page title and page * namespace is a key for a page at any given moment. However, users may * change the title and namespace by moving pages. The page id provides a * better clue to identify pages across history. * </p> * * @return title string */ @Override public String getTitle() { return raw.getTitle().getTitleStringWithoutNamespace(); }
else if (sorted.size() > 0) title = sorted.get(0).getTitle().getTitleStringWithoutNamespace(); newRow.add(title); newRow.add(sorted.get(i).getTitle().getTitleStringWithoutNamespace()); } else { newRow.add("");
else if (sorted.size() > 0) title = sorted.get(0).getTitle().getTitleStringWithoutNamespace(); newRow.add(title); newRow.add(sorted.get(i).getTitle().getTitleStringWithoutNamespace()); } else { newRow.add("");
/** * <p> * Returns the title string of the revised page, including namespace * prefixes and subpages, if any. The string is formatted as it would be on * an HTML page and not as in the URL used by MediaWiki for the page. For * example, spaces are represented as spaces and not as underscores. For * example * </p> * <p> * On a single MediaWiki site, the prefixed page title is a key for a page * at any given moment. However, users may change the title and namespace by * moving pages. The page id provides a better clue to identify pages across * history. * </p> * * @return title string */ @Override public String getPrefixedTitle() { Title t = raw.getTitle(); if (raw.getNamespace() == NameSpace.WIKIPEDIA) { return t.getTitleStringWithoutNamespace(); } else { return t.getNamespaceString() + ":" + t.getTitleStringWithoutNamespace(); } }
/** * <p> * Returns the title string of the revised page, including namespace * prefixes and subpages, if any. The string is formatted as it would be on * an HTML page and not as in the URL used by MediaWiki for the page. For * example, spaces are represented as spaces and not as underscores. For * example * </p> * <p> * On a single MediaWiki site, the prefixed page title is a key for a page * at any given moment. However, users may change the title and namespace by * moving pages. The page id provides a better clue to identify pages across * history. * </p> * * @return title string */ @Override public String getPrefixedTitle() { Title t = raw.getTitle(); if (raw.getNamespace() == NameSpace.WIKIPEDIA) { return t.getTitleStringWithoutNamespace(); } else { return t.getNamespaceString() + ":" + t.getTitleStringWithoutNamespace(); } }
title = getNamespaceString(title) + ":" + StringUtils.capitalize(getTitleStringWithoutNamespace(title));
int destId = pageDao.getIdByTitle(title.getTitleStringWithoutNamespace(), language, ns); if (destId < 0) {
int destId = pageDao.getIdByTitle(title.getTitleStringWithoutNamespace(), language, ns); if (destId < 0) {