Class MetadataTemplateField
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.model.sample.MetadataTemplateField
-
- Direct Known Subclasses:
StaticMetadataTemplateField
@Entity public class MetadataTemplateField extends java.lang.Object
Describes an individual field in aMetadataTemplate
.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DYNAMIC_FIELD_PREFIX
-
Constructor Summary
Constructors Constructor Description MetadataTemplateField()
MetadataTemplateField(java.lang.String label, java.lang.String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getFieldKey()
Key for displaying the field in the UIjava.lang.Long
getId()
java.lang.String
getLabel()
java.lang.String
getType()
int
hashCode()
void
setLabel(java.lang.String label)
void
setType(java.lang.String type)
java.lang.String
toString()
-
-
-
Method Detail
-
getId
public java.lang.Long getId()
-
getLabel
public java.lang.String getLabel()
-
getType
public java.lang.String getType()
-
setLabel
public void setLabel(java.lang.String label)
-
setType
public void setType(java.lang.String type)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
getFieldKey
public java.lang.String getFieldKey()
Key for displaying the field in the UI- Returns:
- the key of the field.
-
-