Interface Metadata
- All Known Subinterfaces:
DesignMetadata,ExperimentMetadata,ExperimentSampleMetadata,SampleMetadata
- All Known Implementing Classes:
AbstractMetadata,DesignMetadataImpl,ExperimentSampleMetadataImpl,UnmodifiableExperimentMetadata,UnmodifiableExperimentSampleMetadata
public interface Metadata
This interface defines common methods for metadata.
- Since:
- 2.0
- Author:
- Laurent Jourdren
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTest if the key is in md.entrySet()Get an entry set of the metadata.Get the value according the key.booleangetAsBoolean(String key) Get the value according the key as a boolean.Get the value according the key as a list.getTrimmed(String key) Get the trimmed value according the key.booleanisEmpty()Test if there is no metadata.keySet()Get the keys of the metadatavoidRemove the value according the key.voidSet the value according the key.voidSet the value as a list according the key.intsize()Get the number of metadata.
-
Method Details
-
get
Get the value according the key.- Parameters:
key- the key- Returns:
- the value
-
getTrimmed
Get the trimmed value according the key.- Parameters:
key- the key- Returns:
- the value
-
set
Set the value according the key.- Parameters:
key- the keyvalue- the value
-
set
Set the value as a list according the key.- Parameters:
key- the keyvalue- the value as a list
-
size
int size()Get the number of metadata.- Returns:
- the number of metadata
-
isEmpty
boolean isEmpty()Test if there is no metadata.- Returns:
- true if there is no metadata
-
contains
Test if the key is in md.- Parameters:
key- the key- Returns:
- true if the key is in md
-
getAsList
Get the value according the key as a list.- Parameters:
key- the key- Returns:
- the value as a list
-
getAsBoolean
Get the value according the key as a boolean.- Parameters:
key- the key- Returns:
- the value as a boolean
-
keySet
Get the keys of the metadata- Returns:
- a set with the keys of the metadata
-
entrySet
Get an entry set of the metadata.- Returns:
- a set of entries
-
remove
Remove the value according the key.- Parameters:
key- the key
-