Package org.netxms.client.reporting
Enum ReportRenderFormat
- java.lang.Object
-
- java.lang.Enum<ReportRenderFormat>
-
- org.netxms.client.reporting.ReportRenderFormat
-
- All Implemented Interfaces:
Serializable,Comparable<ReportRenderFormat>
public enum ReportRenderFormat extends Enum<ReportRenderFormat>
Formats for report rendering
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()StringgetExtension()static ReportRenderFormatvalueOf(Integer code)Get by codestatic ReportRenderFormatvalueOf(String name)Returns the enum constant of this type with the specified name.static ReportRenderFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final ReportRenderFormat NONE
-
PDF
public static final ReportRenderFormat PDF
-
XLS
public static final ReportRenderFormat XLS
-
-
Method Detail
-
values
public static ReportRenderFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ReportRenderFormat c : ReportRenderFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ReportRenderFormat valueOf(String name)
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
-
getCode
public int getCode()
- Returns:
- the code
-
valueOf
public static final ReportRenderFormat valueOf(Integer code)
Get by code
-
getExtension
public String getExtension()
- Returns:
- the extension
-
-