Package io.jmix.core
Class FileRef
java.lang.Object
io.jmix.core.FileRef
- All Implemented Interfaces:
- Serializable
A reference pointing to a file located in 
FileStorage.- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionCreates file reference for the given storage name, path and file name.Creates file reference for the given storage name, path, file name and parameters.
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddParameter(String key, String value) Add a parameter.static FileRefCreates file reference for the given storage name, path and file name.booleanstatic FileReffromString(String fileRefString) CreatesFileRefobject from its string representation.Returns content type according to MIME standard.Returns file name.Returns parameters.getPath()Returns path inside storage.Returns storage name.inthashCode()toString()
- 
Constructor Details- 
FileRefCreates file reference for the given storage name, path, file name and parameters.
- 
FileRefCreates file reference for the given storage name, path and file name.
 
- 
- 
Method Details- 
createCreates file reference for the given storage name, path and file name.
- 
getStorageNameReturns storage name.
- 
getPathReturns path inside storage.
- 
getFileNameReturns file name.
- 
getParametersReturns parameters.
- 
addParameterAdd a parameter.
- 
fromStringCreatesFileRefobject from its string representation.
- 
toString
- 
getContentTypeReturns content type according to MIME standard.
- 
equals
- 
hashCodepublic int hashCode()
 
-