Package com.helger.html.hc.html.metadata
Class HCCSSNodeDetector
- java.lang.Object
-
- com.helger.html.hc.html.metadata.HCCSSNodeDetector
-
@NotThreadSafe public final class HCCSSNodeDetector extends Object
This class is used to determine the special nodes (JS and CSS, inline and reference).- Author:
- Philip Helger
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisCSSFileNode(IHCNode aNode)Check if the passed node is a file CSS node after unwrapping.static booleanisCSSInlineNode(IHCNode aNode)Check if the passed node is an inline CSS node after unwrapping.static booleanisCSSNode(IHCNode aNode)Check if the passed node is a CSS node after unwrapping.static booleanisDirectCSSFileNode(IHCNode aNode)Check if the passed node is a file CSS node.static booleanisDirectCSSInlineNode(IHCNode aNode)Check if the passed node is an inline CSS node.static booleanisDirectCSSNode(IHCNode aNode)Check if the passed node is a CSS node.
-
-
-
Method Detail
-
isCSSNode
public static boolean isCSSNode(@Nullable IHCNode aNode)
Check if the passed node is a CSS node after unwrapping.
-
isDirectCSSNode
public static boolean isDirectCSSNode(@Nullable IHCNode aNode)
Check if the passed node is a CSS node.
-
isCSSInlineNode
public static boolean isCSSInlineNode(@Nullable IHCNode aNode)
Check if the passed node is an inline CSS node after unwrapping.- Parameters:
aNode- The node to be checked - may benull.- Returns:
trueif the node implementsHCStyle.
-
isDirectCSSInlineNode
public static boolean isDirectCSSInlineNode(@Nullable IHCNode aNode)
Check if the passed node is an inline CSS node.- Parameters:
aNode- The node to be checked - may benull.- Returns:
trueif the node implementsHCStyle.
-
isCSSFileNode
public static boolean isCSSFileNode(@Nullable IHCNode aNode)
Check if the passed node is a file CSS node after unwrapping.- Parameters:
aNode- The node to be checked - may benull.- Returns:
trueif the node implementsHCLink.
-
-