Package com.helger.html.hc.special
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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()IHasJSCodegetInlineJSAfterExternal()IHasJSCodegetInlineJSBeforeExternal()booleanhasExternalCSSs()booleanhasExternalJSs()booleanhasInlineCSSAfterExternal()booleanhasInlineCSSBeforeExternal()booleanhasInlineJSAfterExternal()booleanhasInlineJSBeforeExternal()booleanisEmpty()
-
-
-
Method Detail
-
isEmpty
boolean isEmpty()
-
hasExternalCSSs
boolean hasExternalCSSs()
- Returns:
trueif CSS files are present,falseif 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:
trueif inline CSS to be included before the CSS files is present,falseif 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:
trueif inline CSS to be included after the CSS files is present,falseif 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:
trueif JS files are present,falseif not
-
getAllExternalJSs
@Nonnull @ReturnsMutableCopy com.helger.commons.collection.impl.ICommonsList<String> getAllExternalJSs()
- Returns:
- All JS files. Never
null.
-
hasInlineJSBeforeExternal
boolean hasInlineJSBeforeExternal()
- Returns:
trueif inline JS is present,falseif not
-
getInlineJSBeforeExternal
@Nonnull @ReturnsMutableCopy IHasJSCode getInlineJSBeforeExternal()
- Returns:
- The inline JS. May not be
null.
-
hasInlineJSAfterExternal
boolean hasInlineJSAfterExternal()
- Returns:
trueif inline JS is present,falseif not
-
getInlineJSAfterExternal
@Nonnull @ReturnsMutableCopy IHasJSCode getInlineJSAfterExternal()
- Returns:
- The inline JS. May not be
null.
-
-