Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.io.impl.plugins
Class XMLDirectoryWriter

java.lang.Object
  extended by org.nuxeo.ecm.core.io.impl.AbstractDocumentWriter
      extended by org.nuxeo.ecm.core.io.impl.plugins.XMLDirectoryWriter
All Implemented Interfaces:
DocumentWriter

public class XMLDirectoryWriter
extends AbstractDocumentWriter

This class plays a role in the export pipe.It is used to generate xml files that have a nuxeo specific format.Each file contains information about a document model such as,general information like name, uid or document type, and information about the schemas that the document includes.

Author:
btatar

Constructor Summary
XMLDirectoryWriter(File destination)
           
XMLDirectoryWriter(String destinationPath)
           
 
Method Summary
 void close()
          Closes the writer.
 Object getDestination()
          Gives the destination where the XML file will be generated.
 void setDestination(File destination)
          Sets the destination where the XML file will be generated.
 DocumentTranslationMap write(ExportedDocument doc)
          Writes a single document.
 
Methods inherited from class org.nuxeo.ecm.core.io.impl.AbstractDocumentWriter
createCompactFormat, createPrettyPrint, write, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLDirectoryWriter

public XMLDirectoryWriter(String destinationPath)

XMLDirectoryWriter

public XMLDirectoryWriter(File destination)
Method Detail

getDestination

public Object getDestination()
Gives the destination where the XML file will be generated.


setDestination

public void setDestination(File destination)
Sets the destination where the XML file will be generated.


close

public void close()
Description copied from interface: DocumentWriter
Closes the writer.


write

public DocumentTranslationMap write(ExportedDocument doc)
                             throws IOException
Description copied from interface: DocumentWriter
Writes a single document.

Specified by:
write in interface DocumentWriter
Specified by:
write in class AbstractDocumentWriter
Parameters:
doc - the document to write
Returns:
the translation map.
Throws:
IOException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.