Enum Class HvlRToolResourceFileType
java.lang.Object
java.lang.Enum<HvlRToolResourceFileType>
tr.com.havelsan.javarch.report.rtool.starter.support.context.HvlRToolResourceFileType
- All Implemented Interfaces:
Serializable
,Comparable<HvlRToolResourceFileType>
,Constable
The type represents reporting tool resource file types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic HvlRToolResourceFileType
fromFileExtensionOrElse
(String fileExtensionValue, HvlRToolResourceFileType defaultResourceFileType) Obtains reporting tool resource file type using the type mapping value.static HvlRToolResourceFileType
fromFileExtensionOrElseUndefined
(String fileExtensionValue) Obtains reporting tool resource file type using the type mapping value.static HvlRToolResourceFileType
fromFilePath
(Path filePath) Obtains reporting tool resource file type using the file name path.static HvlRToolResourceFileType
fromFilePathOrElse
(Path filePath, HvlRToolResourceFileType defaultResourceFileType) Obtains reporting tool resource file type using the file name path.static HvlRToolResourceFileType
fromFilePathOrElseUndefined
(Path filePath) Obtains reporting tool resource file type using the file name path.Gets file extension value.boolean
Is image file type boolean.boolean
Is report locale file type boolean.boolean
Is report template content file type boolean.static HvlRToolResourceFileType
Returns the enum constant of this class with the specified name.static HvlRToolResourceFileType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED
-
REPORT_TEMPLATE_CONTENT
-
REPORT_LOCALE
-
IMAGE_PNG
-
IMAGE_SVG
-
IMAGE_GIF
-
IMAGE_JPG
-
IMAGE_JPEG
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromFileExtensionOrElse
public static HvlRToolResourceFileType fromFileExtensionOrElse(String fileExtensionValue, HvlRToolResourceFileType defaultResourceFileType) Obtains reporting tool resource file type using the type mapping value.- Parameters:
fileExtensionValue
- the file extension valuedefaultResourceFileType
- the default resource file type- Returns:
- the resource file type
-
fromFileExtensionOrElseUndefined
Obtains reporting tool resource file type using the type mapping value.- Parameters:
fileExtensionValue
- the file extension value- Returns:
- the resource file type
-
fromFilePathOrElse
public static HvlRToolResourceFileType fromFilePathOrElse(Path filePath, HvlRToolResourceFileType defaultResourceFileType) Obtains reporting tool resource file type using the file name path.- Parameters:
filePath
- the file pathdefaultResourceFileType
- the default resource file type- Returns:
- the resource file type
-
fromFilePath
Obtains reporting tool resource file type using the file name path.- Parameters:
filePath
- the file path- Returns:
- the resource file type
-
fromFilePathOrElseUndefined
Obtains reporting tool resource file type using the file name path.- Parameters:
filePath
- the file path- Returns:
- the resource file type
-
getFileExtensionValue
Gets file extension value.- Returns:
- the file extension value
-
isReportTemplateContentFileType
public boolean isReportTemplateContentFileType()Is report template content file type boolean.- Returns:
- the boolean
-
isReportLocaleFileType
public boolean isReportLocaleFileType()Is report locale file type boolean.- Returns:
- the boolean
-
isImageFileType
public boolean isImageFileType()Is image file type boolean.- Returns:
- the boolean
-