public enum PDFAFlavour extends Enum<PDFAFlavour>
| Modifier and Type | Class and Description |
|---|---|
static class |
PDFAFlavour.IsoStandardSeries
Enum to for ISO standard identifiers
|
static class |
PDFAFlavour.Level
Enum type that identifies the different PDF/A Conformance Levels A
(accessible), B (basic) & U (unicode).
|
static class |
PDFAFlavour.Specification
Enumeration 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.
|
| Enum Constant and Description |
|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
static PDFAFlavour |
byFlavourId(String flavourId)
Looks up a
PDFAFlavour by two letter flavour identifier. |
static PDFAFlavour |
fromString(String toParse)
Performs a lenient parse of the String
toParse to determine
whether it contains a valid PDFAFlavour identifier. |
static Set<String> |
getFlavourIds() |
String |
getId() |
PDFAFlavour.Level |
getLevel() |
PDFAFlavour.Specification |
getPart() |
String |
toString() |
static PDFAFlavour |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PDFAFlavour[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PDFAFlavour NO_FLAVOUR
public static final PDFAFlavour PDFA_1_A
public static final PDFAFlavour PDFA_1_B
public static final PDFAFlavour PDFA_2_A
public static final PDFAFlavour PDFA_2_B
public static final PDFAFlavour PDFA_2_U
public static final PDFAFlavour PDFA_3_A
public static final PDFAFlavour PDFA_3_B
public static final PDFAFlavour PDFA_3_U
public static PDFAFlavour[] values()
for (PDFAFlavour c : PDFAFlavour.values()) System.out.println(c);
public static PDFAFlavour valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final PDFAFlavour.Specification getPart()
PDFAFlavour.Specification instance that identifies the
Specification Partpublic final PDFAFlavour.Level getLevel()
PDFAFlavour.Level instance for this flavourpublic final String getId()
public final String toString()
toString in class Enum<PDFAFlavour>public static PDFAFlavour byFlavourId(String flavourId)
PDFAFlavour by two letter flavour identifier. The
identifier is a two letter String that identifies a PDFAFlavour,
e.g. 1a, 1b, 2a, 2b, 2u, 3a, 3b, 3u. The match is case insensitive so 1A,
1B, etc. are also valid flavour ids.flavourId - must be a two character string that exactly matches the
flavour identifier.PDFAFlavour looked up by String id or
NO_FLAVOUR if id does not match a flavourpublic static PDFAFlavour fromString(String toParse)
toParse to determine
whether it contains a valid PDFAFlavour identifier. Be aware that
the identifiers are only 2 character Strings (see
byFlavourId(String) so unintended matches are
possible.toParse - a String parameter that is parsed to see whether it contains a
PDFAFlavour identifier.PDFAFlavour looked up by parsing
toParse or NO_FLAVOUR if no
matching flavour was found.Copyright © 2015–2017 The veraPDF Consortium. All rights reserved.