Package org.nuxeo.ecm.core.io.impl
Class TypedExportedDocumentImpl
java.lang.Object
org.nuxeo.ecm.core.io.impl.ExportedDocumentImpl
org.nuxeo.ecm.core.io.impl.TypedExportedDocumentImpl
- All Implemented Interfaces:
ExportedDocument
A representation for an exported document aware of property types.
- Since:
- 5.6
- Author:
- Antoine Taillefer
-
Field Summary
Fields inherited from class org.nuxeo.ecm.core.io.impl.ExportedDocumentImpl
blobs, document, documents, id, path, srcLocation
-
Constructor Summary
ConstructorDescriptionInstantiates a new typed exported document impl.TypedExportedDocumentImpl
(DocumentModel doc, boolean inlineBlobs) Instantiates a new typed exported document impl.TypedExportedDocumentImpl
(DocumentModel doc, Path path, boolean inlineBlobs) Instantiates a new typed exported document impl. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getSimpleTypeId
(Type type) Gets the simple type id.protected void
readProperty
(org.dom4j.Element parent, Namespace targetNs, Field field, Object value, boolean inlineBlobs) Here we do what super does but add the "type" attribute to the XML elements.Methods inherited from class org.nuxeo.ecm.core.io.impl.ExportedDocumentImpl
getBlob, getBlobs, getDocument, getDocument, getDocuments, getFilesCount, getId, getPath, getSourceLocation, getType, hasExternalBlobs, putBlob, putDocument, readACP, readBlob, readComplex, readDocument, readDocumentSchemas, readFacets, readLifeCycleInfo, readList, removeBlob, removeDocument, requiresCDATA, setDocument, setId, setPath
-
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 docpath
- the path to use for this document this is used to remove full pathsinlineBlobs
- the inline blobs- Throws:
IOException
- Signals that an I/O exception has occurred.
-
TypedExportedDocumentImpl
Instantiates a new typed exported document impl.- Parameters:
doc
- the doc- Throws:
IOException
- Signals that an I/O exception has occurred.
-
TypedExportedDocumentImpl
Instantiates a new typed exported document impl.- Parameters:
doc
- the docinlineBlobs
- 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 classExportedDocumentImpl
- Throws:
IOException
-
getSimpleTypeId
Gets the simple type id.- Parameters:
type
- the type- Returns:
- the simple type id
-