SourceForge.net Logo
aXSL API 0.2

org.axsl.pdf
Enum PdfVersion

java.lang.Object
  extended by java.lang.Enum<PdfVersion>
      extended by org.axsl.pdf.PdfVersion
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PdfVersion>

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

An enumeration of the possible PDF Versions.


Enum Constant Summary
VERSION_1_3
          Version 1.3 of the PDF spec.
VERSION_1_4
          Version 1.4 of the PDF spec.
VERSION_1_5
          Version 1.5 of the PDF spec.
VERSION_1_6
          Version 1.6 of the PDF spec.
 
Method Summary
static PdfVersion fromString(java.lang.String stringVersion)
          For a given version String, finds the PdfVersion that represents that version.
 java.lang.String getVersionString()
          Returns the String description of this version.
static PdfVersion valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PdfVersion[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

VERSION_1_3

public static final PdfVersion VERSION_1_3
Version 1.3 of the PDF spec.


VERSION_1_4

public static final PdfVersion VERSION_1_4
Version 1.4 of the PDF spec.


VERSION_1_5

public static final PdfVersion VERSION_1_5
Version 1.5 of the PDF spec.


VERSION_1_6

public static final PdfVersion VERSION_1_6
Version 1.6 of the PDF spec.

Method Detail

values

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

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

valueOf

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

getVersionString

public java.lang.String getVersionString()
Returns the String description of this version.

Returns:
The String description of this version.

fromString

public static PdfVersion fromString(java.lang.String stringVersion)
For a given version String, finds the PdfVersion that represents that version.

Parameters:
stringVersion - The String representing the version. Valid values include "1.3", "1.4", "1.5", and "1.6".
Returns:
The PdfVersion used to represent stringVersion, or null if none exists.

SourceForge.net Logo
aXSL API 0.2

This documentation was created August 8 2007 by The aXSL Group and may be freely copied. See license for details.