public class PatchRequest
extends java.lang.Object
Constructor and Description |
---|
PatchRequest() |
PatchRequest(PatchCommandType type,
java.lang.String name,
RavenJToken value) |
Modifier and Type | Method and Description |
---|---|
static PatchRequest |
fromJson(RavenJObject patchRequestJson)
Create an instance from a json object
|
java.lang.Boolean |
getAllPositions() |
java.lang.String |
getName() |
PatchRequest[] |
getNested()
Gets the nested operations to perform.
|
java.lang.Integer |
getPosition() |
RavenJToken |
getPrevVal()
Gets or sets the previous value, which is compared against the current value to verify a
change isn't overwriting new values.
|
PatchCommandType |
getType() |
RavenJToken |
getValue() |
void |
setAllPositions(java.lang.Boolean allPositions) |
void |
setName(java.lang.String name) |
void |
setNested(PatchRequest[] nested) |
void |
setPosition(java.lang.Integer position) |
void |
setPrevVal(RavenJToken prevVal) |
void |
setType(PatchCommandType type) |
void |
setValue(RavenJToken value) |
RavenJObject |
toJson()
Translates this instance to json
|
public PatchRequest()
public PatchRequest(PatchCommandType type, java.lang.String name, RavenJToken value)
public java.lang.Boolean getAllPositions()
public java.lang.String getName()
public PatchRequest[] getNested()
public java.lang.Integer getPosition()
public RavenJToken getPrevVal()
public PatchCommandType getType()
public RavenJToken getValue()
public void setAllPositions(java.lang.Boolean allPositions)
public void setName(java.lang.String name)
public void setNested(PatchRequest[] nested)
public void setPosition(java.lang.Integer position)
public void setPrevVal(RavenJToken prevVal)
public void setType(PatchCommandType type)
public void setValue(RavenJToken value)
public RavenJObject toJson()
public static PatchRequest fromJson(RavenJObject patchRequestJson)
patchRequestJson
- Copyright © 2014. All Rights Reserved.