public interface ConfigDiff extends DataSource
It had two following methods that return Jackson's instances till v0.9, but they are removed so that Jackson on the core side can be hidden from plugins.
Iterable<Map.Entry<String, JsonNode>> getAttributes()
ObjectNode getObjectNode()
Modifier and Type | Method and Description |
---|---|
ConfigDiff |
deepCopy()
Creates a deep copy of itself.
|
ConfigDiff |
getNested(String attrName)
Returns a nested value under
attrName . |
ConfigDiff |
getNestedOrGetEmpty(String attrName)
Returns a nested value under
attrName . |
ConfigDiff |
getNestedOrSetEmpty(String attrName)
Returns a nested value under
attrName . |
ConfigDiff |
merge(DataSource other)
Merges another
ConfigDiff into itself. |
ConfigDiff |
remove(String attrName)
Removes the attribute named
attrName . |
ConfigDiff |
set(String attrName,
Object v)
Sets a value for
attrName . |
ConfigDiff |
setAll(DataSource other)
Sets all attributes in
other into itself. |
ConfigDiff |
setNested(String attrName,
DataSource v)
Sets a nested value for
attrName . |
ConfigDiff getNested(String attrName)
attrName
.getNested
in interface DataSource
attrName
- name of the nested attribute to look forattrName
ConfigDiff getNestedOrSetEmpty(String attrName)
attrName
. Sets an empty object node "{}"
there if it is empty.getNestedOrSetEmpty
in interface DataSource
attrName
- name of the nested attribute to look forattrName
ConfigDiff getNestedOrGetEmpty(String attrName)
attrName
. Returns an empty object node "{}"
there if it is empty.getNestedOrGetEmpty
in interface DataSource
attrName
- name of the nested attribute to look forattrName
ConfigDiff set(String attrName, Object v)
attrName
.set
in interface DataSource
attrName
- name of the attribute to set the value atv
- the value Object
to setConfigDiff setNested(String attrName, DataSource v)
attrName
.setNested
in interface DataSource
attrName
- name of the attribute to set the nested value atv
- the nested value to setConfigDiff setAll(DataSource other)
other
into itself.setAll
in interface DataSource
other
- the other ConfigDiff
to setConfigDiff remove(String attrName)
attrName
.remove
in interface DataSource
attrName
- name of the attribute to removeConfigDiff deepCopy()
deepCopy
in interface DataSource
ConfigDiff
instance that is deep-copied from itselfConfigDiff merge(DataSource other)
ConfigDiff
into itself.merge
in interface DataSource
other
- the other ConfigDiff
to mergeConfigDiff
is merged