org.asciidoctor
public class Attributes extends Object
Constructor and Description |
---|
Attributes() |
Attributes(Map<String,Object> attributes) |
Attributes(String attributes) |
Attributes(String[] attributes) |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
map() |
void |
setAllowUriRead(boolean allowUriRead) |
void |
setAnchors(boolean setAnchors)
Sets setanchor flag.
|
void |
setAppendixCaption(String appendixCaption) |
void |
setAttribute(String attributeName,
Object attributeValue) |
void |
setAttributeMissing(String attributeMissing) |
void |
setAttributes(Map<String,Object> attributes)
Adds all attributes.
|
void |
setAttributes(String... attributes)
Sets attributes in array form.
|
void |
setAttributes(String attributes)
Sets attributes in string form.
|
void |
setAttributeUndefined(String attributeUndefined) |
void |
setBackend(String backend) |
void |
setCacheUri(boolean hardbreaks) |
void |
setCompatMode(CompatMode compatMode)
Sets compat-mode attribute.
|
void |
setCopyCss(boolean copyCss)
Sets copy css attribute.
|
void |
setDataUri(boolean dataUri)
Sets data-uri attribute.
|
void |
setDocDate(Date docDate)
Sets date in format yyyy-MM-dd
|
void |
setDocTime(Date docTime)
Sets time in format HH:mm:ss z
|
void |
setDocType(String docType) |
void |
setExperimental(boolean experimental)
Sets experimental attribute.
|
void |
setHardbreaks(boolean hardbreaks) |
void |
setHideUriScheme(boolean hideUriScheme) |
void |
setIconFontCdn(URI cdnUri)
The URI prefix of the icon font; looks for minified CSS file based on iconfont-name value; used when
iconfont-remote is set
|
void |
setIconFontName(String iconFontName)
The name of the stylesheet in the stylesdir to load (.css extension added automatically)
|
void |
setIconFontRemote(boolean iconFontRemote)
Enable icon font remote attribute.
|
void |
setIcons(String iconsName)
Sets which admonition icons to use.
|
void |
setIconsDir(String iconsDir)
Sets icons directory.
|
void |
setIgnoreUndefinedAttributes(boolean ignoreUndefinedAttributes)
Sets ignore undefined flag so lines are kept when they contain a reference to a missing attribute.
|
void |
setImagesDir(String imagesDir) |
void |
setLinkAttrs(boolean linkAttrs)
Sets linkattrs attribute.
|
void |
setLinkCss(boolean linkCss)
Sets link css attribute.
|
void |
setLocalDate(Date localDate)
Sets date in format yyyy-MM-dd
|
void |
setLocalTime(Date localTime)
Sets time in format HH:mm:ss z
|
void |
setMath(String math) |
void |
setMaxIncludeDepth(int maxIncludeDepth) |
void |
setNoFooter(boolean noFooter)
Sets nofooter attribute.
|
void |
setSectionNumbers(boolean sectionNumbers)
auto-number section titles in the HTML backend
|
void |
setSectNumLevels(int sectNumLevels) |
void |
setShowTitle(boolean showTitle)
Sets showtitle value as an alias for notitle!
|
void |
setSkipFrontMatter(boolean skipFrontMatter)
Skips front matter.
|
void |
setSourceHighlighter(String sourceHighlighter) |
void |
setSourceLanguage(String sourceLanguage) |
void |
setStylesDir(String stylesDir)
Sets the styles dir.
|
void |
setStyleSheetName(String styleSheetName)
Sets stylesheet name.
|
void |
setTableOfContents(boolean toc)
Sets if a table of contents should be rendered or not.
|
void |
setTableOfContents(Placement placement)
Sets if a table of contents should be rendered or not.
|
void |
setTableOfContents2(Placement placement)
Sets table of contents 2 attribute.
|
void |
setTitle(String title) |
void |
setUntitledLabel(String untitledLabel)
Sets the untitled label value.
|
static String |
toAsciidoctorFlag(boolean flag) |
void |
unsetStyleSheet()
Unsets stylesheet name so document will be generated without style.
|
public static final String BACKEND
public static final String TITLE
public static final String DOCTYPE
public static final String IMAGESDIR
public static final String SOURCE_HIGHLIGHTER
public static final String SOURCE_LANGUAGE
public static final String LOCALDATE
public static final String LOCALTIME
public static final String DOCDATE
public static final String DOCTIME
public static final String TOC
public static final String STYLESHEET_NAME
public static final String STYLES_DIR
public static final String NOT_STYLESHEET_NAME
public static final String LINK_CSS
public static final String COPY_CSS
public static final String ICONS
public static final String ICONFONT_REMOTE
public static final String ICONFONT_CDN
public static final String ICONFONT_NAME
public static final String ICONS_DIR
public static final String DATA_URI
public static final String SECTION_NUMBERS
public static final String IMAGE_ICONS
public static final String FONT_ICONS
public static final String LINK_ATTRS
public static final String EXPERIMENTAL
public static final String SHOW_TITLE
public static final String ALLOW_URI_READ
public static final String TOC_POSITION
public static final String TOC_2
public static final String IGNORE_UNDEFINED
public static final String UNTITLED_LABEL
public static final String SET_ANCHORS
public static final String SKIP_FRONT_MATTER
public static final String MAX_INCLUDE_DEPTH
public static final String ATTRIBUTE_MISSING
public static final String ATTRIBUTE_UNDEFINED
public static final String NO_FOOTER
public static final String HARDBREAKS
public static final String SECT_NUM_LEVELS
public static final String CACHE_URI
public static final String MATH
public static final String APPENDIX_CAPTION
public static final String HIDE_URI_SCHEME
public static final String COMPAT_MODE
public Attributes()
public Attributes(String[] attributes)
public Attributes(String attributes)
public void setAllowUriRead(boolean allowUriRead)
public void setAttributeMissing(String attributeMissing)
public void setAttributeUndefined(String attributeUndefined)
public void setBackend(String backend)
public void setTitle(String title)
public void setDocType(String docType)
public void setImagesDir(String imagesDir)
public void setSourceLanguage(String sourceLanguage)
public void setSourceHighlighter(String sourceHighlighter)
public void setMaxIncludeDepth(int maxIncludeDepth)
public void setSectNumLevels(int sectNumLevels)
public void setHardbreaks(boolean hardbreaks)
public void setCacheUri(boolean hardbreaks)
public void setHideUriScheme(boolean hideUriScheme)
public void setAppendixCaption(String appendixCaption)
public void setMath(String math)
public void setSkipFrontMatter(boolean skipFrontMatter)
skipFrontMatter
- value.public void setAnchors(boolean setAnchors)
setAnchors
- value.public void setUntitledLabel(String untitledLabel)
untitledLabel
- value.public void setIgnoreUndefinedAttributes(boolean ignoreUndefinedAttributes)
ignoreUndefinedAttributes
- value.public void setTableOfContents2(Placement placement)
placement
- where toc is rendered.public void setTableOfContents(Placement placement)
toc
- value.public void setShowTitle(boolean showTitle)
showTitle
- value.public void setTableOfContents(boolean toc)
toc
- value.public void setLocalDate(Date localDate)
localDate
- object.public void setLocalTime(Date localTime)
localTime
- object.public void setDocDate(Date docDate)
docDate
- object.public void setDocTime(Date docTime)
docTime
- object.public void setStyleSheetName(String styleSheetName)
styleSheetName
- of css file.public void unsetStyleSheet()
public void setStylesDir(String stylesDir)
stylesDir
- directory.public void setLinkCss(boolean linkCss)
linkCss
- true if css is linked, false if css is embedded.public void setCopyCss(boolean copyCss)
copyCss
- true if css should be copied to the output location, false otherwise.public void setIcons(String iconsName)
iconsName
- value.public void setIconFontRemote(boolean iconFontRemote)
iconFontRemote
- true if attribute enabled false otherwise.public void setIconFontCdn(URI cdnUri)
cdnUri
- uri where css is stored.public void setIconFontName(String iconFontName)
iconFontName
- stylesheet name without .css extension.public void setDataUri(boolean dataUri)
dataUri
- true if images should be embedded, false otherwise.public void setIconsDir(String iconsDir)
iconsDir
- public void setSectionNumbers(boolean sectionNumbers)
sectionNumbers
- public void setLinkAttrs(boolean linkAttrs)
linkAttrs
- true if Asciidoctor should parse link macro attributes, false otherwise.public void setExperimental(boolean experimental)
experimental
- true if experimental features should be enabled, false otherwise.public void setNoFooter(boolean noFooter)
noFooter
- true if the footer block should not be shown, false otherwise.public void setCompatMode(CompatMode compatMode)
compatMode
- value.public void setAttributes(String attributes)
attributes
- in string format.public void setAttributes(String... attributes)
attributes
- in array format.public void setAttributes(Map<String,Object> attributes)
attributes
- to add.public static String toAsciidoctorFlag(boolean flag)
Copyright © 2014. All Rights Reserved.