Package be.gaudry.model.disposition
Enum Class ETableOutputFormat
- All Implemented Interfaces:
Serializable
,Comparable<ETableOutputFormat>
,Constable
Possibles output formats for Broldev tabular informations.
Provided by the broldev.core.model project.
- Since:
- 1.0 Jul 2, 2008, broldev.core.model 0.0.1-SNAPSHOT dependency
- Version:
- 1.0 Jul 2, 2008
- Author:
- Steph GAUDRY
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ETableOutputFormat
fromInt(int key)
int
getValue()
The value is a numeric representation of thisETableOutputFormat
, independent of theEnum.ordinal()
information.toString()
Returns a localized representation of an ETableOutputFormat, or thename
of this enum constant (as contained in the declaration) if an error occurs when trying to use the language resource file.static ETableOutputFormat
Returns the enum constant of this class with the specified name.static ETableOutputFormat[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CSV
Comma separated values -
XLS
Microsoft Office Excel -
XML
XML -
TEXT
Text file -
HTML
Web page -
PRINT
Send the document to the printer -
JPG
JPG image -
PNG
PNG image -
PDF
PDF document
-
-
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
-
getValue
public int getValue()The value is a numeric representation of thisETableOutputFormat
, independent of theEnum.ordinal()
information.- Returns:
- the value
-
toString
Returns a localized representation of an ETableOutputFormat, or thename
of this enum constant (as contained in the declaration) if an error occurs when trying to use the language resource file.- Overrides:
toString
in classEnum<ETableOutputFormat>
- Since:
- 1.1 use localization
- See Also:
LanguageHelper
-
fromInt
- Parameters:
key
- numeric representation of theETableOutputFormat
,value given by thegetValue()
method.- Returns:
- the matching
ETableOutputFormat
, or null in case of wrong parameter
-