Package org.jbake.model
Class DocumentTypes
- java.lang.Object
-
- org.jbake.model.DocumentTypes
-
public class DocumentTypes extends java.lang.ObjectUtility 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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddDocumentType(java.lang.String docType)static voidaddListener(DocumentTypeListener listener)static booleancontains(java.lang.String documentType)static java.lang.String[]getDocumentTypes()Notice additional document types are added automagically before returning themstatic voidresetDocumentTypes()
-
-
-
Method Detail
-
resetDocumentTypes
public static void resetDocumentTypes()
-
addDocumentType
public static void addDocumentType(java.lang.String docType)
-
addListener
public static void addListener(DocumentTypeListener listener)
-
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)
-
-