public static interface INamespace.INamespaceValue
| Modifier and Type | Method and Description |
|---|---|
void |
addAlias(String alias)
Adds a single alias to the namespace.
|
Namespace.NamespaceValue |
getAssociatedspace()
Get the associated namespace.
|
String |
getCanonicalName() |
INamespace.NamespaceCode |
getCode() |
Namespace.NamespaceValue |
getContentspace() |
String |
getPrimaryText()
Provided for convenience.
|
Namespace.NamespaceValue |
getTalkspace() |
List<String> |
getTexts() |
boolean |
hasGenderDistinction()
Does the namespace (potentially) have different aliases for different
genders.
|
boolean |
hasSubpages()
Does the namespace allow subpages?
|
boolean |
isCapitalized()
Is the namespace first-letter capitalized?
|
boolean |
isContent()
Does this namespace contain content, for the purposes of calculating
statistics, etc?
|
boolean |
isIncludable()
It possible to use pages from this namespace as template?
|
boolean |
isMovable()
Can pages in the given namespace be moved?
|
boolean |
isSubject()
Is the given namespace is a subject (non-talk) namespace?
|
boolean |
isTalk()
Is the given namespace a talk namespace?
|
boolean |
isType(INamespace.NamespaceCode code)
Checks whether the namespace is a namespace of the given type.
|
String |
makeFullPagename(String pageName)
Prepends the namespace to the given pagename and returns the full
name with a separation character between a (non-empty) namespace and
the page name.
|
void |
setTexts(String... aliases)
Re-sets the texts used for this namespace.
|
INamespace.NamespaceCode getCode()
void setTexts(String... aliases)
aliases - all aliases for the namespacevoid addAlias(String alias)
alias - the aliasString getPrimaryText()
getTexts().String getCanonicalName()
Namespace.NamespaceValue getTalkspace()
Namespace.NamespaceValue getContentspace()
Namespace.NamespaceValue getAssociatedspace()
String makeFullPagename(String pageName)
pageName - the page name without a namespace, e.g. "Test"boolean isType(INamespace.NamespaceCode code)
code - the codeboolean hasSubpages()
boolean hasGenderDistinction()
boolean isCapitalized()
boolean isContent()
boolean isIncludable()
boolean isMovable()
boolean isSubject()
boolean isTalk()
Copyright © 2017 Java Wikipedia API (Bliki engine). All rights reserved.