Package com.helger.photon.app.resource
Class WebSiteResourceBundle
java.lang.Object
com.helger.photon.app.resource.WebSiteResourceBundle
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 Summary
ConstructorsConstructorDescriptionWebSiteResourceBundle(List<WebSiteResourceWithCondition> aResources, String sConditionalComment, boolean bIsBundlable, com.helger.css.media.ICSSMediaList aMediaList) -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.helger.commons.collection.impl.ICommonsList<String>com.helger.commons.collection.impl.ICommonsList<WebSiteResource>com.helger.css.media.ICSSMediaListcom.helger.commons.mime.IMimeTypegetResourceAtIndex(int nIndex) intcom.helger.html.hc.IHCNodegetWrapped(com.helger.html.hc.IHCNode aNode) booleaninthashCode()booleanbooleantoString()
-
Constructor Details
-
WebSiteResourceBundle
-
-
Method Details
-
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
nullnor empty.
-
getResourceAtIndex
-
getAllResourcePaths
-
hasConditionalComment
public boolean hasConditionalComment()- Returns:
trueif a conditional comment is present,falseif not.
-
getConditionalComment
- Returns:
- The conditional comment to use or
nullif no such conditional comment is present.
-
isBundlable
public boolean isBundlable() -
getMediaList
-
hasMediaList
public boolean hasMediaList() -
getResourceType
-
getMimeType
-
getWrapped
-
equals
-
hashCode
public int hashCode() -
toString
-