@Setup(mode=SINGLETON, priority=2000) public class DocumentPropertyCSVWriter extends AbstractCSVWriter<Property>
| Modifier and Type | Field and Description |
|---|---|
static String |
LANG_CTX_DATA |
static String |
LIST_DELIMITER |
static String |
UNKNOWN_TRANSLATED_VALUE_LABEL |
ctx, registry, schemaManager, TEXT_CSV, TEXT_CSV_TYPE| Constructor and Description |
|---|
DocumentPropertyCSVWriter() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getTranslatedValue(Session session,
String schema,
String lang,
String value) |
protected void |
write(Property property,
org.apache.commons.csv.CSVPrinter printer) |
protected void |
writeHeader(Property property,
org.apache.commons.csv.CSVPrinter printer) |
protected void |
writeListProperty(Property property,
org.apache.commons.csv.CSVPrinter printer) |
protected void |
writeListVocabularyProperty(String[] values,
Directory vocabulary,
org.apache.commons.csv.CSVPrinter printer) |
protected void |
writeScalarProperty(Property property,
org.apache.commons.csv.CSVPrinter printer) |
protected void |
writeScalarVocabularyProperty(String value,
Directory vocabulary,
org.apache.commons.csv.CSVPrinter printer) |
protected void |
writeUnsupported(Type type,
org.apache.commons.csv.CSVPrinter printer) |
accept, getCSVPrinter, printCalendar, writepublic static final String LIST_DELIMITER
public static final String LANG_CTX_DATA
public static final String UNKNOWN_TRANSLATED_VALUE_LABEL
public DocumentPropertyCSVWriter()
protected void write(Property property, org.apache.commons.csv.CSVPrinter printer) throws IOException
write in class AbstractCSVWriter<Property>IOExceptionprotected void writeHeader(Property property, org.apache.commons.csv.CSVPrinter printer) throws IOException
writeHeader in class AbstractCSVWriter<Property>IOExceptionprotected void writeScalarProperty(Property property, org.apache.commons.csv.CSVPrinter printer) throws IOException
IOExceptionprotected void writeScalarVocabularyProperty(String value, Directory vocabulary, org.apache.commons.csv.CSVPrinter printer) throws IOException
IOExceptionprotected void writeListProperty(Property property, org.apache.commons.csv.CSVPrinter printer) throws IOException
IOExceptionprotected void writeListVocabularyProperty(String[] values, Directory vocabulary, org.apache.commons.csv.CSVPrinter printer) throws IOException
IOExceptionprotected String getTranslatedValue(Session session, String schema, String lang, String value)
protected void writeUnsupported(Type type, org.apache.commons.csv.CSVPrinter printer) throws IOException
IOExceptionCopyright © 2019 Nuxeo. All rights reserved.