public class Document
extends java.lang.Object
id, revision properties, and attachments.| Constructor and Description |
|---|
Document() |
Document(Document other)
Copy contructor that does a deep copy
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttachment(java.lang.String name,
Attachment attachment)
Adds an in-line document attachment.
|
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.String,Attachment> |
getAttachments() |
java.lang.String |
getId() |
java.lang.String |
getRevision() |
int |
hashCode() |
void |
setAttachments(java.util.Map<java.lang.String,Attachment> attachments) |
void |
setId(java.lang.String id) |
void |
setRevision(java.lang.String revision) |
public Document()
public Document(Document other)
other - The document to copy.public java.lang.String getId()
public java.lang.String getRevision()
public java.util.Map<java.lang.String,Attachment> getAttachments()
public void setId(java.lang.String id)
public void setRevision(java.lang.String revision)
public void setAttachments(java.util.Map<java.lang.String,Attachment> attachments)
public void addAttachment(java.lang.String name,
Attachment attachment)
name - The attachment file nameattachment - The attachment instancepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2011-2017. All Rights Reserved.