Package org.apache.fop.pdf
Enum Class Version
- All Implemented Interfaces:
Serializable
,Comparable<Version>
,Constable
A version of PDF. Values are ordered such that compareTo() gives sensible
results (e.g.,
V1_4.compareTo(V1_5) < 0
).-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Version
getValueOf
(String version) Given the PDF version as a String, returns the corresponding enumerated type.toString()
static Version
Returns the enum constant of this class with the specified name.static Version[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
V1_0
PDF v1 -
V1_1
PDF v1.1 -
V1_2
PDF v1.2 -
V1_3
PDF v1.3 -
V1_4
PDF v1.4 -
V1_5
PDF v1.5 -
V1_6
PDF v1.6 -
V1_7
PDF v1.7
-
-
Field Details
-
version
-
-
Constructor Details
-
Version
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValueOf
Given the PDF version as a String, returns the corresponding enumerated type. The String should be in the format "1.x" for PDF v1.x.- Parameters:
version
- a version number- Returns:
- the corresponding Version instance
- Throws:
IllegalArgumentException
- if the argument does not correspond to any existing PDF version
-
toString
-