Class TypedExportedDocumentImpl

java.lang.Object
org.nuxeo.ecm.core.io.impl.ExportedDocumentImpl
org.nuxeo.ecm.core.io.impl.TypedExportedDocumentImpl
All Implemented Interfaces:
ExportedDocument

public class TypedExportedDocumentImpl extends ExportedDocumentImpl
A representation for an exported document aware of property types.
Since:
5.6
Author:
Antoine Taillefer
  • Constructor Details

    • TypedExportedDocumentImpl

      public TypedExportedDocumentImpl()
    • TypedExportedDocumentImpl

      public TypedExportedDocumentImpl(DocumentModel doc, Path path, boolean inlineBlobs) throws IOException
      Instantiates a new typed exported document impl.
      Parameters:
      doc - the doc
      path - the path to use for this document this is used to remove full paths
      inlineBlobs - the inline blobs
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • TypedExportedDocumentImpl

      public TypedExportedDocumentImpl(DocumentModel doc) throws IOException
      Instantiates a new typed exported document impl.
      Parameters:
      doc - the doc
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • TypedExportedDocumentImpl

      public TypedExportedDocumentImpl(DocumentModel doc, boolean inlineBlobs) throws IOException
      Instantiates a new typed exported document impl.
      Parameters:
      doc - the doc
      inlineBlobs - the inline blobs
      Throws:
      IOException - Signals that an I/O exception has occurred.
  • Method Details

    • readProperty

      protected void readProperty(org.dom4j.Element parent, Namespace targetNs, Field field, Object value, boolean inlineBlobs) throws IOException
      Here we do what super does but add the "type" attribute to the XML elements.
      Overrides:
      readProperty in class ExportedDocumentImpl
      Throws:
      IOException
    • getSimpleTypeId

      protected String getSimpleTypeId(Type type)
      Gets the simple type id.
      Parameters:
      type - the type
      Returns:
      the simple type id