org.silverpeas.notification.jsondiff
Class Operation

java.lang.Object
  extended by org.silverpeas.notification.jsondiff.Operation
All Implemented Interfaces:
Serializable

public class Operation
extends Object
implements Serializable

An operation on a property.

Author:
ehugonnet
See Also:
Serialized Form

Constructor Summary
Operation()
           
Operation(Op type, String path, String value)
           
 
Method Summary
static Operation determineOperation(String path, String oldValue, String newValue)
           
 boolean equals(Object obj)
           
 Op getOp()
           
 String getPath()
           
 String getValue()
           
 int hashCode()
           
 void setOp(Op type)
           
 void setPath(String path)
           
 void setValue(String value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Operation

public Operation()

Operation

public Operation(Op type,
                 String path,
                 String value)
Method Detail

setOp

public void setOp(Op type)

setPath

public void setPath(String path)

setValue

public void setValue(String value)

getOp

public Op getOp()

getPath

public String getPath()

getValue

public String getValue()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

determineOperation

public static Operation determineOperation(String path,
                                           String oldValue,
                                           String newValue)


Copyright © 2016 Silverpeas. All Rights Reserved.