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 String
SCHEMAS_CTX_DATA
static String
XPATHS_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 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 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:
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
-
-