Class DownloadOption
java.lang.Object
io.goobi.viewer.model.job.download.DownloadOption
Download option configuration item.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDownloadOption
(String label, String format, Dimension boxSize) DownloadOption
(String label, String format, String boxSize) -
Method Summary
Modifier and TypeMethodDescriptionstatic DownloadOption
getByLabel
(String label) Retrieves theDownloadOption
with the given label from configuration.getExtension
(String filename) getLabel()
boolean
isValid()
setBoxSizeInPixel
(String boxSizeInPixel) toString()
-
Field Details
-
TIMES_SYMBOL
- See Also:
-
MAX
Dimension symbolizing the maximal image size -
NONE
Dimension symbolizing that no image size has been set
-
-
Constructor Details
-
DownloadOption
public DownloadOption() -
DownloadOption
-
DownloadOption
-
-
Method Details
-
isValid
public boolean isValid()- Returns:
- true if all properties are set; false otherwise
-
getByLabel
Retrieves theDownloadOption
with the given label from configuration.- Parameters:
label
- Label of theDownloadOption
to find- Returns:
DownloadOption
that matches label; null if none found
-
getLabel
- Returns:
- the label
-
setLabel
- Parameters:
label
- the label to set- Returns:
- this
-
getFormat
- Returns:
- the format
-
setFormat
- Parameters:
format
- the format to set- Returns:
- this
-
getBoxSizeInPixel
- Returns:
- the boxSizeInPixel
-
getExtension
-
setBoxSizeInPixel
- Parameters:
boxSizeInPixel
- the boxSizeInPixel to set- Returns:
- this
-
getBoxSizeLabel
-
toString
-