public class ProtocolData extends AnnotatedData implements FileAttachableData, RegisteredData, SubtypableData
Protocol
,
Developer documentation: Protocols, hardware and softwareModifier and Type | Field and Description |
---|---|
private Date |
entryDate |
private String |
externalId |
private FileData |
file |
static int |
MAX_EXTERNAL_ID_LENGTH
The maximum length of the external id that can be stored in the database.
|
private Set<AnnotationTypeData> |
parameters |
private ItemSubtypeData |
subtype |
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
Constructor and Description |
---|
ProtocolData() |
Modifier and Type | Method and Description |
---|---|
Date |
getEntryDate()
Get the date this item was added to the database.
|
String |
getExternalId()
Get the external id for the protocol.
|
FileData |
getFile()
Get the file that is attached to the item.
|
ItemSubtypeData |
getItemSubtype()
Get the subtype of the item.
|
Set<AnnotationTypeData> |
getParameters()
This set manages the parameters for this protcol.
|
void |
setEntryDate(Date entryDate) |
void |
setExternalId(String externalId) |
void |
setFile(FileData file)
Attach a file to the item.
|
void |
setItemSubtype(ItemSubtypeData subtype)
Set the subtype of the item.
|
(package private) void |
setParameters(Set<AnnotationTypeData> parameters) |
getAnnotations, getAnnotationSet, setAnnotations, setAnnotationSet
getDescription, getName, getRemovedBy, setDescription, setName, setRemovedBy
getItemKey, getProjectKey, setItemKey, setProjectKey
equals, getId, getVersion, hashCode, setId, setVersion, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getVersion
getOwner, setOwner
private FileData file
private Date entryDate
private ItemSubtypeData subtype
public static final int MAX_EXTERNAL_ID_LENGTH
setExternalId(String)
,
Constant Field Valuesprivate String externalId
private Set<AnnotationTypeData> parameters
public FileData getFile()
FileAttachableData
getFile
in interface FileAttachableData
FileData
object or null if no file is attachedpublic void setFile(FileData file)
FileAttachableData
setFile
in interface FileAttachableData
public Date getEntryDate()
RegisteredData
getEntryDate
in interface RegisteredData
public void setEntryDate(Date entryDate)
public ItemSubtypeData getItemSubtype()
SubtypableData
getItemSubtype
in interface SubtypableData
public void setItemSubtype(ItemSubtypeData subtype)
SubtypableData
setItemSubtype
in interface SubtypableData
public String getExternalId()
public void setExternalId(String externalId)
public Set<AnnotationTypeData> getParameters()
void setParameters(Set<AnnotationTypeData> parameters)