Class CustomPropertiesPatchBuilder<T extends AbstractMultiFieldPatchBuilder<T>>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CustomPropertiesPatchBuilder<T> addProperty​(java.lang.String key, java.lang.String value)
      Add a property to a custom properties field
      T getParent()
      Convenience method to return parent patch builder in functional callstack
      java.util.List<org.apache.commons.lang3.tuple.ImmutableTriple<java.lang.String,​java.lang.String,​com.fasterxml.jackson.databind.JsonNode>> getSubPaths()
      Exposes subpath values to parent patch builder in Op, Path, Value triples.
      CustomPropertiesPatchBuilder<T> removeProperty​(java.lang.String key)
      Remove a property from a custom properties field.
      CustomPropertiesPatchBuilder<T> setProperties​(java.util.Map<java.lang.String,​java.lang.String> properties)
      Fully replace the properties of the target aspect
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CUSTOM_PROPERTIES_BASE_PATH

        public static final java.lang.String CUSTOM_PROPERTIES_BASE_PATH
        See Also:
        Constant Field Values
    • Constructor Detail

      • CustomPropertiesPatchBuilder

        public CustomPropertiesPatchBuilder​(T parentBuilder)
    • Method Detail

      • addProperty

        public CustomPropertiesPatchBuilder<T> addProperty​(java.lang.String key,
                                                           java.lang.String value)
        Add a property to a custom properties field
        Parameters:
        key -
        value -
        Returns:
      • removeProperty

        public CustomPropertiesPatchBuilder<T> removeProperty​(java.lang.String key)
        Remove a property from a custom properties field. If the property doesn't exist, this is a no-op.
        Parameters:
        key -
        Returns:
      • setProperties

        public CustomPropertiesPatchBuilder<T> setProperties​(java.util.Map<java.lang.String,​java.lang.String> properties)
        Fully replace the properties of the target aspect
        Parameters:
        properties -
        Returns:
      • getSubPaths

        public java.util.List<org.apache.commons.lang3.tuple.ImmutableTriple<java.lang.String,​java.lang.String,​com.fasterxml.jackson.databind.JsonNode>> getSubPaths()
        Description copied from interface: IntermediatePatchBuilder
        Exposes subpath values to parent patch builder in Op, Path, Value triples. Should usually only be called by the parent patch builder class when constructing the path values.
        Specified by:
        getSubPaths in interface IntermediatePatchBuilder<T extends AbstractMultiFieldPatchBuilder<T>>