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 booleancontains(String key)Test if the key is in md.booleancontainsCondition()Test if the condition field exists.booleancontainsReference()Test if the reference field exists.booleancontainsRepTechGroup()Test if the RepTechGroup field exists.Set<Map.Entry<String,String>>entrySet()Get an entry set of the metadata.booleanequals(Object obj)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.StringgetCondition()Get the condition.StringgetReference()Get the reference.StringgetRepTechGroup()Get the RepTechGroup.StringgetTrimmed(String key)Get the trimmed value according the key.inthashCode()booleanisEmpty()Test if there is no metadata.booleanisReference()Get the reference.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.voidsetCondition(String newCondition)Set the condition.voidsetReference(boolean newReference)Set the reference.voidsetReference(String newReference)Set the reference.voidsetRepTechGroup(String newReptechGroup)Set the ReptechGroup.intsize()Get the number of metadata.
-
-
-
Constructor Detail
-
UnmodifiableExperimentSampleMetadata
public UnmodifiableExperimentSampleMetadata(ExperimentSampleMetadata md)
-
-
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.
-
getRepTechGroup
public String getRepTechGroup()
Description copied from interface:ExperimentSampleMetadataGet the RepTechGroup.- Specified by:
getRepTechGroupin interfaceExperimentSampleMetadata- Returns:
- the RepTechGroup
-
getReference
public String getReference()
Description copied from interface:ExperimentSampleMetadataGet the reference.- Specified by:
getReferencein interfaceExperimentSampleMetadata- Returns:
- the reference
-
isReference
public boolean isReference()
Description copied from interface:ExperimentSampleMetadataGet the reference.- Specified by:
isReferencein interfaceExperimentSampleMetadata- Returns:
- the reference
-
getCondition
public String getCondition()
Description copied from interface:ExperimentSampleMetadataGet the condition.- Specified by:
getConditionin interfaceExperimentSampleMetadata- Returns:
- the condition
-
setRepTechGroup
public void setRepTechGroup(String newReptechGroup)
Description copied from interface:ExperimentSampleMetadataSet the ReptechGroup.- Specified by:
setRepTechGroupin interfaceExperimentSampleMetadata- Parameters:
newReptechGroup- the new ReptechGroup
-
setReference
public void setReference(boolean newReference)
Description copied from interface:ExperimentSampleMetadataSet the reference.- Specified by:
setReferencein interfaceExperimentSampleMetadata- Parameters:
newReference- the new reference
-
setReference
public void setReference(String newReference)
Description copied from interface:ExperimentSampleMetadataSet the reference.- Specified by:
setReferencein interfaceExperimentSampleMetadata- Parameters:
newReference- the new reference
-
setCondition
public void setCondition(String newCondition)
Description copied from interface:ExperimentSampleMetadataSet the condition.- Specified by:
setConditionin interfaceExperimentSampleMetadata- Parameters:
newCondition- the new condition
-
containsRepTechGroup
public boolean containsRepTechGroup()
Description copied from interface:ExperimentSampleMetadataTest if the RepTechGroup field exists.- Specified by:
containsRepTechGroupin interfaceExperimentSampleMetadata- Returns:
- true if the RepTechGroup field exists
-
containsReference
public boolean containsReference()
Description copied from interface:ExperimentSampleMetadataTest if the reference field exists.- Specified by:
containsReferencein interfaceExperimentSampleMetadata- Returns:
- true if the reference field exists
-
containsCondition
public boolean containsCondition()
Description copied from interface:ExperimentSampleMetadataTest if the condition field exists.- Specified by:
containsConditionin interfaceExperimentSampleMetadata- Returns:
- true if the condition field exists
-
-