Interface FileEntry
public interface FileEntry
File entry providing information about a file created within a generation process.
- Since:
- 5.2.200905
-
Method Summary
Modifier and TypeMethodDescription@Nullable IDProvider
getElement
(BaseContext context, boolean release) Provides the element this file is based upon with respect to the given context.@Nullable String
Provides the UID of the element, this file is based upon.Provides the UID-Type of the element, this file is based upon.@NotNull String
Provides the extension of the file.@NotNull String
getName()
Provides the name of the file.@NotNull String
getPath()
Provides the complete path sequence (including the file's name) relative to the root of the generation.
-
Method Details
-
getName
Provides the name of the file. This is the last name in the file path's name sequence.- Returns:
- The file's name.
- Since:
- 5.2.200905
-
getExtension
Provides the extension of the file.- Returns:
- The file's extension.
- Since:
- 5.2.200905
-
getPath
Provides the complete path sequence (including the file's name) relative to the root of the generation.- Returns:
- The path of this file.
- Since:
- 5.2.200905
-
getElementUid
Provides the UID of the element, this file is based upon.- Returns:
- The element's UID or null, if the element does not have a uid.
- Since:
- 5.2.200905
-
getElementUidType
Provides the UID-Type of the element, this file is based upon.- Returns:
- The element's UID-Type or null, if the element type is unknown.
- Since:
- 5.2.200905
-
getElement
Provides the element this file is based upon with respect to the given context. If release is definedtrue
, the element will be fetched in its released version (read only), otherwise in its current version (modifiable).Note that for content projection based files, the element will be the defining
PageRef
and not the dataset.- Parameters:
context
- The context providing access information.release
- Indicates to fetch the released version of elements.- Returns:
- The related element.
- Since:
- 5.2.200905
-