Package org.opencms.report
Enum CmsReportFormatType
- All Implemented Interfaces:
Serializable
,Comparable<CmsReportFormatType>
,java.lang.constant.Constable
Enum representing report entry types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDefault format.Error format.Exception format.Headline format.Newline format.Note format.'OK' format.Warning format. -
Method Summary
Modifier and TypeMethodDescriptionstatic CmsReportFormatType
byId
(int id) Gets the format enum by its id.static CmsReportFormatType
Gets the format enum by its format naem.int
Gets the format id.Gets the format name.static CmsReportFormatType
Returns the enum constant of this type with the specified name.static CmsReportFormatType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
fmtDefault
Default format. -
fmtError
Error format. -
fmtException
Exception format. -
fmtHeadline
Headline format. -
fmtNewline
Newline format. -
fmtNote
Note format. -
fmtOk
'OK' format. -
fmtWarning
Warning format.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
byId
Gets the format enum by its id.- Parameters:
id
- the format id- Returns:
- the format enum
-
byName
Gets the format enum by its format naem.- Parameters:
name
- the format name- Returns:
- the format enum value
-
getFormatId
Gets the format id.- Returns:
- the format id
-
getFormatName
Gets the format name.- Returns:
- the format name
-