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 booleancontains(String key)Test if the key is in md.Set<Map.Entry<String,String>>entrySet()Get an entry set of the metadata.booleanequals(Object o)Stringget(String key)Get the value according the key.booleangetAsBoolean(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.StringgetTrimmed(String key)Get the trimmed value according the key.inthashCode()booleanisEmpty()Test if there is no metadata.Set<String>keySet()Get the keys of the metadatavoidremove(String key)Remove the value according the key.voidset(String key, String value)Set the value according the key.voidset(String key, List<String> value)Set the value as a list according the key.intsize()Get the number of metadata.StringtoString()
-
-
-
Method Detail
-
get
public String get(String key)
Description copied from interface:MetadataGet the value according the key.
-
getTrimmed
public String getTrimmed(String key)
Description copied from interface:MetadataGet the trimmed value according the key.- Specified by:
getTrimmedin interfaceMetadata- Parameters:
key- the key- Returns:
- the value
-
set
public void set(String key, String value)
Description copied from interface:MetadataSet the value according the key.
-
set
public void set(String key, List<String> value)
Description copied from interface:MetadataSet the value as a list according the key.
-
size
public int size()
Description copied from interface:MetadataGet the number of metadata.
-
isEmpty
public boolean isEmpty()
Description copied from interface:MetadataTest if there is no metadata.
-
contains
public boolean contains(String key)
Description copied from interface:MetadataTest if the key is in md.
-
getAsList
public List<String> getAsList(String key)
Description copied from interface:MetadataGet the value according the key as a list.
-
getAsBoolean
public boolean getAsBoolean(String key)
Description copied from interface:MetadataGet the value according the key as a boolean.- Specified by:
getAsBooleanin interfaceMetadata- Parameters:
key- the key- Returns:
- the value as a boolean
-
keySet
public Set<String> keySet()
Description copied from interface:MetadataGet the keys of the metadata
-
entrySet
public Set<Map.Entry<String,String>> entrySet()
Description copied from interface:MetadataGet an entry set of the metadata.
-
remove
public void remove(String key)
Description copied from interface:MetadataRemove the value according the key.
-
-