Package org.verapdf.pdfa
Class Foundries
java.lang.Object
org.verapdf.pdfa.Foundries
Factory class that provides convenience methods for handling the veraPDF
Foundry.
- Version:
- 0.1 Created 26 Oct 2016:22:00:38
- Author:
- Carl Wilson carlwilson AT github
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final URIreturn theURIidentifying the defaultVeraFoundryProvider. -
Method Summary
Modifier and TypeMethodDescriptionstatic VeraPDFFoundrystatic booleanObtain all registeredVeraFoundryProvideridsstatic VeraPDFFoundrynewInstance(URI id) Obtain a newVeraPDFFoundryinstance.static voidregisterDefaultProvider(VeraFoundryProvider provider) Register the defaultVeraFoundryProvider.static voidregisterProvider(URI id, VeraFoundryProvider provider) Register aVeraFoundryProviderwith a uniqueURIidentifier.voidsetDefaultFlavour(PDFAFlavour defaultFlavour) Set the defaultPDFAFlavourused as a fall back by the veraPDF library
-
Field Details
-
DEFAULT_PROVIDER_ID
return theURIidentifying the defaultVeraFoundryProvider.
-
-
Method Details
-
registerDefaultProvider
Register the defaultVeraFoundryProvider.- Parameters:
provider- theVeraFoundryProviderto register as the default.
-
registerProvider
Register aVeraFoundryProviderwith a uniqueURIidentifier.- Parameters:
id- a uniqueURIidentifying theVeraFoundryProvider.provider- theVeraFoundryProviderto register.
-
defaultInstance
- Returns:
- the default
VeraFoundryProvideridentified byDEFAULT_PROVIDER_ID.
-
newInstance
Obtain a newVeraPDFFoundryinstance.- Parameters:
id- theURIthat identifies theVeraPDFFoundry- Returns:
- the
VeraPDFFoundrycorresponding to the suppliedURI
-
getProviderIds
Obtain all registeredVeraFoundryProviderids- Returns:
- a
Setcontaining theURIids for all registeredVeraFoundryProviders.
-
setDefaultFlavour
Set the defaultPDFAFlavourused as a fall back by the veraPDF library- Parameters:
defaultFlavour- the desired defaultPDFAFlavour
-
defaultParserIsPDFBox
public static boolean defaultParserIsPDFBox()
-