public class CsvDfdlSchemaGenerator extends Object implements DfdlSchemaGenerator
DfdlSchemaGenerator
for CSV document.
This class uses "csv-template.dfdl.xsd" as a template. By consuming CSV header line
as an option, it fills corresponding element into schema.Modifier and Type | Class and Description |
---|---|
static class |
CsvDfdlSchemaGenerator.Options |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_DELIMITER |
static String |
NAME |
Constructor and Description |
---|
CsvDfdlSchemaGenerator() |
Modifier and Type | Method and Description |
---|---|
Document |
generate(ClassLoader classLoader,
Map<String,String> options) |
String |
getName() |
String[] |
getOptions() |
public static final String NAME
public static final String DEFAULT_DELIMITER
public String getName()
getName
in interface DfdlSchemaGenerator
public String[] getOptions()
getOptions
in interface DfdlSchemaGenerator
public Document generate(ClassLoader classLoader, Map<String,String> options) throws Exception
generate
in interface DfdlSchemaGenerator
Exception
Copyright © 2017–2022 Red Hat, Inc.. All rights reserved.