Class StaticMetadataTemplateField
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.model.sample.MetadataTemplateField
-
- ca.corefacility.bioinformatics.irida.model.sample.StaticMetadataTemplateField
-
@Entity public class StaticMetadataTemplateField extends MetadataTemplateField
AMetadataTemplateField
with a special key "irida-static-*" to specify that it is statically added to aSample
and not part of the sample metadata. TheseMetadataTemplateField
s can be used to add to aMetadataTemplate
but should not be part of a Sample metadata.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
STATIC_FIELD_PREFIX
-
Fields inherited from class ca.corefacility.bioinformatics.irida.model.sample.MetadataTemplateField
DYNAMIC_FIELD_PREFIX
-
-
Constructor Summary
Constructors Constructor Description StaticMetadataTemplateField()
StaticMetadataTemplateField(java.lang.String label, java.lang.String type, java.lang.String staticId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getFieldKey()
Key for displaying the field in the UIjava.lang.String
getStaticId()
int
hashCode()
-
-
-
Method Detail
-
getFieldKey
public java.lang.String getFieldKey()
Description copied from class:MetadataTemplateField
Key for displaying the field in the UI- Overrides:
getFieldKey
in classMetadataTemplateField
- Returns:
- the key of the field.
-
getStaticId
public java.lang.String getStaticId()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classMetadataTemplateField
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classMetadataTemplateField
-
-