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()
DocumentHeader
IContentRepository
.getId
in interface DocumentHeader
public int getVersion()
DocumentHeader
getVersion
in interface DocumentHeader
public String getContentType()
DocumentHeader
getContentType
in interface DocumentHeader
public String getContentEncoding()
DocumentHeader
Document#getContent()
.getContentEncoding
in interface DocumentHeader
public void setProperty(String name, Object newValue)
property
- The property name.value
- The value.public Object getProperty(String name)
DocumentHeader
getProperty
in interface DocumentHeader
public Map<String,Object> asMap()
DocumentHeader
asMap
in interface DocumentHeader
public boolean exists()
false
.exists
in interface DocumentHeader
public long getEarliestVersionCreateTime()
DocumentHeader
getEarliestVersionCreateTime
in interface DocumentHeader
IllegalStateException
- always.public long getMetadataUpdateTime()
DocumentHeader
getMetadataUpdateTime
in interface DocumentHeader
IllegalStateException
- always.public long getVersionCreateTime()
DocumentHeader
getVersionCreateTime
in interface DocumentHeader
IllegalStateException
- always.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.