Class UnmodifiableExperimentSampleMetadata
- java.lang.Object
-
- fr.ens.biologie.genomique.eoulsan.design.UnmodifiableExperimentSampleMetadata
-
- All Implemented Interfaces:
ExperimentSampleMetadata
,Metadata
,Serializable
public class UnmodifiableExperimentSampleMetadata extends Object implements ExperimentSampleMetadata, Serializable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface fr.ens.biologie.genomique.eoulsan.design.ExperimentSampleMetadata
CONDITION_KEY, REFERENCE_KEY, REP_TECH_GROUP_KEY
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableExperimentSampleMetadata(ExperimentSampleMetadata md)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(String key)
Test if the key is in md.boolean
containsCondition()
Test if the condition field exists.boolean
containsReference()
Test if the reference field exists.boolean
containsRepTechGroup()
Test if the RepTechGroup field exists.Set<Map.Entry<String,String>>
entrySet()
Get an entry set of the metadata.boolean
equals(Object obj)
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
getCondition()
Get the condition.String
getReference()
Get the reference.String
getRepTechGroup()
Get the RepTechGroup.String
getTrimmed(String key)
Get the trimmed value according the key.int
hashCode()
boolean
isEmpty()
Test if there is no metadata.boolean
isReference()
Get the reference.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.void
setCondition(String newCondition)
Set the condition.void
setReference(boolean newReference)
Set the reference.void
setReference(String newReference)
Set the reference.void
setRepTechGroup(String newReptechGroup)
Set the ReptechGroup.int
size()
Get the number of metadata.
-
-
-
Constructor Detail
-
UnmodifiableExperimentSampleMetadata
public UnmodifiableExperimentSampleMetadata(ExperimentSampleMetadata md)
-
-
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.
-
getRepTechGroup
public String getRepTechGroup()
Description copied from interface:ExperimentSampleMetadata
Get the RepTechGroup.- Specified by:
getRepTechGroup
in interfaceExperimentSampleMetadata
- Returns:
- the RepTechGroup
-
getReference
public String getReference()
Description copied from interface:ExperimentSampleMetadata
Get the reference.- Specified by:
getReference
in interfaceExperimentSampleMetadata
- Returns:
- the reference
-
isReference
public boolean isReference()
Description copied from interface:ExperimentSampleMetadata
Get the reference.- Specified by:
isReference
in interfaceExperimentSampleMetadata
- Returns:
- the reference
-
getCondition
public String getCondition()
Description copied from interface:ExperimentSampleMetadata
Get the condition.- Specified by:
getCondition
in interfaceExperimentSampleMetadata
- Returns:
- the condition
-
setRepTechGroup
public void setRepTechGroup(String newReptechGroup)
Description copied from interface:ExperimentSampleMetadata
Set the ReptechGroup.- Specified by:
setRepTechGroup
in interfaceExperimentSampleMetadata
- Parameters:
newReptechGroup
- the new ReptechGroup
-
setReference
public void setReference(boolean newReference)
Description copied from interface:ExperimentSampleMetadata
Set the reference.- Specified by:
setReference
in interfaceExperimentSampleMetadata
- Parameters:
newReference
- the new reference
-
setReference
public void setReference(String newReference)
Description copied from interface:ExperimentSampleMetadata
Set the reference.- Specified by:
setReference
in interfaceExperimentSampleMetadata
- Parameters:
newReference
- the new reference
-
setCondition
public void setCondition(String newCondition)
Description copied from interface:ExperimentSampleMetadata
Set the condition.- Specified by:
setCondition
in interfaceExperimentSampleMetadata
- Parameters:
newCondition
- the new condition
-
containsRepTechGroup
public boolean containsRepTechGroup()
Description copied from interface:ExperimentSampleMetadata
Test if the RepTechGroup field exists.- Specified by:
containsRepTechGroup
in interfaceExperimentSampleMetadata
- Returns:
- true if the RepTechGroup field exists
-
containsReference
public boolean containsReference()
Description copied from interface:ExperimentSampleMetadata
Test if the reference field exists.- Specified by:
containsReference
in interfaceExperimentSampleMetadata
- Returns:
- true if the reference field exists
-
containsCondition
public boolean containsCondition()
Description copied from interface:ExperimentSampleMetadata
Test if the condition field exists.- Specified by:
containsCondition
in interfaceExperimentSampleMetadata
- Returns:
- true if the condition field exists
-
-