Package de.xima.fc.form.common.models
Class FormThemeFileReference
- java.lang.Object
-
- de.xima.fc.form.common.models.FormThemeFileReference
-
- All Implemented Interfaces:
Serializable
public final class FormThemeFileReference extends Object implements Serializable
A reference to particular file from aIFormTheme
. Uniquely identifies a file from a form theme. Such a reference can be used later to retrieve the content of the file.- Since:
- 8.3.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static FormThemeFileReference
forThemeFile(FormThemeReference theme, String context, String filePath)
Creates a reference to a file in a form theme.String
getContext()
The context of the resource, seeEFormThemeResourceContext
for well-known contexts.String
getFilePath()
The path of the file in the form theme, seeIFormTheme#getFilePaths
.FormThemeReference
getTheme()
The reference to the form theme that contains the file.int
hashCode()
String
toString()
-
-
-
Method Detail
-
getContext
public String getContext()
The context of the resource, seeEFormThemeResourceContext
for well-known contexts.- Returns:
- The context of the resource.
-
getFilePath
public String getFilePath()
The path of the file in the form theme, seeIFormTheme#getFilePaths
.- Returns:
- The file name of the file in the form theme.
-
getTheme
public FormThemeReference getTheme()
The reference to the form theme that contains the file.- Returns:
- The reference to the form theme that contains the file.
-
forThemeFile
public static FormThemeFileReference forThemeFile(FormThemeReference theme, String context, String filePath)
Creates a reference to a file in a form theme.- Parameters:
theme
- The reference to the form theme that contains the file.context
- The context of the resource, seeEFormThemeResourceContext
for well-known contexts.filePath
- The path of the file in the form theme, seeIFormTheme#getFilePaths
.- Returns:
- A reference to a file in a form theme.
-
-