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:
  • Constructor Details

    • AbstractMetadata

      public AbstractMetadata()
  • Method Details

    • get

      public String get(String key)
      Description copied from interface: Metadata
      Get the value according the key.
      Specified by:
      get in interface Metadata
      Parameters:
      key - the key
      Returns:
      the value
    • getTrimmed

      public String getTrimmed(String key)
      Description copied from interface: Metadata
      Get the trimmed value according the key.
      Specified by:
      getTrimmed in interface Metadata
      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.
      Specified by:
      set in interface Metadata
      Parameters:
      key - the key
      value - the value
    • set

      public void set(String key, List<String> value)
      Description copied from interface: Metadata
      Set the value as a list according the key.
      Specified by:
      set in interface Metadata
      Parameters:
      key - the key
      value - the value as a list
    • size

      public int size()
      Description copied from interface: Metadata
      Get the number of metadata.
      Specified by:
      size in interface Metadata
      Returns:
      the number of metadata
    • isEmpty

      public boolean isEmpty()
      Description copied from interface: Metadata
      Test if there is no metadata.
      Specified by:
      isEmpty in interface Metadata
      Returns:
      true if there is no metadata
    • contains

      public boolean contains(String key)
      Description copied from interface: Metadata
      Test if the key is in md.
      Specified by:
      contains in interface Metadata
      Parameters:
      key - the key
      Returns:
      true 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.
      Specified by:
      getAsList in interface Metadata
      Parameters:
      key - the key
      Returns:
      the value 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 interface Metadata
      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
      Specified by:
      keySet in interface Metadata
      Returns:
      a set with 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.
      Specified by:
      entrySet in interface Metadata
      Returns:
      a set of entries
    • remove

      public void remove(String key)
      Description copied from interface: Metadata
      Remove the value according the key.
      Specified by:
      remove in interface Metadata
      Parameters:
      key - the key
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object