public class DesignDocument extends Object
| Modifier and Type | Method and Description |
|---|---|
static DesignDocument |
create(String body,
String name)
Create a new design document
|
String |
getBody() |
String |
getId()
Get the name of the design document
|
ArrayList<View> |
getViews()
Get a list of views contained within this design document
|
public static DesignDocument create(String body, String name) throws DesignParseException
body - The JSON encoded source of this design documentname - The name of the design document. This should be the simple name, e.g. beer. If the
body contains a _id property, then that property will override
nameDesignParseException - if a design parse error occurspublic String getBody()
public String getId()
_design/$nameCopyright © 2017. All rights reserved.