public class DesignDocument extends Object
Represents a design document to store and load.
Modifier | Constructor and Description |
---|---|
protected |
DesignDocument(String name,
List<View> views) |
Modifier and Type | Method and Description |
---|---|
static DesignDocument |
create(String name,
List<View> views)
Creates a new
DesignDocument . |
boolean |
equals(Object o) |
static DesignDocument |
from(String name,
JsonObject raw) |
int |
hashCode() |
String |
name() |
JsonObject |
toJsonObject() |
String |
toString() |
List<View> |
views() |
public static DesignDocument create(String name, List<View> views)
Creates a new DesignDocument
.
name
- the name of the design document.views
- all views it contains.DesignDocument
.public static DesignDocument from(String name, JsonObject raw)
public String name()
public JsonObject toJsonObject()
Copyright © 2014 Couchbase, Inc.