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
public class TypedExportedDocumentImpl extends ExportedDocumentImpl
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
Constructors Constructor Description TypedExportedDocumentImpl()
TypedExportedDocumentImpl(DocumentModel doc)
Instantiates 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 Detail
-
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
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 docinlineBlobs
- the inline blobs- Throws:
IOException
- Signals that an I/O exception has occurred.
-
-
Method Detail
-
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
protected String getSimpleTypeId(Type type)
Gets the simple type id.- Parameters:
type
- the type- Returns:
- the simple type id
-
-