public interface INamespace
| Modifier and Type | Interface and Description |
|---|---|
static interface |
INamespace.INamespaceValue
Interface for all namespace constants.
|
static class |
INamespace.NamespaceCode
Enum of all valid namespace codes.
|
| Modifier and Type | Method and Description |
|---|---|
INamespace.INamespaceValue |
getCategory_talk()
The "Category talk" namespace for the current language.
|
INamespace.INamespaceValue |
getCategory()
The "Category" namespace for the current language.
|
INamespace.INamespaceValue |
getContentspace(String talkNamespace)
Gets the content namespace for a given (talk) namespace.
|
INamespace.INamespaceValue |
getHelp_talk()
The "Help talk" namespace for the current language.
|
INamespace.INamespaceValue |
getHelp()
The "Help" namespace for the current language.
|
INamespace.INamespaceValue |
getImage_talk()
The "File talk" namespace for the current language.
|
INamespace.INamespaceValue |
getImage()
The "File" namespace for the current language.
|
INamespace.INamespaceValue |
getMain()
The main namespace for the current language.
|
INamespace.INamespaceValue |
getMedia()
Get the "Media" namespace for the current language.
|
INamespace.INamespaceValue |
getMediaWiki_talk()
The "MediaWiki talk" namespace for the current language.
|
INamespace.INamespaceValue |
getMediaWiki()
The "MediaWiki" namespace for the current language.
|
INamespace.INamespaceValue |
getModule()
The "Module" namespace for the current language.
|
INamespace.INamespaceValue |
getNamespace(String namespace) |
INamespace.INamespaceValue |
getNamespaceByNumber(INamespace.NamespaceCode numberCode) |
INamespace.INamespaceValue |
getNamespaceByNumber(int numberCode) |
INamespace.INamespaceValue |
getPortal_talk()
The "Portal talk" namespace for the current language.
|
INamespace.INamespaceValue |
getPortal()
The "Portal" namespace for the current language.
|
INamespace.INamespaceValue |
getProject_talk()
The "Meta talk" namespace for the current language.
|
INamespace.INamespaceValue |
getProject()
The "Meta" namespace for the current language.
|
ResourceBundle |
getResourceBundle() |
INamespace.INamespaceValue |
getSpecial()
Get the "Special" namespace for the current language.
|
INamespace.INamespaceValue |
getTalk()
The "Talk" namespace for the current language.
|
INamespace.INamespaceValue |
getTalkspace(String namespace)
Get the Talk namespace.
|
INamespace.INamespaceValue |
getTemplate_talk()
The "Template talk" namespace for the current language.
|
INamespace.INamespaceValue |
getTemplate()
The "Template" namespace for the current language.
|
INamespace.INamespaceValue |
getUser_talk()
The "User talk" namespace for the current language.
|
INamespace.INamespaceValue |
getUser()
The "User" namespace for the current language.
|
boolean |
isNamespace(INamespace.INamespaceValue namespace,
INamespace.NamespaceCode code)
Checks whether the given namespace is a namespace of the given type.
|
boolean |
isNamespace(String namespace,
INamespace.NamespaceCode code)
Checks whether the given string is a valid namespace of the given type.
|
String[] |
splitNsTitle(String fullTitle)
Splits the given full title into its namespace and page title components
and normalises both components using
Encoder.normaliseTitle(String, boolean, char, boolean). |
String[] |
splitNsTitle(String fullTitle,
boolean underScoreIsWhitespace,
char whiteSpaceChar,
boolean firstCharacterAsUpperCase)
Splits the given full title into its namespace and page title components
and normalises both components using
Encoder.normaliseTitle(String, boolean, char, boolean). |
INamespace.INamespaceValue getMedia()
INamespace.INamespaceValue getSpecial()
INamespace.INamespaceValue getMain()
INamespace.INamespaceValue getTalk()
INamespace.INamespaceValue getUser()
INamespace.INamespaceValue getUser_talk()
INamespace.INamespaceValue getProject()
INamespace.INamespaceValue getProject_talk()
INamespace.INamespaceValue getImage()
INamespace.INamespaceValue getImage_talk()
INamespace.INamespaceValue getMediaWiki()
INamespace.INamespaceValue getMediaWiki_talk()
INamespace.INamespaceValue getModule()
INamespace.INamespaceValue getTemplate()
INamespace.INamespaceValue getTemplate_talk()
INamespace.INamespaceValue getHelp()
INamespace.INamespaceValue getHelp_talk()
INamespace.INamespaceValue getCategory()
INamespace.INamespaceValue getCategory_talk()
INamespace.INamespaceValue getPortal()
INamespace.INamespaceValue getPortal_talk()
boolean isNamespace(String namespace, INamespace.NamespaceCode code)
namespace - the potential namespace stringcode - the codeboolean isNamespace(INamespace.INamespaceValue namespace, INamespace.NamespaceCode code)
namespace - the namespacecode - the codeINamespace.INamespaceValue getNamespace(String namespace)
INamespace.INamespaceValue getNamespaceByNumber(INamespace.NamespaceCode numberCode)
INamespace.INamespaceValue getNamespaceByNumber(int numberCode)
ResourceBundle getResourceBundle()
INamespace.INamespaceValue getTalkspace(String namespace)
namespace - the namespacegetContentspace(String)INamespace.INamespaceValue getContentspace(String talkNamespace)
talkNamespace - the namespace, potentially a talkspacegetTalkspace(String)String[] splitNsTitle(String fullTitle)
Encoder.normaliseTitle(String, boolean, char, boolean). Assumes
underScoreIsWhitespace, uses a space as whiteSpaceChar
and capitalises the first character.fullTitle - the (full) title including a namespace (if present)splitNsTitle(String, boolean, char, boolean)String[] splitNsTitle(String fullTitle, boolean underScoreIsWhitespace, char whiteSpaceChar, boolean firstCharacterAsUpperCase)
Encoder.normaliseTitle(String, boolean, char, boolean).fullTitle - the (full) title including a namespace (if present)underScoreIsWhitespace - whether '_' should be seen as whitespace or notwhiteSpaceChar - the character to replace whitespace withfirstCharacterAsUpperCase - if true convert the first of the title to upper caseCopyright © 2017 Java Wikipedia API (Bliki engine). All rights reserved.