public class Namespace.NamespaceValue extends Object implements 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.
|
String |
toString() |
public INamespace.NamespaceCode getCode()
getCode in interface INamespace.INamespaceValuepublic void setTexts(String... aliases)
INamespace.INamespaceValuesetTexts in interface INamespace.INamespaceValuealiases - all aliases for the namespacepublic void addAlias(String alias)
INamespace.INamespaceValueaddAlias in interface INamespace.INamespaceValuealias - the aliaspublic String getPrimaryText()
INamespace.INamespaceValuegetPrimaryText in interface INamespace.INamespaceValueINamespace.INamespaceValue.getTexts().public String getCanonicalName()
getCanonicalName in interface INamespace.INamespaceValuepublic List<String> getTexts()
getTexts in interface INamespace.INamespaceValuepublic Namespace.NamespaceValue getTalkspace()
getTalkspace in interface INamespace.INamespaceValuepublic Namespace.NamespaceValue getContentspace()
getContentspace in interface INamespace.INamespaceValuepublic Namespace.NamespaceValue getAssociatedspace()
INamespace.INamespaceValuegetAssociatedspace in interface INamespace.INamespaceValuepublic String makeFullPagename(String pageName)
INamespace.INamespaceValuemakeFullPagename in interface INamespace.INamespaceValuepageName - the page name without a namespace, e.g. "Test"public boolean isType(INamespace.NamespaceCode code)
INamespace.INamespaceValueisType in interface INamespace.INamespaceValuecode - the codepublic boolean hasSubpages()
INamespace.INamespaceValuehasSubpages in interface INamespace.INamespaceValuepublic boolean hasGenderDistinction()
INamespace.INamespaceValuehasGenderDistinction in interface INamespace.INamespaceValuepublic boolean isCapitalized()
INamespace.INamespaceValueisCapitalized in interface INamespace.INamespaceValuepublic boolean isContent()
INamespace.INamespaceValueisContent in interface INamespace.INamespaceValuepublic boolean isIncludable()
INamespace.INamespaceValueisIncludable in interface INamespace.INamespaceValuepublic boolean isMovable()
INamespace.INamespaceValueisMovable in interface INamespace.INamespaceValuepublic boolean isSubject()
INamespace.INamespaceValueisSubject in interface INamespace.INamespaceValuepublic boolean isTalk()
INamespace.INamespaceValueisTalk in interface INamespace.INamespaceValueCopyright © 2017 Java Wikipedia API (Bliki engine). All rights reserved.