br.gov.frameworkdemoiselle.util
Enum FileRenderer.ContentType

java.lang.Object
  extended by java.lang.Enum<FileRenderer.ContentType>
      extended by 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

Enum Constant Summary
CSV
           
HTML
           
ODT
           
PDF
           
RTF
           
TXT
           
XLS
           
 
Method Summary
 String getContentType()
          Return the content type of Type
static FileRenderer.ContentType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FileRenderer.ContentType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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.