Package com.helger.html.resource.css
Class ConstantCSSPathProvider
- java.lang.Object
-
- com.helger.html.resource.css.ConstantCSSPathProvider
-
- All Implemented Interfaces:
ICSSPathProvider,ICSSProvider,IHTMLResourceProvider,Serializable
public final class ConstantCSSPathProvider extends Object implements ICSSPathProvider
Implementation ofICSSPathProviderwith constant paths.- Author:
- Philip Helger
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.helger.html.resource.css.ICSSProvider
DEFAULT_CONDITIONAL_COMMENT, DEFAULT_CSS_MEDIA_LIST
-
Fields inherited from interface com.helger.html.resource.IHTMLResourceProvider
DEFAULT_IS_BUNDLABLE
-
-
Constructor Summary
Constructors Constructor Description ConstantCSSPathProvider(String sPath, String sMinifiedPath, String sConditionalComment, com.helger.css.media.ICSSMediaList aMediaList, boolean bIsBundlable)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConstantCSSPathProvidercreate(String sPath)static ConstantCSSPathProvidercreateBundlable(String sPath, boolean bBundlable)static ConstantCSSPathProvidercreateBundlable(String sPath, com.helger.css.media.ICSSMediaList aMediaList, boolean bBundlable)static ConstantCSSPathProvidercreateExternal(String sURI)static ConstantCSSPathProvidercreateExternal(String sURI, com.helger.css.media.ICSSMediaList aMediaList)static ConstantCSSPathProvidercreateExternal(String sURI, String sConditionalComment)static ConstantCSSPathProvidercreateExternal(String sURI, String sConditionalComment, com.helger.css.media.ICSSMediaList aMediaList)static ConstantCSSPathProvidercreateWithConditionalComment(String sPath, String sConditionalComment)static ConstantCSSPathProvidercreateWithConditionalComment(String sPath, String sConditionalComment, com.helger.css.media.ICSSMediaList aMediaList)booleanequals(Object o)StringgetConditionalComment()StringgetCSSItemPath(boolean bRegular)com.helger.css.media.ICSSMediaListgetMediaList()inthashCode()booleanisBundlable()StringtoString()
-
-
-
Method Detail
-
getCSSItemPath
@Nonnull @Nonempty public String getCSSItemPath(boolean bRegular)
- Specified by:
getCSSItemPathin interfaceICSSPathProvider- Parameters:
bRegular- iftruethe regular version of item should be retrieved, otherwise the minified version of the file.- Returns:
- The path to the external CSS item.
-
getConditionalComment
@Nullable public String getConditionalComment()
- Specified by:
getConditionalCommentin interfaceICSSProvider- Returns:
- The conditional comment required for this JS item or
nullif it applies to all browsers.
-
getMediaList
@Nonnull @ReturnsMutableCopy public com.helger.css.media.ICSSMediaList getMediaList()
- Specified by:
getMediaListin interfaceICSSProvider- Returns:
- The media list for which this CSS item applies. Never
nullbut maybe empty.
-
isBundlable
public boolean isBundlable()
- Specified by:
isBundlablein interfaceICSSProvider- Specified by:
isBundlablein interfaceIHTMLResourceProvider- Returns:
- Whether or not this script can be bundled to a big CSS profile. For some files this is not possible.
-
create
@Nonnull public static ConstantCSSPathProvider create(@Nonnull @Nonempty String sPath)
-
createWithConditionalComment
@Nonnull public static ConstantCSSPathProvider createWithConditionalComment(@Nonnull @Nonempty String sPath, @Nullable String sConditionalComment)
-
createWithConditionalComment
@Nonnull public static ConstantCSSPathProvider createWithConditionalComment(@Nonnull @Nonempty String sPath, @Nullable String sConditionalComment, @Nullable com.helger.css.media.ICSSMediaList aMediaList)
-
createBundlable
@Nonnull public static ConstantCSSPathProvider createBundlable(@Nonnull @Nonempty String sPath, boolean bBundlable)
-
createBundlable
@Nonnull public static ConstantCSSPathProvider createBundlable(@Nonnull @Nonempty String sPath, @Nullable com.helger.css.media.ICSSMediaList aMediaList, boolean bBundlable)
-
createExternal
@Nonnull public static ConstantCSSPathProvider createExternal(@Nonnull @Nonempty String sURI)
-
createExternal
@Nonnull public static ConstantCSSPathProvider createExternal(@Nonnull @Nonempty String sURI, @Nullable String sConditionalComment)
-
createExternal
@Nonnull public static ConstantCSSPathProvider createExternal(@Nonnull @Nonempty String sURI, @Nullable com.helger.css.media.ICSSMediaList aMediaList)
-
-