Interface DocumentTypeInfo


  • @API(type=NOT_EXTENDABLE,
         src=PUBLIC)
    public interface DocumentTypeInfo
    Information about a document type.
    Since:
    15.2
    • Method Detail

      • getFrameworkFolder

        java.io.File getFrameworkFolder()
        Returns the location on disk of the framework folder.
        Returns:
        The location on disk of the framework folder.
      • getBaseFrameworkFolder

        java.io.File getBaseFrameworkFolder()
        Returns:
        The location on disk of the base framework folder or null if this document type is not an extension.
        Since:
        18.1.1
      • getFrameworkFile

        java.io.File getFrameworkFile()
        Returns the location on disk of the framework file.
        Returns:
        The location on disk of the framework file.
      • getId

        java.lang.String getId()
        Returns the id of the document type.
        Returns:
        the id of the document type.
      • getDescription

        java.lang.String getDescription()
        Returns a description of the framework.
        Returns:
        a description of the framework.
      • getName

        java.lang.String getName()
        Returns the name of the framework.
        Returns:
        the name of the framework.
      • isEnabled

        boolean isEnabled()
        Returns:
        true if the framework is enabled.
      • getAvailableCssGroups

        java.util.List<CSSGroup> getAvailableCssGroups()
        Returns the list of CSS groups defined in the framework.
        Returns:
        The list of CSS groups defined in the framework.
        Since:
        20.1
      • getWebResources

        java.util.List<java.io.File> getWebResources()
        Returns:
        a list of JS files or folders containing js files that will be loaded client-side by the Web Author.
        Since:
        23.1
      • getAuthorResourceBundle

        AuthorResourceBundle getAuthorResourceBundle()
        A message bundle that holds all the internationalized messages contrbuted by the current document type.
        Returns:
        The message bundle.
        Since:
        24
      • getPriority

        int getPriority()
        Getter for the document type priority.
        Returns:
        the document type priority (value between 1 and 5) used when matching to a document.
        Since:
        24.1
      • validate

        java.util.List<java.lang.String> validate()
        Checks if the framework contains invalid references.
        Returns:
        A list of validation error messages or an empty list if the framework is valid.