Package com.helger.html.hc.special
Class AbstractHCSpecialNodes<IMPLTYPE extends AbstractHCSpecialNodes<IMPLTYPE>>
- java.lang.Object
-
- com.helger.html.hc.special.AbstractHCSpecialNodes<IMPLTYPE>
-
- Type Parameters:
IMPLTYPE- Implementation type
- All Implemented Interfaces:
com.helger.commons.traits.IGenericImplTrait<IMPLTYPE>,IHCSpecialNodes,Serializable
- Direct Known Subclasses:
HCSpecialNodes
@NotThreadSafe public abstract class AbstractHCSpecialNodes<IMPLTYPE extends AbstractHCSpecialNodes<IMPLTYPE>> extends Object implements IHCSpecialNodes, com.helger.commons.traits.IGenericImplTrait<IMPLTYPE>
Abstract implementation ofIHCSpecialNodes.- Author:
- Philip Helger
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractHCSpecialNodes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IMPLTYPEaddAll(IHCSpecialNodes aSpecialNodes)IMPLTYPEaddExternalCSS(com.helger.css.media.ICSSMediaList aMediaList, String sCSSURI)IMPLTYPEaddExternalJS(String sJSURI)IMPLTYPEaddInlineCSSAfterExternal(com.helger.css.media.ICSSMediaList aMediaList, CharSequence aInlineCSS)IMPLTYPEaddInlineCSSBeforeExternal(com.helger.css.media.ICSSMediaList aMediaList, CharSequence aInlineCSS)IMPLTYPEaddInlineJSAfterExternal(IHasJSCode aInlineJS)IMPLTYPEaddInlineJSBeforeExternal(IHasJSCode aInlineJS)voidclear()Remove all contained content.booleanequals(Object o)com.helger.commons.collection.impl.ICommonsOrderedMap<com.helger.css.media.ICSSMediaList,com.helger.commons.collection.impl.ICommonsList<String>>getAllExternalCSSs()com.helger.commons.collection.impl.ICommonsList<String>getAllExternalJSs()com.helger.commons.collection.impl.ICommonsList<ICSSCodeProvider>getAllInlineCSSAfterExternal()com.helger.commons.collection.impl.ICommonsList<ICSSCodeProvider>getAllInlineCSSBeforeExternal()CollectingJSCodeProvidergetInlineJSAfterExternal()CollectingJSCodeProvidergetInlineJSBeforeExternal()protected com.helger.css.media.ICSSMediaListgetSafeCSSMediaList(com.helger.css.media.ICSSMediaList aMediaList)booleanhasExternalCSSs()booleanhasExternalJSs()inthashCode()booleanhasInlineCSSAfterExternal()booleanhasInlineCSSBeforeExternal()booleanhasInlineJSAfterExternal()booleanhasInlineJSBeforeExternal()booleanisEmpty()StringtoString()
-
-
-
Method Detail
-
clear
public void clear()
Remove all contained content.
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceIHCSpecialNodes
-
getSafeCSSMediaList
@Nonnull protected com.helger.css.media.ICSSMediaList getSafeCSSMediaList(@Nullable com.helger.css.media.ICSSMediaList aMediaList)
-
addExternalCSS
@Nonnull public IMPLTYPE addExternalCSS(@Nullable com.helger.css.media.ICSSMediaList aMediaList, @Nonnull @Nonempty String sCSSURI)
-
hasExternalCSSs
public boolean hasExternalCSSs()
- Specified by:
hasExternalCSSsin interfaceIHCSpecialNodes- Returns:
trueif CSS files are present,falseif not
-
getAllExternalCSSs
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsOrderedMap<com.helger.css.media.ICSSMediaList,com.helger.commons.collection.impl.ICommonsList<String>> getAllExternalCSSs()
- Specified by:
getAllExternalCSSsin interfaceIHCSpecialNodes- Returns:
- All CSS files as a map from media list to the list of matching
files. Never
null.
-
addInlineCSSBeforeExternal
@Nonnull public IMPLTYPE addInlineCSSBeforeExternal(@Nullable com.helger.css.media.ICSSMediaList aMediaList, @Nonnull CharSequence aInlineCSS)
-
hasInlineCSSBeforeExternal
public boolean hasInlineCSSBeforeExternal()
- Specified by:
hasInlineCSSBeforeExternalin interfaceIHCSpecialNodes- Returns:
trueif inline CSS to be included before the CSS files is present,falseif not
-
getAllInlineCSSBeforeExternal
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<ICSSCodeProvider> getAllInlineCSSBeforeExternal()
- Specified by:
getAllInlineCSSBeforeExternalin interfaceIHCSpecialNodes- Returns:
- The inline CSS to be included before the files as a map from
media list to the CSS code. May not be
null.
-
addInlineCSSAfterExternal
@Nonnull public IMPLTYPE addInlineCSSAfterExternal(@Nullable com.helger.css.media.ICSSMediaList aMediaList, @Nonnull CharSequence aInlineCSS)
-
hasInlineCSSAfterExternal
public boolean hasInlineCSSAfterExternal()
- Specified by:
hasInlineCSSAfterExternalin interfaceIHCSpecialNodes- Returns:
trueif inline CSS to be included after the CSS files is present,falseif not
-
getAllInlineCSSAfterExternal
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<ICSSCodeProvider> getAllInlineCSSAfterExternal()
- Specified by:
getAllInlineCSSAfterExternalin interfaceIHCSpecialNodes- 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
public boolean hasExternalJSs()
- Specified by:
hasExternalJSsin interfaceIHCSpecialNodes- Returns:
trueif JS files are present,falseif not
-
getAllExternalJSs
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<String> getAllExternalJSs()
- Specified by:
getAllExternalJSsin interfaceIHCSpecialNodes- Returns:
- All JS files. Never
null.
-
addInlineJSBeforeExternal
@Nonnull public IMPLTYPE addInlineJSBeforeExternal(@Nonnull IHasJSCode aInlineJS)
-
hasInlineJSBeforeExternal
public boolean hasInlineJSBeforeExternal()
- Specified by:
hasInlineJSBeforeExternalin interfaceIHCSpecialNodes- Returns:
trueif inline JS is present,falseif not
-
getInlineJSBeforeExternal
@Nonnull @ReturnsMutableCopy public CollectingJSCodeProvider getInlineJSBeforeExternal()
- Specified by:
getInlineJSBeforeExternalin interfaceIHCSpecialNodes- Returns:
- The inline JS. May not be
null.
-
addInlineJSAfterExternal
@Nonnull public IMPLTYPE addInlineJSAfterExternal(@Nonnull IHasJSCode aInlineJS)
-
hasInlineJSAfterExternal
public boolean hasInlineJSAfterExternal()
- Specified by:
hasInlineJSAfterExternalin interfaceIHCSpecialNodes- Returns:
trueif inline JS is present,falseif not
-
getInlineJSAfterExternal
@Nonnull @ReturnsMutableCopy public CollectingJSCodeProvider getInlineJSAfterExternal()
- Specified by:
getInlineJSAfterExternalin interfaceIHCSpecialNodes- Returns:
- The inline JS. May not be
null.
-
addAll
@Nonnull public IMPLTYPE addAll(@Nonnull IHCSpecialNodes aSpecialNodes)
-
-