Package net.solarnetwork.domain.datum
Class GeneralSourceMetadata
java.lang.Object
net.solarnetwork.domain.datum.GeneralSourceMetadata
- Direct Known Subclasses:
GeneralLocationSourceMetadata,GeneralNodeSourceMetadata
Metadata about a source.
- Version:
- 2.0
- Author:
- matt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the created date.getMeta()Get the metadata.Alternative forgetMeta().Get the source ID.Get the updated date.voidsetCreated(Instant created) Set the created date.voidShortcut forGeneralDatumMetadata.setInfo(Map).voidsetMeta(GeneralDatumMetadata meta) Set the metadata.voidShortcut forGeneralDatumMetadata.setPropertyInfo(Map).voidsetSourceId(String sourceId) Set the source ID.voidShortcut forDatumSupport.setTags(Set).voidsetUpdated(Instant updated) Set the updated date.
-
Constructor Details
-
GeneralSourceMetadata
public GeneralSourceMetadata()
-
-
Method Details
-
getSourceId
Get the source ID.- Returns:
- the source ID
-
setSourceId
Set the source ID.- Parameters:
sourceId- the source ID to set
-
getCreated
Get the created date.- Returns:
- the created date
-
setCreated
Set the created date.- Parameters:
created- the date to set
-
getUpdated
Get the updated date.- Returns:
- the updated date
-
setUpdated
Set the updated date.- Parameters:
updated- the date to set
-
getMetadata
Alternative forgetMeta(). This method exists so that we can configure@JsonUnwrappedon ourGeneralDatumMetadatabut still support setting it in a normal, wrapped fashion viasetMeta(GeneralDatumMetadata).- Returns:
- GeneralDatumMetadata
-
getMeta
Get the metadata.- Returns:
- the metadata
-
setMeta
Set the metadata.- Parameters:
meta- the metadata to set
-
setM
Shortcut forGeneralDatumMetadata.setInfo(Map).- Parameters:
map- the Map to set
-
setPm
Shortcut forGeneralDatumMetadata.setPropertyInfo(Map).- Parameters:
map- the map to set
-
setT
Shortcut forDatumSupport.setTags(Set).- Parameters:
set- the set to use
-