Class HeadMatcher
java.lang.Object
ch.tocco.nice2.optional.cms.impl.publish.output.freemarker.postprocessing.HeadMatcher
Utility to find the head element in an HTML document.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
found()
Determine whether the head could be found.Get the found head element.
-
Constructor Details
-
HeadMatcher
Create a new HeadMatcher.- Parameters:
content
- The HTML document content.
-
-
Method Details
-
headElement
Get the found head element.- Returns:
- the head element.
- Throws:
IllegalStateException
- if the head could not be found.- See Also:
-
found
public boolean found()Determine whether the head could be found.- Returns:
- true, if the head could be found, else false.
-