public class CsvFormatDriver extends ModelAttributeDriver
@directio.csv attributes.
charset=[string-literal] as charset name (default: UTF-8) has_header=TRUE|FALSE as whether header is required (default: FALSE) force_header=TRUE|FALSE as whether header is ALWAYS required,
and it may not have a valid form (default: FALSE) allow_linefeed=TRUE|FALSE as whether each field can contain linefeed (default: FALSE) true=[string-literal] as "true" representation
(default: CsvConfiguration.DEFAULT_TRUE_FORMAT)
false=[string-literal] as "false" representation
(default: CsvConfiguration.DEFAULT_FALSE_FORMAT)
date=[string-literal] as Date format
(default: CsvConfiguration.DEFAULT_DATE_FORMAT)
datetime=[string-literal] as DateTime format
(default: CsvConfiguration.DEFAULT_DATE_TIME_FORMAT)
compression=[string-literal] as compression name (default: plain) AttributeDriver.Context| Modifier and Type | Field and Description |
|---|---|
static String |
ELEMENT_ALLOW_LINEFEED
The element name of whether value can contain linefeed.
|
static String |
ELEMENT_CHARSET_NAME
The element name of charset name.
|
static String |
ELEMENT_CODEC_NAME
The element name of codec name.
|
static String |
ELEMENT_DATE_NAME
The element name of
Date representation. |
static String |
ELEMENT_DATE_TIME_NAME
The element name of
DateTime representation. |
static String |
ELEMENT_FALSE_NAME
The element name of
false representation. |
static String |
ELEMENT_FORCE_HEADER_NAME
The element name of whether header is ALWAYS required.
|
static String |
ELEMENT_HAS_HEADER_NAME
The element name of whether header is required.
|
static String |
ELEMENT_TRUE_NAME
The element name of
true representation. |
static String |
TARGET_NAME
The attribute name.
|
| Constructor and Description |
|---|
CsvFormatDriver() |
| Modifier and Type | Method and Description |
|---|---|
String |
getTargetName()
Returns the qualified name of the target attribute.
|
void |
process(DmdlSemantics environment,
ModelDeclaration declaration,
AstAttribute attribute)
Processes and modifies the attributed data model declaration.
|
process, verify, verifypublic static final String TARGET_NAME
public static final String ELEMENT_CHARSET_NAME
public static final String ELEMENT_HAS_HEADER_NAME
public static final String ELEMENT_FORCE_HEADER_NAME
public static final String ELEMENT_ALLOW_LINEFEED
public static final String ELEMENT_CODEC_NAME
public static final String ELEMENT_TRUE_NAME
true representation.public static final String ELEMENT_FALSE_NAME
false representation.public static final String ELEMENT_DATE_NAME
Date representation.public static final String ELEMENT_DATE_TIME_NAME
DateTime representation.public String getTargetName()
AttributeDriverpublic void process(DmdlSemantics environment, ModelDeclaration declaration, AstAttribute attribute)
ModelAttributeDriverprocess in class ModelAttributeDriverenvironment - the processing environmentdeclaration - the model declaration with the attributeattribute - the attribute with the target nameAttributeDriver.getTargetName()Copyright © 2011–2018 Asakusa Framework Team. All rights reserved.