Modifier and Type | Field and Description |
---|---|
SimpleDateFormat |
DATE_FORMAT |
SimpleDateFormat |
DATETIME_FORMAT |
SimpleDateFormat |
TIME_FORMAT |
Constructor and Description |
---|
ImageDescription()
The default class constructor.
|
ImageDescription(String studyID,
String studyName,
Date studyDate,
String studyDes)
Class constructor.
|
ImageDescription(String id,
String name,
String time,
String date,
String des)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
anonymize()
Clears this data.
|
Object |
clone()
Returns a copy of this object.
|
String |
getAllID()
Returns both ID and name.
|
String |
getAllTime()
Deprecated.
|
URI[] |
getAssociatedFiles()
Returns an array of files associated with this image (e.g., a multifile image format).
|
String |
getDate()
Deprecated.
|
String |
getDescription()
Returns the description.
|
Map<Long,String> |
getDicomItems()
Returns a map of DICOM tag id to string value (see setDicomItems() for more explanation).
|
URI |
getFile()
Returns the URI of this image.
|
String |
getID()
Returns the scan ID.
|
String |
getImageTypeDescription()
Returns a description of the image type.
|
String |
getName()
Returns the scan name.
|
Date |
getStudyDate()
Returns the study date.
|
String |
getStudyDateString() |
String |
getStudyDateTimeString() |
String |
getStudyTimeString() |
String |
getTime()
Deprecated.
|
String |
getTitle()
Returns a nice title for this image.
|
boolean |
hasBeenEdited()
Returns true if this object has been edited since construction.
|
void |
setAssociatedFiles(URI[] associatedFiles)
Sets an array of files associated with this image.
|
void |
setDate(String date)
Deprecated.
|
void |
setDescription(String des)
Sets the description.
|
void |
setDicomItems(Map<Long,String> dicomItems)
Sets a map of DICOM tag id to string value.
|
void |
setFile(URI file)
Sets the URI of this image.
|
void |
setID(String id)
Sets the scan ID.
|
void |
setImageTypeDescription(String imageTypeDescription)
Sets the image type description.
|
void |
setName(String name)
Sets the scan name.
|
void |
setStudyDate(Date studyDate)
Sets the study date.
|
void |
setTime(String time)
Deprecated.
|
void |
setTitle(String title)
Sets a nice title for this image.
|
String |
toString()
Returns a string representation of this object.
|
public final SimpleDateFormat DATETIME_FORMAT
public final SimpleDateFormat DATE_FORMAT
public final SimpleDateFormat TIME_FORMAT
public ImageDescription()
@Deprecated public ImageDescription(String id, String name, String time, String date, String des)
id
- the scan IDname
- the name associated with the scan (e.g., patient name)time
- the scan timedate
- the scan datedes
- any further descriptionpublic ImageDescription(String studyID, String studyName, Date studyDate, String studyDes)
studyID
- the study IDstudyName
- the study namestudyDate
- the scan datestudyDes
- the study descriptionpublic void anonymize()
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
- clone not supported exceptionpublic String getAllID()
@Deprecated public String getAllTime()
public URI[] getAssociatedFiles()
@Deprecated public String getDate()
public String getDescription()
public Map<Long,String> getDicomItems()
public URI getFile()
public String getID()
public String getName()
@Deprecated public String getTime()
public String getTitle()
public boolean hasBeenEdited()
public void setAssociatedFiles(URI[] associatedFiles)
associatedFiles
- an array of file@Deprecated public void setDate(String date)
date
- the scan datepublic void setDescription(String des)
des
- the descriptionpublic void setDicomItems(Map<Long,String> dicomItems)
dicomItems
- the DICOM mappublic void setFile(URI file)
file
- the URIpublic void setID(String id)
id
- the scan IDpublic void setName(String name)
name
- the scan name@Deprecated public void setTime(String time)
time
- the scan timepublic void setTitle(String title)
title
- public String toString()
public String getImageTypeDescription()
public void setImageTypeDescription(String imageTypeDescription)
imageTypeDescription
- the image type descriptionpublic void setStudyDate(Date studyDate)
studyDate
- the study datepublic Date getStudyDate()
public String getStudyDateString()
public String getStudyTimeString()
public String getStudyDateTimeString()