Class AbstractMetadata
java.lang.Object
fr.ens.biologie.genomique.eoulsan.design.AbstractMetadata
- All Implemented Interfaces:
Metadata,Serializable
- Direct Known Subclasses:
DesignMetadataImpl,ExperimentSampleMetadataImpl
This abstract class defines methods for metadata.
- Since:
- 2.0
- Author:
- Laurent Jourdren
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTest if the key is in md.entrySet()Get an entry set of the metadata.booleanGet 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.inthashCode()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.toString()
-
Constructor Details
-
AbstractMetadata
public AbstractMetadata()
-
-
Method Details
-
get
Description copied from interface:MetadataGet the value according the key. -
getTrimmed
Description copied from interface:MetadataGet the trimmed value according the key.- Specified by:
getTrimmedin interfaceMetadata- Parameters:
key- the key- Returns:
- the value
-
set
Description copied from interface:MetadataSet the value according the key. -
set
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
Description copied from interface:MetadataTest if the key is in md. -
getAsList
Description copied from interface:MetadataGet the value according the key as a list. -
getAsBoolean
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
Description copied from interface:MetadataGet the keys of the metadata -
entrySet
Description copied from interface:MetadataGet an entry set of the metadata. -
remove
Description copied from interface:MetadataRemove the value according the key. -
toString
-
hashCode
public int hashCode() -
equals
-