public class PageTitle extends Object implements Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
PageTitle(WikiConfig config,
String title,
String fragment,
Namespace namespace,
String namespaceAlias,
Interwiki interwiki,
boolean initialColon,
boolean isDefaultNs) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
PageTitle |
getBaseTitle() |
String |
getDenormalizedFullTitle()
Get the full title:
|
String |
getDenormalizedTitle()
Returns the de-normalized title ("_" replaced by " ").
|
String |
getFragment() |
Interwiki |
getInterwikiLink() |
Namespace |
getNamespace() |
String |
getNamespaceAlias()
Returns the name of the namespace that was specified by the user.
|
String |
getNormalizedFullTitle()
Get title string suitable for links:
|
String |
getTitle()
Returns the normalized title (" " replaced by "_").
|
URL |
getUrl() |
URL |
getUrl(Map<String,String> query) |
URL |
getUrl(String urlEncodedQuery) |
int |
hashCode() |
boolean |
hasInitialColon() |
boolean |
isInterwiki() |
boolean |
isLocal() |
static PageTitle |
make(WikiConfig config,
String target) |
static PageTitle |
make(WikiConfig config,
String target,
Namespace defaultNamespace) |
PageTitle |
newWithNamespace(Namespace ns) |
PageTitle |
newWithTitle(String title) |
String |
toString() |
public String getTitle()
public String getFragment()
public Namespace getNamespace()
public String getNamespaceAlias()
public Interwiki getInterwikiLink()
public boolean isLocal()
public boolean isInterwiki()
public boolean hasInitialColon()
public String getDenormalizedFullTitle()
"[IW_PREFIX:][NS_PREFIX:]TITLE"The TITLE itself will be in de-normalized form ("_" replaced by " ").
public String getDenormalizedTitle()
public String getNormalizedFullTitle()
"[IW_PREFIX:][NS_PREFIX:]TITLE"The TITLE itself will be in normalized form (" " replaced by "_").
public URL getUrl()
public URL getUrl(String urlEncodedQuery) throws MalformedURLException
MalformedURLExceptionpublic URL getUrl(Map<String,String> query) throws MalformedURLException
MalformedURLExceptionpublic PageTitle getBaseTitle()
public static PageTitle make(WikiConfig config, String target) throws LinkTargetException
LinkTargetExceptionpublic static PageTitle make(WikiConfig config, String target, Namespace defaultNamespace) throws LinkTargetException
LinkTargetExceptionCopyright © 2010–2018 University of Erlangen-Nürnberg - Open Source Research Group. All rights reserved.