br.gov.frameworkdemoiselle.util
Enum FileRenderer.ContentType
java.lang.Object
java.lang.Enum<FileRenderer.ContentType>
br.gov.frameworkdemoiselle.util.FileRenderer.ContentType
- All Implemented Interfaces:
- Serializable, Comparable<FileRenderer.ContentType>
- Enclosing interface:
- FileRenderer
public static enum FileRenderer.ContentType
- extends Enum<FileRenderer.ContentType>
File content type.
- Author:
- SERPRO
CSV
public static final FileRenderer.ContentType CSV
HTML
public static final FileRenderer.ContentType HTML
ODT
public static final FileRenderer.ContentType ODT
PDF
public static final FileRenderer.ContentType PDF
RTF
public static final FileRenderer.ContentType RTF
TXT
public static final FileRenderer.ContentType TXT
XLS
public static final FileRenderer.ContentType XLS
values
public static FileRenderer.ContentType[] 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 (FileRenderer.ContentType c : FileRenderer.ContentType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static FileRenderer.ContentType 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 name
NullPointerException - if the argument is null
getContentType
public String getContentType()
- Return the content type of Type
- Returns:
- Content Type
Copyright © 2012 SERPRO - Serviço Federal de Processamento de Dados. All Rights Reserved.