Package org.opencms.report
Enum Class CmsReportFormatType
- All Implemented Interfaces:
Serializable,Comparable<CmsReportFormatType>,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 ConstantsEnum ConstantDescriptionDefault format.Error format.Exception format.Headline format.Newline format.Note format.'OK' format.Warning format. -
Method Summary
Modifier and TypeMethodDescriptionstatic CmsReportFormatTypebyId(int id) Gets the format enum by its id.static CmsReportFormatTypeGets the format enum by its format naem.intGets the format id.Gets the format name.static CmsReportFormatTypeReturns the enum constant of this class with the specified name.static CmsReportFormatType[]values()Returns an array containing the constants of this enum class, 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 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
-
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
-