public class FileExportOptions extends Object
GeneralFileExportOptions,
PropertyFileExportOptions and JavaScriptFileExportOptions.
To make sure that only valid parameters are used for a given
FileType, call validate(FileType).
| Modifier and Type | Class and Description |
|---|---|
static class |
FileExportOptions.JavaScriptExportQuotes
Represents the Crowdin API
exportQuotes JavaScript export
options. |
| Constructor and Description |
|---|
FileExportOptions()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Integer |
getEscapeQuotes() |
Integer |
getEscapeSpecialCharacters() |
String |
getExportPattern() |
FileExportOptions.JavaScriptExportQuotes |
getExportQuotes() |
int |
hashCode() |
void |
setEscapeQuotes(Integer escapeQuotes)
Sets the
escapeQuotes value. |
void |
setEscapeSpecialCharacters(Integer escapeSpecialCharacters)
Sets the
escapeSpecialCharacters value. |
void |
setExportPattern(String exportPattern)
Sets the
exportPattern value. |
void |
setExportQuotes(FileExportOptions.JavaScriptExportQuotes exportQuotes)
Sets the
exportQuotes value. |
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 String getExportPattern()
exportPattern value.exportPatternpublic void setExportPattern(@Nullable String exportPattern)
exportPattern value.exportPattern - the exportPattern value to set.exportPatternpublic Integer getEscapeQuotes()
escapeQuotes value.escapeQuotespublic void setEscapeQuotes(Integer escapeQuotes)
escapeQuotes value.escapeQuotes - the escapeQuotes value to set.escapeQuotespublic Integer getEscapeSpecialCharacters()
escapeSpecialCharacters value.escapeSpecialCharacterspublic void setEscapeSpecialCharacters(Integer escapeSpecialCharacters)
escapeSpecialCharacters value.escapeSpecialCharacters - the escapeSpecialCharacters value
to set.escapeSpecialCharacterspublic FileExportOptions.JavaScriptExportQuotes getExportQuotes()
exportQuotes value.exportQuotespublic void setExportQuotes(FileExportOptions.JavaScriptExportQuotes exportQuotes)
exportQuotes value.exportQuotes - the FileExportOptions.JavaScriptExportQuotes value to set.exportQuotesCopyright © 2024. All rights reserved.