Package datahub.client.patch.common
Class CustomPropertiesPatchBuilder<T extends AbstractMultiFieldPatchBuilder<T>>
- java.lang.Object
-
- datahub.client.patch.common.CustomPropertiesPatchBuilder<T>
-
- All Implemented Interfaces:
IntermediatePatchBuilder<T>
public class CustomPropertiesPatchBuilder<T extends AbstractMultiFieldPatchBuilder<T>> extends java.lang.Object implements IntermediatePatchBuilder<T>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCUSTOM_PROPERTIES_BASE_PATH
-
Constructor Summary
Constructors Constructor Description CustomPropertiesPatchBuilder(T parentBuilder)
-
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 fieldTgetParent()Convenience method to return parent patch builder in functional callstackjava.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
-
-
-
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:
-
getParent
public T getParent()
Description copied from interface:IntermediatePatchBuilderConvenience method to return parent patch builder in functional callstack- Specified by:
getParentin interfaceIntermediatePatchBuilder<T extends AbstractMultiFieldPatchBuilder<T>>
-
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:IntermediatePatchBuilderExposes 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:
getSubPathsin interfaceIntermediatePatchBuilder<T extends AbstractMultiFieldPatchBuilder<T>>
-
-