Interface DocPatch
-
- All Known Implementing Classes:
JsonPatch,JsonPathPatch,MergePatch,SimplePathPatch
public interface DocPatch extends Document<Object>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description DocNodeapply(DocNode targetDocument)StringgetMediaType()static DocPatchparse(UnparsedDocument<?> unparsedDoc)static DocPatchparse(String contentType, String content)static DocPatchparseTyped(DocNode docNode)-
Methods inherited from interface com.floragunn.codova.documents.Document
meta, toBasicObject, toBytes, toDeepBasicObject, toDocNode, toJsonString, toPrettyJsonString, toSmile, toString, toYamlString
-
-
-
-
Method Detail
-
apply
DocNode apply(DocNode targetDocument) throws DocUpdateException
- Throws:
DocUpdateException
-
getMediaType
String getMediaType()
-
parse
static DocPatch parse(String contentType, String content) throws ConfigValidationException
- Throws:
ConfigValidationException
-
parse
static DocPatch parse(UnparsedDocument<?> unparsedDoc) throws ConfigValidationException
- Throws:
ConfigValidationException
-
parseTyped
static DocPatch parseTyped(DocNode docNode) throws ConfigValidationException
- Throws:
ConfigValidationException
-
-