Package net.solarnetwork.domain.datum
Interface MutableDatumMetadataOperations
- All Superinterfaces:
DatumMetadataOperations,Differentiable<DatumMetadataOperations>
- All Known Implementing Classes:
GeneralDatumMetadata
Extension of
DatumSamplesOperations that adds mutate operations.- Since:
- 2.3
- Version:
- 1.0
- Author:
- matt
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanAdd a tag.voidclear()Remove all property values and tags.voidmerge(DatumMetadataOperations meta, boolean replace) Merge the values from another datum metadata instance into this one.voidputInfoValue(String key, Object value) Put a value into or remove a value from theDatumMetadataOperations.getInfo()map, creating the map if it doesn't exist.voidputInfoValue(String property, String key, Object value) Put a value into or remove a value from theDatumMetadataOperations.getPropertyInfo(String)map, creating the map if it doesn't exist.default booleanRemove one or more tags.voidSet the complete property info map for a given property key.voidSet the complete info metadata map.voidSet the tags.Methods inherited from interface net.solarnetwork.domain.datum.DatumMetadataOperations
differsFrom, getInfo, getInfo, getInfoBigDecimal, getInfoBigDecimal, getInfoBigInteger, getInfoBigInteger, getInfoDouble, getInfoDouble, getInfoFloat, getInfoFloat, getInfoInteger, getInfoInteger, getInfoKeys, getInfoLong, getInfoLong, getInfoNumber, getInfoNumber, getInfoShort, getInfoShort, getInfoString, getInfoString, getPropertyInfo, getPropertyInfoKeys, getTags, hasInfo, hasInfo, hasMetadataAtPath, hasPropertyInfo, hasTag, isEmpty, metadataAtPath, metadataAtPath
-
Method Details
-
clear
void clear()Remove all property values and tags. -
putInfoValue
Put a value into or remove a value from theDatumMetadataOperations.getInfo()map, creating the map if it doesn't exist.- Parameters:
key- the key to putvalue- the value to put, or null to remove the key
-
setInfo
Set the complete info metadata map.- Parameters:
info- the info to set, or null
-
putInfoValue
Put a value into or remove a value from theDatumMetadataOperations.getPropertyInfo(String)map, creating the map if it doesn't exist.- Parameters:
property- the property namekey- the key to putvalue- the value to put, or null to remove the key
-
setInfo
Set the complete property info map for a given property key.- Parameters:
key- the property keyinfo- the info metadata to set, or null
-
setTags
Set the tags.- Parameters:
tags- the tags to set
-
addTag
Add a tag.- Parameters:
tag- the tag value to add- Returns:
- true if the tag was not already present
-
removeTag
Remove one or more tags.- Parameters:
tags- the tags to remove- Returns:
- true if any of the given tags were removed
-
merge
Merge the values from another datum metadata instance into this one.- Parameters:
meta- the metadata to merge into this objectreplace- if true then replace values in this object with equivalent ones in the provided object, otherwise keep the values from this object
-