org.exist.fluent
Class Document.MetadataFacet

java.lang.Object
  extended by org.exist.fluent.NamedResource.MetadataFacet
      extended by org.exist.fluent.Document.MetadataFacet
Enclosing class:
Document

public static class Document.MetadataFacet
extends NamedResource.MetadataFacet

The metadata facet for this document. Allows access to and manipulation of various aspects of the document's metadata, including its permissions and various timestamps. NOTE: The interface is fairly bare-bones right now, until I figure out the use cases and flesh it out a bit.


Method Summary
 Date creationDate()
          Return the time at which this resource was originally created.
 Date lastModificationDate()
          Return the time at which this document was last modified.
 String mimeType()
          Return the recorded MIME type of this document.
 void setMimeType(String mimeType)
          Set the MIME type of this document.
 
Methods inherited from class org.exist.fluent.NamedResource.MetadataFacet
changePermissions, group, group, hasPermission, owner, owner, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

creationDate

public Date creationDate()
Description copied from class: NamedResource.MetadataFacet
Return the time at which this resource was originally created.

Specified by:
creationDate in class NamedResource.MetadataFacet
Returns:
the creation date of this resource

lastModificationDate

public Date lastModificationDate()
Return the time at which this document was last modified.

Returns:
the date of the last modification

mimeType

public String mimeType()
Return the recorded MIME type of this document.

Returns:
this document's MIME type

setMimeType

public void setMimeType(String mimeType)
Set the MIME type of this document.

Parameters:
mimeType - this document's desired MIME type


Copyright (C) All rights reserved.