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 Modifier and Type Field Description static StringSCHEMAS_CTX_DATAstatic StringXPATHS_CTX_DATA-
Fields inherited from class org.nuxeo.ecm.core.io.marshallers.csv.AbstractCSVWriter
ctx, registry, schemaManager, TEXT_CSV, TEXT_CSV_TYPE
-
-
Constructor Summary
Constructors Constructor Description DocumentModelCSVWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidwrite(DocumentModel entity, org.apache.commons.csv.CSVPrinter printer)protected voidwriteHeader(DocumentModel entity, org.apache.commons.csv.CSVPrinter printer)protected voidwriteProperty(DocumentModel entity, String xpath, org.apache.commons.csv.CSVPrinter printer)protected voidwriteSchema(DocumentModel entity, Schema schema, org.apache.commons.csv.CSVPrinter printer)protected voidwriteSystem(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 Detail
-
SCHEMAS_CTX_DATA
public static final String SCHEMAS_CTX_DATA
- See Also:
- Constant Field Values
-
XPATHS_CTX_DATA
public static final String XPATHS_CTX_DATA
- See Also:
- Constant Field Values
-
-
Method Detail
-
write
protected void write(DocumentModel entity, org.apache.commons.csv.CSVPrinter printer) throws IOException
- Specified by:
writein classAbstractCSVWriter<DocumentModel>- Throws:
IOException
-
writeHeader
protected void writeHeader(DocumentModel entity, org.apache.commons.csv.CSVPrinter printer) throws IOException
- Specified by:
writeHeaderin 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
-
-