public class DefaultHtmlConfig extends DefaultXmlConfig implements HtmlConfig
DEFAULT_FIRST_LEVEL, DEFAULT_INTENDATION, DEFAULT_NEW_LINE, doctype, REQUIRED_MSG| Constructor and Description |
|---|
DefaultHtmlConfig() |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType()
Get a content type where a recommended value is
"text/html" |
CharSequence[] |
getCssLinks()
CSS links of a HTML page
|
String |
getDoctype()
A header declaration of the document or a doctype
|
Optional<CharSequence> |
getLanguage()
Language of a HTML page
|
CharSequence |
getTitle()
Title is a required element by HTML 5
|
boolean |
isDocumentObjectModel()
Build a real model or a plain writer, the default value is
false |
void |
setContentType(String contentType) |
void |
setCssLinks(CharSequence... cssLinks) |
void |
setDocumentObjectModel(boolean buildDom)
Build a real model or a plain writer, the default value is
false |
void |
setLanguage(CharSequence language) |
void |
setTitle(CharSequence title)
Title is a required element by HTML 5
|
getDefaultValue, getFirstLevel, getFormatter, getCharset, getIndentation, getNewLine, isCacheAllowed, nonnull, setCacheAllowed, setCompressedFormat, setDefaultValue, setDoctype, setDom, setFirstLevel, setFormatter, setCharset, setIndentationSpace, setNewLine, setNiceFormat, setNiceFormatclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitofDefaultgetDefaultValue, getFirstLevel, getFormatter, getCharset, getIndentation, getNewLine, isCacheAllowed@Nonnull public String getDoctype()
DefaultXmlConfiggetDoctype in interface XmlConfiggetDoctype in class DefaultXmlConfig@Nonnull public CharSequence getTitle()
HtmlConfiggetTitle in interface HtmlConfigpublic CharSequence[] getCssLinks()
HtmlConfiggetCssLinks in interface HtmlConfig@Nonnull public Optional<CharSequence> getLanguage()
HtmlConfiggetLanguage in interface HtmlConfig@Nonnull public String getContentType()
HtmlConfig"text/html"getContentType in interface HtmlConfigpublic boolean isDocumentObjectModel()
falseisDocumentObjectModel in interface HtmlConfigpublic void setTitle(@Nonnull CharSequence title)
public void setCssLinks(@Nonnull CharSequence... cssLinks)
public void setLanguage(@Nonnull CharSequence language)
public void setDocumentObjectModel(boolean buildDom)
falseCopyright 2019-2022, Pavel Ponec