public class DocumentHeaderImpl extends Object implements DocumentHeader
DocumentHeader implementation.| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.log4j.Logger |
log |
| Constructor and Description |
|---|
DocumentHeaderImpl()
Create a new empty document.
|
DocumentHeaderImpl(DocumentHeader header)
Copy constructor for header information.
|
DocumentHeaderImpl(Map<String,Object> metadata) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
asMap()
Returns a read-only view of the document metadata.
|
boolean |
exists()
Always returns
false. |
String |
getContentEncoding()
The character set encoding that MUST be used to interpret the byte[]
returned by
Document#getContent(). |
String |
getContentType()
The MIME type for the document.
|
long |
getEarliestVersionCreateTime()
The time at which the earliest version of this file still on record
was created (historical file metadata can be eradicated through
compacting merges).
|
String |
getId()
The unique identifier for the document within the
IContentRepository. |
long |
getMetadataUpdateTime()
The time at which the metadata for the current version of this file
was last updated.
|
Object |
getProperty(String name)
Get an arbitrary property value.
|
int |
getVersion()
Return the version identifier.
|
long |
getVersionCreateTime()
The time at which the current version of this file was created.
|
void |
setContentEncoding(String contentEncoding) |
void |
setContentType(String contentType) |
void |
setId(String id) |
void |
setProperty(String name,
Object newValue)
Set an arbitrary property value.
|
public DocumentHeaderImpl()
public DocumentHeaderImpl(DocumentHeader header)
header - to copypublic void setId(String id)
public void setContentType(String contentType)
public void setContentEncoding(String contentEncoding)
public String getId()
DocumentHeaderIContentRepository.getId in interface DocumentHeaderpublic int getVersion()
DocumentHeadergetVersion in interface DocumentHeaderpublic String getContentType()
DocumentHeadergetContentType in interface DocumentHeaderpublic String getContentEncoding()
DocumentHeaderDocument#getContent().getContentEncoding in interface DocumentHeaderpublic void setProperty(String name, Object newValue)
property - The property name.value - The value.public Object getProperty(String name)
DocumentHeadergetProperty in interface DocumentHeaderpublic Map<String,Object> asMap()
DocumentHeaderasMap in interface DocumentHeaderpublic boolean exists()
false.exists in interface DocumentHeaderpublic long getEarliestVersionCreateTime()
DocumentHeadergetEarliestVersionCreateTime in interface DocumentHeaderIllegalStateException - always.public long getMetadataUpdateTime()
DocumentHeadergetMetadataUpdateTime in interface DocumentHeaderIllegalStateException - always.public long getVersionCreateTime()
DocumentHeadergetVersionCreateTime in interface DocumentHeaderIllegalStateException - always.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.