Class WikiLinkNamespaceComponent

java.lang.Object
com.lucaskjaerozhang.wikitext_parser.ast.link.WikiLinkNamespaceComponent
All Implemented Interfaces:
WikiTextElement

public class WikiLinkNamespaceComponent extends Object implements WikiTextElement
A prefix component of a wikilink target showing where to locate the article.

Types:
  • category
  • language
  • namespace
  • wiki
  • Constructor Details

    • WikiLinkNamespaceComponent

      public WikiLinkNamespaceComponent(String component)
      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

      public String 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.