public class ProtocolData extends AnnotatedData implements FileAttachableData, RegisteredData, SubtypableData
Protocol
,
Developer documentation: Protocols, hardware and softwareModifier and Type | Field and Description |
---|---|
private java.util.Date |
entryDate |
private java.lang.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 java.util.Set<AnnotationTypeData> |
parameters |
private ItemSubtypeData |
subtype |
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
Constructor and Description |
---|
ProtocolData() |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getEntryDate()
Get the date this item was added to the database.
|
java.lang.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.
|
java.util.Set<AnnotationTypeData> |
getParameters()
This set manages the parameters for this protcol.
|
void |
setEntryDate(java.util.Date entryDate) |
void |
setExternalId(java.lang.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(java.util.Set<AnnotationTypeData> parameters) |
getAnnotations, getAnnotationSet, setAnnotations, setAnnotationSet
getDescription, getName, isRemoved, setDescription, setName, setRemoved
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 java.util.Date entryDate
private ItemSubtypeData subtype
public static final int MAX_EXTERNAL_ID_LENGTH
setExternalId(String)
,
Constant Field Valuesprivate java.lang.String externalId
private java.util.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 java.util.Date getEntryDate()
RegisteredData
getEntryDate
in interface RegisteredData
public void setEntryDate(java.util.Date entryDate)
public ItemSubtypeData getItemSubtype()
SubtypableData
getItemSubtype
in interface SubtypableData
public void setItemSubtype(ItemSubtypeData subtype)
SubtypableData
setItemSubtype
in interface SubtypableData
public java.lang.String getExternalId()
public void setExternalId(java.lang.String externalId)
public java.util.Set<AnnotationTypeData> getParameters()
void setParameters(java.util.Set<AnnotationTypeData> parameters)