Package org.verapdf.pdfa.flavours
Enum Class PDFAFlavour
- All Implemented Interfaces:
Serializable,Comparable<PDFAFlavour>,java.lang.constant.Constable
Enums used as id for PDF/A flavours where a flavour uniquely identifies a
specific PDF/A Standard part and associated conformance level.
The PDF/A Specification:
ISO 19005 - Document Management - Electronic document format for long-term preservation (PDF/A)
comprises 4 parts:
ISO 19005 - Document Management - Electronic document format for long-term preservation (PDF/A)
comprises 4 parts:
- Part 1: PDF/A-1 - Use of PDF 1.4
- Part 2: PDF/A-2 - Use of ISO 32000-1
- Part 3: PDF/A-3 - Use of ISO 32000-1 with support for embedded files
- Part 4: PDF/A-4 - Use of ISO 32000-2
- Level b - basic
- Level a - accessible
- Level u - unicode
- Level f - embedded files
- Level e - engineering
- 1a
- 1b
- 2a
- 2b
- 2u
- 3a
- 3b
- 3u
- 4
- 4f
- 4e
-
Note that "Use of ISO 32000-1" indicates that PDF/A parts 2 and 3 are based
upon PDF 1.7. ISO 32000-1 is the code for the PDF 1.7 ISO standard. The
specification parts specify different conformance levels:
- Author:
- Carl Wilson
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum to for ISO standard identifiersstatic enumEnum type that identifies the different PDF/A Conformance Levels A (accessible), B (basic), U (unicode), F (embedded files) & E (engineering).static enumEnumeration of PDF/A Specification Parts, 1-3 used to provide ids and a standard source of details such as name and description for PDF/A Specifications.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpecial ID for the none case1a PDF Version 1 Level A1b PDF Version 1 Level B2a PDF Version 2 Level A2b PDF Version 2 Level B2u PDF Version 2 Level U3a PDF Version 3 Level A3b PDF Version 3 Level B3u PDF Version 3 Level U4 PDF Version 44 PDF Version 4 Level E4 PDF Version 4 Level Fua1 PDF Version 1wcag PDF version 2.1 -
Method Summary
Modifier and TypeMethodDescriptionstatic PDFAFlavourbyFlavourId(String flavourId) Looks up aPDFAFlavourby two letter flavour identifier.static PDFAFlavourfromString(String toParse) Performs a lenient parse of the StringtoParseto determine whether it contains a validPDFAFlavouridentifier.final StringgetId()final PDFAFlavour.LevelgetLevel()getPart()final StringtoString()static PDFAFlavourReturns the enum constant of this class with the specified name.static PDFAFlavour[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_FLAVOUR
Special ID for the none case -
PDFA_1_A
1a PDF Version 1 Level A -
PDFA_1_B
1b PDF Version 1 Level B -
PDFA_2_A
2a PDF Version 2 Level A -
PDFA_2_B
2b PDF Version 2 Level B -
PDFA_2_U
2u PDF Version 2 Level U -
PDFA_3_A
3a PDF Version 3 Level A -
PDFA_3_B
3b PDF Version 3 Level B -
PDFA_3_U
3u PDF Version 3 Level U -
PDFA_4
4 PDF Version 4 -
PDFA_4_F
4 PDF Version 4 Level F -
PDFA_4_E
4 PDF Version 4 Level E -
PDFUA_1
ua1 PDF Version 1 -
WCAG2_1
wcag PDF version 2.1
-
-
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
-
getPart
- Returns:
- an
PDFAFlavour.Specificationinstance that identifies the Specification Part
-
getLevel
- Returns:
- the
PDFAFlavour.Levelinstance for this flavour
-
getId
- Returns:
- the two character String id for this flavour, e.g. 1a, 1b, 2a, etc.
-
toString
- Overrides:
toStringin classEnum<PDFAFlavour>
-
byFlavourId
Looks up aPDFAFlavourby two letter flavour identifier. The identifier is a two letter String that identifies aPDFAFlavour, e.g. 1a, 1b, 2a, 2b, 2u, 3a, 3b, 3u, 4, 4f, 4e. The match is case insensitive so 1A, 1B, etc. are also valid flavour ids.- Parameters:
flavourId- must be a two character string that exactly matches the flavour identifier.- Returns:
- the correct
PDFAFlavourlooked up by String id orNO_FLAVOURif id does not match a flavour
-
fromString
Performs a lenient parse of the StringtoParseto determine whether it contains a validPDFAFlavouridentifier. Be aware that the identifiers are only 2 character Strings (seebyFlavourId(String)so unintended matches are possible.- Parameters:
toParse- a String parameter that is parsed to see whether it contains a PDFAFlavour identifier.- Returns:
- the correct
PDFAFlavourlooked up by parsingtoParseorNO_FLAVOURif no matching flavour was found.
-
getFlavourIds
- Returns:
- the Set of PDFA Flavour String ids
-