Class NS

java.lang.Object
org.fastily.jwiki.core.NS

public final class NS
extends Object
Contains default namespaces and methods to get non-standard namespaces.
Author:
Fastily
  • Field Details

    • MAIN

      public static final NS MAIN
      Main namespace
    • TALK

      public static final NS TALK
      Talk namespace for main
    • USER

      public static final NS USER
      User namespace
    • USER_TALK

      public static final NS USER_TALK
      User talk namespace
    • PROJECT

      public static final NS PROJECT
      Project namespace
    • PROJECT_TALK

      public static final NS PROJECT_TALK
      Project talk namespace
    • FILE

      public static final NS FILE
      File namespace
    • FILE_TALK

      public static final NS FILE_TALK
      File talk namespace
    • MEDIAWIKI

      public static final NS MEDIAWIKI
      MediaWiki namespace
    • MEDIAWIKI_TALK

      public static final NS MEDIAWIKI_TALK
      Mediawiki talk namespace
    • TEMPLATE

      public static final NS TEMPLATE
      Template namespace
    • TEMPLATE_TALK

      public static final NS TEMPLATE_TALK
      Template talk namespace
    • HELP

      public static final NS HELP
      Help namespace
    • HELP_TALK

      public static final NS HELP_TALK
      Help talk namespace
    • CATEGORY

      public static final NS CATEGORY
      Category namespace
    • CATEGORY_TALK

      public static final NS CATEGORY_TALK
      Category talk namespace.
    • v

      public final int v
      This NS's value.
  • Method Details

    • hashCode

      public int hashCode()
      Gets a hash code for this object. This is simply the namespace number.
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals​(Object x)
      Determines if two namespaces are the same namespace
      Overrides:
      equals in class Object