com.gliffy.api.client.model
Enum DocumentFileType

java.lang.Object
  extended by java.lang.Enum<DocumentFileType>
      extended by com.gliffy.api.client.model.DocumentFileType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DocumentFileType>

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

All known file types that can be exported from Gliffy.


Enum Constant Summary
GLIFFY
          XML - Extensible Markup Language (*.xml)
JPEG
          JPEG - Joint Photographic Experts Group (*.jpeg)
PNG
          PNG - Portable Network Graphics (*.png)
SVG
          SVG - Scalable Vector Graphics (*.svg)
 
Method Summary
 java.lang.String getFileExtension()
          Returns the associated file extension of the file type.
static DocumentFileType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DocumentFileType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

JPEG

public static final DocumentFileType JPEG
JPEG - Joint Photographic Experts Group (*.jpeg)


PNG

public static final DocumentFileType PNG
PNG - Portable Network Graphics (*.png)


SVG

public static final DocumentFileType SVG
SVG - Scalable Vector Graphics (*.svg)


GLIFFY

public static final DocumentFileType GLIFFY
XML - Extensible Markup Language (*.xml)

Method Detail

values

public static final DocumentFileType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(DocumentFileType c : DocumentFileType.values())
        System.out.println(c);

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

valueOf

public static DocumentFileType 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

getFileExtension

public java.lang.String getFileExtension()
Returns the associated file extension of the file type.

Returns:
the associated file extension of the file type.