public class MetadataProvider extends java.lang.Object implements IMetadataProvider, java.io.Serializable
Constructor and Description |
---|
MetadataProvider() |
Modifier and Type | Method and Description |
---|---|
void |
addOrReplaceMetadata(java.lang.String name,
java.lang.String value)
Add or replace a metadata field.
|
void |
clearMetadata()
Clear existing metadata.
|
static void |
copy(IMetadataProvider source,
MetadataProvider target)
Copy contents of one metadata provider to another.
|
static void |
copy(java.util.Map<java.lang.String,java.lang.String> source,
MetadataProvider target)
Copy values from a map into a
MetadataProvider . |
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Get a map of all metadata.
|
java.lang.String |
getMetadata(java.lang.String name)
Get value of metadata field.
|
java.lang.String |
removeMetadata(java.lang.String name)
Remove a metadata field.
|
void |
setMetadata(java.util.Map<java.lang.String,java.lang.String> entries) |
public void addOrReplaceMetadata(java.lang.String name, java.lang.String value) throws SiteWhereException
IMetadataProvider
addOrReplaceMetadata
in interface IMetadataProvider
SiteWhereException
public java.lang.String removeMetadata(java.lang.String name)
IMetadataProvider
removeMetadata
in interface IMetadataProvider
public java.lang.String getMetadata(java.lang.String name)
IMetadataProvider
getMetadata
in interface IMetadataProvider
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
IMetadataProvider
getMetadata
in interface IMetadataProvider
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> entries)
public void clearMetadata()
IMetadataProvider
clearMetadata
in interface IMetadataProvider
public static void copy(IMetadataProvider source, MetadataProvider target) throws SiteWhereException
source
- target
- SiteWhereException
public static void copy(java.util.Map<java.lang.String,java.lang.String> source, MetadataProvider target) throws SiteWhereException
MetadataProvider
.source
- target
- SiteWhereException