Class AbstractMetadata
- java.lang.Object
-
- fr.ens.biologie.genomique.eoulsan.design.AbstractMetadata
-
- All Implemented Interfaces:
Metadata
,Serializable
- Direct Known Subclasses:
DesignMetadataImpl
,ExperimentSampleMetadataImpl
public abstract class AbstractMetadata extends Object implements Metadata, Serializable
This abstract class defines methods for metadata.- Since:
- 2.0
- Author:
- Laurent Jourdren
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractMetadata()
-
Method Summary
All Methods Instance Methods Concrete 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.int
hashCode()
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.String
toString()
-
-
-
Method Detail
-
get
public String get(String key)
Description copied from interface:Metadata
Get the value according the key.
-
getTrimmed
public String getTrimmed(String key)
Description copied from interface:Metadata
Get the trimmed value according the key.- Specified by:
getTrimmed
in interfaceMetadata
- Parameters:
key
- the key- Returns:
- the value
-
set
public void set(String key, String value)
Description copied from interface:Metadata
Set the value according the key.
-
set
public void set(String key, List<String> value)
Description copied from interface:Metadata
Set the value as a list according the key.
-
size
public int size()
Description copied from interface:Metadata
Get the number of metadata.
-
isEmpty
public boolean isEmpty()
Description copied from interface:Metadata
Test if there is no metadata.
-
contains
public boolean contains(String key)
Description copied from interface:Metadata
Test if the key is in md.
-
getAsList
public List<String> getAsList(String key)
Description copied from interface:Metadata
Get the value according the key as a list.
-
getAsBoolean
public boolean getAsBoolean(String key)
Description copied from interface:Metadata
Get the value according the key as a boolean.- Specified by:
getAsBoolean
in interfaceMetadata
- Parameters:
key
- the key- Returns:
- the value as a boolean
-
keySet
public Set<String> keySet()
Description copied from interface:Metadata
Get the keys of the metadata
-
entrySet
public Set<Map.Entry<String,String>> entrySet()
Description copied from interface:Metadata
Get an entry set of the metadata.
-
remove
public void remove(String key)
Description copied from interface:Metadata
Remove the value according the key.
-
-