Class WikiLinkNamespaceComponent
java.lang.Object
com.lucaskjaerozhang.wikitext_parser.ast.link.WikiLinkNamespaceComponent
- All Implemented Interfaces:
WikiTextElement
A prefix component of a wikilink target showing where to locate the article.
Types:
Types:
- category
- language
- namespace
- wiki
-
Constructor Summary
ConstructorsConstructorDescriptionWikiLinkNamespaceComponent
(String component) Creates a namespace component from the given string, automatically detecting what type of namespace component it is. -
Method Summary
Modifier and TypeMethodDescriptionGet the namespace componentgetType()
This class detects what type of namespace component the input string is based on what it is.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.lucaskjaerozhang.wikitext_parser.ast.base.WikiTextElement
getCategories
-
Constructor Details
-
WikiLinkNamespaceComponent
Creates a namespace component from the given string, automatically detecting what type of namespace component it is.- Parameters:
component
- The namespace component.
-
-
Method Details
-
getComponent
Get the namespace component- Returns:
- The namespace component as a string.
-
getType
This class detects what type of namespace component the input string is based on what it is.- Returns:
- The type of namespace component.
-