public static class CsvSupportTrait.Configuration extends Object
CsvConfiguration| Constructor and Description |
|---|
Configuration() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCharsetName()
Returns the charset name.
|
String |
getDateFormat()
Returns the
Date representation in SimpleDateFormat. |
String |
getDateTimeFormat()
Returns the
DateTime representation in SimpleDateFormat. |
String |
getFalseFormat()
Returns the
"false" representation. |
String |
getTrueFormat()
Returns the
"true" representation. |
boolean |
isEnableHeader()
Returns whether the header is required.
|
boolean |
isForceHeader()
Returns whether the header is always required.
|
void |
setCharsetName(String charsetName)
Sets the charset name.
|
void |
setDateFormat(String format)
Configures the
Date representation. |
void |
setDateTimeFormat(String format)
Configures the
DateTime representation. |
void |
setEnableHeader(boolean enableHeader)
Configures whether the header is required.
|
void |
setFalseFormat(String format)
Configures the
"false" representation. |
void |
setForceHeader(boolean forceHeader)
Sets whether the header is always required.
|
void |
setTrueFormat(String format)
Configures the
"true" representation. |
public String getCharsetName()
public void setCharsetName(String charsetName)
charsetName - the charset namepublic boolean isEnableHeader()
true if header is required, otherwise false (default: false)public void setEnableHeader(boolean enableHeader)
enableHeader - true to require header, otherwise falsepublic boolean isForceHeader()
true if header is always required, otherwise false (default: false)public void setForceHeader(boolean forceHeader)
forceHeader - true to always require header, otherwise falsepublic String getTrueFormat()
"true" representation.CsvConfiguration.DEFAULT_TRUE_FORMAT)public void setTrueFormat(String format)
"true" representation.format - the representationpublic String getFalseFormat()
"false" representation.CsvConfiguration.DEFAULT_FALSE_FORMAT)public void setFalseFormat(String format)
"false" representation.format - the representationpublic String getDateFormat()
Date representation in SimpleDateFormat.CsvConfiguration.DEFAULT_DATE_FORMAT)public void setDateFormat(String format)
Date representation.format - the representation in SimpleDateFormatpublic String getDateTimeFormat()
DateTime representation in SimpleDateFormat.CsvConfiguration.DEFAULT_DATE_TIME_FORMAT)public void setDateTimeFormat(String format)
DateTime representation.format - the representation in SimpleDateFormatCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.