public class FileImportOptions extends Object
SpreadsheetFileImportOptions,
XlsxFileImportOptions, HtmlFileImportOptions,
FmHtmlFileImportOptions, MdxV1FileImportOptions,
MdxV2FileImportOptions, XmlFileImportOptions,
DocxFileImportOptions, SegmentationImportOptions,
CustomSegmentationImportOptions, StringCatalogImportOptions,
AdocFileImportOptions and OtherFilesImportOptions.
To make sure that only valid parameters are used for a given
FileType, call validate(FileType).
| Constructor and Description |
|---|
FileImportOptions()
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Boolean |
getCleanTagsAggressively() |
Boolean |
getContentSegmentation() |
Boolean |
getCustomSegmentation() |
Boolean |
getExcludeCodeBlocks() |
String[] |
getExcludedElements() |
String[] |
getExcludedFrontMatterElements() |
Boolean |
getExcludeIncludeDirectives() |
Boolean |
getFirstLineContainsHeader() |
Boolean |
getImportHiddenSheets() |
Boolean |
getImportHiddenSlides() |
Boolean |
getImportKeyAsSource() |
Boolean |
getImportNotes() |
Boolean |
getImportTranslations() |
Long |
getSrxStorageId() |
String[] |
getTranslatableElements() |
Boolean |
getTranslateAttributes() |
Boolean |
getTranslateContent() |
Boolean |
getTranslateHiddenRowsAndColumns() |
Boolean |
getTranslateHiddenText() |
Boolean |
getTranslateHyperlinkUrls() |
int |
hashCode() |
void |
setCleanTagsAggressively(Boolean cleanTagsAggressively)
Sets whether to clean tags aggressively.
|
void |
setContentSegmentation(Boolean contentSegmentation)
Sets whether content segmentation is enabled.
|
void |
setCustomSegmentation(Boolean customSegmentation)
Sets whether custom segmentation is enabled.
|
void |
setExcludeCodeBlocks(Boolean excludeCodeBlocks)
Sets whether to exclude code blocks.
|
void |
setExcludedElements(String[] excludedElements)
Sets an array CSS selectors for elements that should not be imported.
|
void |
setExcludedFrontMatterElements(String[] excludedFrontMatterElements)
Sets an array of elements that should not be imported.
|
void |
setExcludeIncludeDirectives(Boolean excludeIncludeDirectives)
Sets whether to skip include directives.
|
void |
setFirstLineContainsHeader(Boolean firstLineContainsHeader)
Sets whether the first line contains a header.
|
void |
setImportHiddenSheets(Boolean importHiddenSheets)
Sets whether to import hidden sheets.
|
void |
setImportHiddenSlides(Boolean importHiddenSlides)
Sets whether to import hidden slides.
|
void |
setImportKeyAsSource(Boolean importKeyAsSource)
Sets whether to import keys as source strings.
|
void |
setImportNotes(Boolean importNotes)
Sets whether to import notes.
|
void |
setImportTranslations(Boolean importTranslations)
Sets whether to import translations.
|
void |
setSrxStorageId(Long srxStorageId)
Sets the SRX segmentation rules storage id.
|
void |
setTranslatableElements(String[] translatableElements)
Sets the array of translatable elements.
|
void |
setTranslateAttributes(Boolean translateAttributes)
Sets whether to translate tags attributes.
|
void |
setTranslateContent(Boolean translateContent)
Sets whether to translate content inside tags.
|
void |
setTranslateHiddenRowsAndColumns(Boolean translateHiddenRowsAndColumns)
Sets whether to translate hidden rows and columns.
|
void |
setTranslateHiddenText(Boolean translateHiddenText)
Sets whether to translate hidden text.
|
void |
setTranslateHyperlinkUrls(Boolean translateHyperlinkUrls)
Sets whether to translate hyperlinks.
|
String |
toString() |
void |
validate(FileType fileType)
Validates that no option has been set that is invalid for the specified
FileType. |
public void validate(@Nullable FileType fileType) throws org.apache.maven.plugin.MojoExecutionException
FileType.
Warning: If fileType is null or
FileType.auto, no validation is performed.
fileType - the FileType for which to validate.org.apache.maven.plugin.MojoExecutionException - If validation fails.@Nullable public Boolean getContentSegmentation()
contentSegmentation value.public void setContentSegmentation(Boolean contentSegmentation)
contentSegmentation - the contentSegmentation value to set.@Nullable public Boolean getCustomSegmentation()
public void setCustomSegmentation(Boolean customSegmentation)
customSegmentation - the customSegmentation value to set.@Nullable public Long getSrxStorageId()
srxStorageId value.public void setSrxStorageId(Long srxStorageId)
srxStorageId - the srxStorageId value to set.@Nullable public Boolean getFirstLineContainsHeader()
firstLineContainsHeader value.public void setFirstLineContainsHeader(Boolean firstLineContainsHeader)
firstLineContainsHeader - the firstLineContainsHeader value
to set.@Nullable public Boolean getImportHiddenSheets()
importHiddenSheets value.public void setImportHiddenSheets(Boolean importHiddenSheets)
importHiddenSheets - the importHiddenSheets value to set.@Nullable public Boolean getImportTranslations()
importTranslations value.public void setImportTranslations(Boolean importTranslations)
importTranslations - the importTranslations value to set.@Nullable public Boolean getTranslateContent()
translateContent value.public void setTranslateContent(Boolean translateContent)
translateContent - the translateContent value to set.@Nullable public Boolean getTranslateAttributes()
translateAttributes value.public void setTranslateAttributes(Boolean translateAttributes)
translateAttributes - the translateAttributes value to set.@Nullable public String[] getTranslatableElements()
translatableElements value.public void setTranslatableElements(String[] translatableElements)
translatableElements - the translatableElements value to
set.@Nullable public Boolean getCleanTagsAggressively()
cleanTagsAggressively value.public void setCleanTagsAggressively(Boolean cleanTagsAggressively)
cleanTagsAggressively - the cleanTagsAggressively value to
set.@Nullable public Boolean getTranslateHiddenText()
translateHiddenText value.public void setTranslateHiddenText(Boolean translateHiddenText)
translateHiddenText - the translateHiddenText value to set.@Nullable public Boolean getTranslateHyperlinkUrls()
translateHyperlinkUrls value.public void setTranslateHyperlinkUrls(Boolean translateHyperlinkUrls)
translateHyperlinkUrls - the translateHyperlinkUrls value
to set.@Nullable public Boolean getTranslateHiddenRowsAndColumns()
translateHiddenRowsAndColumns value.public void setTranslateHiddenRowsAndColumns(Boolean translateHiddenRowsAndColumns)
translateHiddenRowsAndColumns - the
translateHiddenRowsAndColumns value to set.@Nullable public Boolean getImportNotes()
importNotes value.public void setImportNotes(Boolean importNotes)
importNotes - the importNotes value to set.@Nullable public Boolean getImportHiddenSlides()
importHiddenSlides value.public void setImportHiddenSlides(Boolean importHiddenSlides)
importHiddenSlides - the importHiddenSlides value to set.@Nullable public String[] getExcludedElements()
excludedElements value.public void setExcludedElements(String[] excludedElements)
excludedElements - the excludedElements value to set.@Nullable public String[] getExcludedFrontMatterElements()
excludedFrontMatterElements value.public void setExcludedFrontMatterElements(String[] excludedFrontMatterElements)
excludedFrontMatterElements - the
excludedFrontMatterElements value to set.@Nullable public Boolean getExcludeCodeBlocks()
excludeCodeBlocks value.public void setExcludeCodeBlocks(Boolean excludeCodeBlocks)
excludeCodeBlocks - the excludeCodeBlocks value to set.@Nullable public Boolean getImportKeyAsSource()
importKeyAsSource value.public void setImportKeyAsSource(Boolean importKeyAsSource)
importKeyAsSource - the importKeyAsSource value to set.@Nullable public Boolean getExcludeIncludeDirectives()
excludeIncludeDirectives value.public void setExcludeIncludeDirectives(Boolean excludeIncludeDirectives)
excludeIncludeDirectives - the excludeIncludeDirectives
value to set.Copyright © 2024. All rights reserved.