Class DocumentModelCSVWriter
java.lang.Object
org.nuxeo.ecm.core.io.marshallers.csv.AbstractCSVWriter<DocumentModel>
org.nuxeo.ecm.platform.csv.export.io.DocumentModelCSVWriter
- All Implemented Interfaces:
Marshaller<DocumentModel>
,Writer<DocumentModel>
@Setup(mode=SINGLETON,
priority=2000)
public class DocumentModelCSVWriter
extends AbstractCSVWriter<DocumentModel>
- Since:
- 10.3
-
Field Summary
Fields inherited from class org.nuxeo.ecm.core.io.marshallers.csv.AbstractCSVWriter
ctx, registry, schemaManager, TEXT_CSV, TEXT_CSV_TYPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
write
(DocumentModel entity, org.apache.commons.csv.CSVPrinter printer) protected void
writeHeader
(DocumentModel entity, org.apache.commons.csv.CSVPrinter printer) protected void
writeProperty
(DocumentModel entity, String xpath, org.apache.commons.csv.CSVPrinter printer) protected void
writeSchema
(DocumentModel entity, Schema schema, org.apache.commons.csv.CSVPrinter printer) protected void
writeSystem
(DocumentModel doc, org.apache.commons.csv.CSVPrinter printer) Methods inherited from class org.nuxeo.ecm.core.io.marshallers.csv.AbstractCSVWriter
accept, getCSVPrinter, printCalendar, write
-
Field Details
-
SCHEMAS_CTX_DATA
- See Also:
-
XPATHS_CTX_DATA
- See Also:
-
-
Constructor Details
-
DocumentModelCSVWriter
public DocumentModelCSVWriter()
-
-
Method Details
-
write
protected void write(DocumentModel entity, org.apache.commons.csv.CSVPrinter printer) throws IOException - Specified by:
write
in classAbstractCSVWriter<DocumentModel>
- Throws:
IOException
-
writeHeader
protected void writeHeader(DocumentModel entity, org.apache.commons.csv.CSVPrinter printer) throws IOException - Specified by:
writeHeader
in classAbstractCSVWriter<DocumentModel>
- Throws:
IOException
-
writeSystem
protected void writeSystem(DocumentModel doc, org.apache.commons.csv.CSVPrinter printer) throws IOException - Throws:
IOException
-
writeSchema
protected void writeSchema(DocumentModel entity, Schema schema, org.apache.commons.csv.CSVPrinter printer) throws IOException - Throws:
IOException
-
writeProperty
protected void writeProperty(DocumentModel entity, String xpath, org.apache.commons.csv.CSVPrinter printer) throws IOException - Throws:
IOException
-