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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
contains(String key)
Test if the key is in md.Set<Map.Entry<String,String>>
entrySet()
Get an entry set of the metadata.boolean
equals(Object o)
String
get(String key)
Get the value according the key.boolean
getAsBoolean(String key)
Get the value according the key as a boolean.List<String>
getAsList(String key)
Get the value according the key as a list.String
getTrimmed(String key)
Get the trimmed value according the key.boolean
isEmpty()
Test if there is no metadata.Set<String>
keySet()
Get the keys of the metadatavoid
remove(String key)
Remove the value according the key.void
set(String key, String value)
Set the value according the key.void
set(String key, List<String> value)
Set the value as a list according the key.int
size()
Get the number of metadata.
-
-
-
Method Detail
-
get
String get(String key)
Get the value according the key.- Parameters:
key
- the key- Returns:
- the value
-
getTrimmed
String getTrimmed(String key)
Get the trimmed value according the key.- Parameters:
key
- the key- Returns:
- the value
-
set
void set(String key, String value)
Set the value according the key.- Parameters:
key
- the keyvalue
- the value
-
set
void set(String key, List<String> value)
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
boolean contains(String key)
Test if the key is in md.- Parameters:
key
- the key- Returns:
- true if the key is in md
-
getAsList
List<String> getAsList(String key)
Get the value according the key as a list.- Parameters:
key
- the key- Returns:
- the value as a list
-
getAsBoolean
boolean getAsBoolean(String key)
Get the value according the key as a boolean.- Parameters:
key
- the key- Returns:
- the value as a boolean
-
keySet
Set<String> keySet()
Get the keys of the metadata- Returns:
- a set with the keys of the metadata
-
entrySet
Set<Map.Entry<String,String>> entrySet()
Get an entry set of the metadata.- Returns:
- a set of entries
-
remove
void remove(String key)
Remove the value according the key.- Parameters:
key
- the key
-
-