Interface IHCSpecialNodes

  • All Superinterfaces:
    Serializable
    All Known Implementing Classes:
    AbstractHCSpecialNodes, HCSpecialNodes

    public interface IHCSpecialNodes
    extends Serializable
    This interface represents all special nodes that can occur in an HTML document: CSS files (<link rel="stylesheet" href="..."/>), JS files (<script href="...">) and inline JS code ( <script>...</script>).
    Author:
    Philip Helger
    • Method Detail

      • isEmpty

        boolean isEmpty()
      • hasExternalCSSs

        boolean hasExternalCSSs()
        Returns:
        true if CSS files are present, false if not
      • getAllExternalCSSs

        @Nonnull
        @ReturnsMutableCopy
        com.helger.commons.collection.impl.ICommonsOrderedMap<com.helger.css.media.ICSSMediaList,​com.helger.commons.collection.impl.ICommonsList<String>> getAllExternalCSSs()
        Returns:
        All CSS files as a map from media list to the list of matching files. Never null.
      • hasInlineCSSBeforeExternal

        boolean hasInlineCSSBeforeExternal()
        Returns:
        true if inline CSS to be included before the CSS files is present, false if not
      • getAllInlineCSSBeforeExternal

        @Nonnull
        @ReturnsMutableCopy
        com.helger.commons.collection.impl.ICommonsList<ICSSCodeProvider> getAllInlineCSSBeforeExternal()
        Returns:
        The inline CSS to be included before the files as a map from media list to the CSS code. May not be null.
      • hasInlineCSSAfterExternal

        boolean hasInlineCSSAfterExternal()
        Returns:
        true if inline CSS to be included after the CSS files is present, false if not
      • getAllInlineCSSAfterExternal

        @Nonnull
        @ReturnsMutableCopy
        com.helger.commons.collection.impl.ICommonsList<ICSSCodeProvider> getAllInlineCSSAfterExternal()
        Returns:
        The inline CSS to be included after the files as a map from media list to the CSS code. May not be null.
      • hasExternalJSs

        boolean hasExternalJSs()
        Returns:
        true if JS files are present, false if not
      • getAllExternalJSs

        @Nonnull
        @ReturnsMutableCopy
        com.helger.commons.collection.impl.ICommonsList<String> getAllExternalJSs()
        Returns:
        All JS files. Never null.
      • hasInlineJSBeforeExternal

        boolean hasInlineJSBeforeExternal()
        Returns:
        true if inline JS is present, false if not
      • getInlineJSBeforeExternal

        @Nonnull
        @ReturnsMutableCopy
        IHasJSCode getInlineJSBeforeExternal()
        Returns:
        The inline JS. May not be null.
      • hasInlineJSAfterExternal

        boolean hasInlineJSAfterExternal()
        Returns:
        true if inline JS is present, false if not
      • getInlineJSAfterExternal

        @Nonnull
        @ReturnsMutableCopy
        IHasJSCode getInlineJSAfterExternal()
        Returns:
        The inline JS. May not be null.