Class JSPatchObjectImpl

    • Constructor Detail

      • JSPatchObjectImpl

        public JSPatchObjectImpl​(String type,
                                 com.fasterxml.jackson.databind.JsonNode node)
    • Method Detail

      • setNull

        public void setNull​(String... names)
        Description copied from interface: JSPatchObject
        Sets the named property to have a value of null. This is only used for patch objects to signify the removal of a property by an override.
        Specified by:
        setNull in interface JSPatchObject
        Parameters:
        names - of properties - generates a path
      • setOverrideProperty

        public JSProperty<?> setOverrideProperty​(JSValue val,
                                                 String... names)
        Description copied from interface: JSPatchObject
        Set the value for a property
        Specified by:
        setOverrideProperty in interface JSPatchObject
        Parameters:
        val - the property value - non null
        names - the property names - non null - forms path
        Returns:
        the property
      • setOverrideProperty

        public JSProperty<?> setOverrideProperty​(String val,
                                                 String... names)
        Description copied from interface: JSPatchObject
        Set the value for a string type property
        Specified by:
        setOverrideProperty in interface JSPatchObject
        Parameters:
        val - the property value - non null
        names - the property names - non null - forms path
        Returns:
        the property
      • setOverrideProperty

        public JSProperty<?> setOverrideProperty​(JSUnsignedInteger val,
                                                 String... names)
        Description copied from interface: JSPatchObject
        Set the value for an UnsignedInteger type property
        Specified by:
        setOverrideProperty in interface JSPatchObject
        Parameters:
        val - the property value - non null
        names - the property names - non null - forms path
        Returns:
        the property
      • setOverrideProperty

        public JSProperty<?> setOverrideProperty​(boolean val,
                                                 String... names)
        Description copied from interface: JSPatchObject
        Set the value for an UnsignedInteger type property
        Specified by:
        setOverrideProperty in interface JSPatchObject
        Parameters:
        val - the property value - non null
        names - the property names - non null - forms path
        Returns:
        the property
      • newOverrideProperty

        public <T extends JSValueJSProperty<T> newOverrideProperty​(com.fasterxml.jackson.core.type.TypeReference<T> typeRef,
                                                                     String type,
                                                                     String... names)
        Description copied from interface: JSPatchObject
        Create a property of the given type. NOT added or set
        Specified by:
        newOverrideProperty in interface JSPatchObject
        Parameters:
        typeRef - the property typeref
        type - the property type
        names - the property names - non null
        Returns:
        the property