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 Summary
ConstructorsConstructorDescriptionCreates 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 Summary
Modifier 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
-
FileRef
Creates file reference for the given storage name, path, file name and parameters. -
FileRef
Creates file reference for the given storage name, path and file name.
-
-
Method Details
-
create
Creates file reference for the given storage name, path and file name. -
getStorageName
Returns storage name. -
getPath
Returns path inside storage. -
getFileName
Returns file name. -
getParameters
Returns parameters. -
addParameter
Add a parameter. -
fromString
CreatesFileRefobject from its string representation. -
toString
-
getContentType
Returns content type according to MIME standard. -
equals
-
hashCode
public int hashCode()
-