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, setNiceFormat
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
ofDefault
getDefaultValue, getFirstLevel, getFormatter, getCharset, getIndentation, getNewLine, isCacheAllowed
@Nonnull public String getDoctype()
DefaultXmlConfig
getDoctype
in interface XmlConfig
getDoctype
in class DefaultXmlConfig
@Nonnull public CharSequence getTitle()
HtmlConfig
getTitle
in interface HtmlConfig
public CharSequence[] getCssLinks()
HtmlConfig
getCssLinks
in interface HtmlConfig
@Nonnull public Optional<CharSequence> getLanguage()
HtmlConfig
getLanguage
in interface HtmlConfig
@Nonnull public String getContentType()
HtmlConfig
"text/html"
getContentType
in interface HtmlConfig
public boolean isDocumentObjectModel()
false
isDocumentObjectModel
in interface HtmlConfig
public void setTitle(@Nonnull CharSequence title)
public void setCssLinks(@Nonnull CharSequence... cssLinks)
public void setLanguage(@Nonnull CharSequence language)
public void setDocumentObjectModel(boolean buildDom)
false
Copyright 2019-2022, Pavel Ponec