Class CopyOperation

  • All Implemented Interfaces:
    com.fasterxml.jackson.databind.JsonSerializable, com.github.fge.jsonpatch.operation.JsonPatchOperation, CidsBeanPatchOperation

    public class CopyOperation
    extends com.github.fge.jsonpatch.operation.CopyOperation
    implements CidsBeanPatchOperation
    DOCUMENT ME!
    Version:
    $Revision$, $Date$
    Author:
    Pascal Dihé
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.fasterxml.jackson.databind.JsonSerializable

        com.fasterxml.jackson.databind.JsonSerializable.Base
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static ResourceBundle RESOURCE_BUNDLE  
      protected static CidsBeanPatchUtils UTILS  
      • Fields inherited from class com.github.fge.jsonpatch.operation.CopyOperation

        OPERATION_NAME
      • Fields inherited from class com.github.fge.jsonpatch.operation.DualPathOperation

        BUNDLE, from, op, path
    • Constructor Summary

      Constructors 
      Constructor Description
      CopyOperation​(com.github.fge.jackson.jsonpointer.JsonPointer from, com.github.fge.jackson.jsonpointer.JsonPointer path)
      Creates a new ReplaceOperation object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      de.cismet.cids.dynamics.CidsBean apply​(de.cismet.cids.dynamics.CidsBean cidsBean)
      Apply this operation to a JSON value.
      • Methods inherited from class com.github.fge.jsonpatch.operation.CopyOperation

        apply
      • Methods inherited from class com.github.fge.jsonpatch.operation.DualPathOperation

        serialize, serializeWithType, toString
      • Methods inherited from interface com.github.fge.jsonpatch.operation.JsonPatchOperation

        apply, toString
      • Methods inherited from interface com.fasterxml.jackson.databind.JsonSerializable

        serialize, serializeWithType
    • Constructor Detail

      • CopyOperation

        public CopyOperation​(com.github.fge.jackson.jsonpointer.JsonPointer from,
                             com.github.fge.jackson.jsonpointer.JsonPointer path)
        Creates a new ReplaceOperation object.
        Parameters:
        from - value DOCUMENT ME!
        path - DOCUMENT ME!
    • Method Detail

      • apply

        public de.cismet.cids.dynamics.CidsBean apply​(de.cismet.cids.dynamics.CidsBean cidsBean)
                                               throws com.github.fge.jsonpatch.JsonPatchException
        Description copied from interface: CidsBeanPatchOperation
        Apply this operation to a JSON value.
        Specified by:
        apply in interface CidsBeanPatchOperation
        Parameters:
        cidsBean - the value to patch
        Returns:
        the patched value
        Throws:
        com.github.fge.jsonpatch.JsonPatchException - com.github.fge.jsonpatch.JsonPatchException operation failed to apply to this value