Class WebSiteResourceBundle

java.lang.Object
com.helger.photon.app.resource.WebSiteResourceBundle

@Immutable public class WebSiteResourceBundle extends Object
This is a bundle of 1-n WebSiteResource objects that share the same conditional comment and can be bundled with each other.
Author:
Philip Helger
  • Constructor Details

  • Method Details

    • getResourceCount

      @Nonnegative public int getResourceCount()
      Returns:
      The number of contained resources. Always ≥ 1.
    • getAllResources

      @Nonnull @Nonempty @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<WebSiteResource> getAllResources()
      Returns:
      A list of all bundled resources. Neither null nor empty.
    • getResourceAtIndex

      @Nullable public WebSiteResource getResourceAtIndex(@Nonnegative int nIndex)
    • getAllResourcePaths

      @Nonnull @Nonempty @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<String> getAllResourcePaths()
    • hasConditionalComment

      public boolean hasConditionalComment()
      Returns:
      true if a conditional comment is present, false if not.
    • getConditionalComment

      @Nullable public String getConditionalComment()
      Returns:
      The conditional comment to use or null if no such conditional comment is present.
    • isBundlable

      public boolean isBundlable()
    • getMediaList

      @Nullable public com.helger.css.media.ICSSMediaList getMediaList()
    • hasMediaList

      public boolean hasMediaList()
    • getResourceType

      @Nonnull public EWebSiteResourceType getResourceType()
    • getMimeType

      @Nonnull public com.helger.commons.mime.IMimeType getMimeType()
    • getWrapped

      @Nonnull public com.helger.html.hc.IHCNode getWrapped(@Nonnull com.helger.html.hc.IHCNode aNode)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object