Class DocumentTypes


  • public class DocumentTypes
    extends java.lang.Object

    Utility class used to determine the list of document types. Currently only supports "page", "post", "index", "archive" and "feed".

    Additional document types are added at runtime based on the types found in the configuration.

    • Method Detail

      • resetDocumentTypes

        public static void resetDocumentTypes()
      • addDocumentType

        public static void addDocumentType​(java.lang.String docType)
      • getDocumentTypes

        public static java.lang.String[] getDocumentTypes()
        Notice additional document types are added automagically before returning them
        Returns:
        all supported document types
      • contains

        public static boolean contains​(java.lang.String documentType)