Class DownloadOption
java.lang.Object
io.goobi.viewer.model.job.download.DownloadOption
Download option configuration item.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDownloadOption(String label, String format, Dimension boxSize) DownloadOption(String label, String format, String boxSize) -
Method Summary
Modifier and TypeMethodDescriptionstatic DownloadOptiongetByLabel(String label) Retrieves theDownloadOptionwith the given label from configuration.getExtension(String filename) getLabel()booleanisValid()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 theDownloadOptionwith the given label from configuration.- Parameters:
label- Label of theDownloadOptionto find- Returns:
DownloadOptionthat 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
-