org.silverpeas.notification.jsondiff
Class JsonPatch

java.lang.Object
  extended by org.silverpeas.notification.jsondiff.JsonPatch
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ComponentJsonPatch

public class JsonPatch
extends Object
implements Serializable

A list of operations.

Author:
ehugonnet
See Also:
Serialized Form

Constructor Summary
JsonPatch()
           
 
Method Summary
 void addOperation(Operation operation)
           
 void fromJson(String json)
           
 Operation getOperationByPath(String path)
           
 List<Operation> getOperations()
           
 void setOperations(List<Operation> operations)
           
 String toJson()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonPatch

public JsonPatch()
Method Detail

getOperations

public List<Operation> getOperations()

getOperationByPath

public Operation getOperationByPath(String path)

addOperation

public void addOperation(Operation operation)

setOperations

public void setOperations(List<Operation> operations)

toJson

public String toJson()
              throws IOException
Throws:
IOException

fromJson

public void fromJson(String json)
              throws IOException
Throws:
IOException


Copyright © 2016 Silverpeas. All Rights Reserved.