org.efaps.ui.wicket.util
Enum MimeTypes

java.lang.Object
  extended by java.lang.Enum<MimeTypes>
      extended by org.efaps.ui.wicket.util.MimeTypes
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MimeTypes>

public enum MimeTypes
extends java.lang.Enum<MimeTypes>

This enum contains the MimesTypes.

Version:
$Id: MimeTypes.java 3447 2009-11-29 22:46:39Z tim.moxter $
Author:
The eFaps Team

Enum Constant Summary
ODS
          ODS.
ODT
          ODT.
PDF
          pdf format.
TXT
          text format.
XML
          xml format.
 
Method Summary
 java.lang.String getContentType()
          Getter method for instance variable contentType.
 java.lang.String getEnding()
          Getter method for instance variable ending.
static MimeTypes getMimeTypeByEnding(java.lang.String _ending)
          Method to get a MimeType by its ending.
static MimeTypes valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MimeTypes[] 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

ODT

public static final MimeTypes ODT
ODT.


ODS

public static final MimeTypes ODS
ODS.


TXT

public static final MimeTypes TXT
text format.


PDF

public static final MimeTypes PDF
pdf format.


XML

public static final MimeTypes XML
xml format.

Method Detail

values

public static MimeTypes[] 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 (MimeTypes c : MimeTypes.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static MimeTypes valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getMimeTypeByEnding

public static MimeTypes getMimeTypeByEnding(java.lang.String _ending)
Method to get a MimeType by its ending.

Parameters:
_ending - ending the Mimetye is returned
Returns:
MimeType

getEnding

public java.lang.String getEnding()
Getter method for instance variable ending.

Returns:
value of instance variable ending

getContentType

public java.lang.String getContentType()
Getter method for instance variable contentType.

Returns:
value of instance variable contentType


Copyright © 2003-2010 The eFaps Team. All Rights Reserved.