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.
| Constructor and Description |
|---|
DocumentTypes() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addDocumentType(java.lang.String docType) |
static void |
addListener(DocumentTypeListener listener) |
static boolean |
contains(java.lang.String documentType) |
static java.lang.String[] |
getDocumentTypes()
Notice additional document types are added automagically before returning them
|
static void |
resetDocumentTypes() |
public static void resetDocumentTypes()
public static void addDocumentType(java.lang.String docType)
public static void addListener(DocumentTypeListener listener)
public static java.lang.String[] getDocumentTypes()
public static boolean contains(java.lang.String documentType)