Package org.verapdf.pdfa
Class Foundries
- java.lang.Object
-
- org.verapdf.pdfa.Foundries
-
public class Foundries extends Object
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
Fields Modifier and Type Field Description static URIDEFAULT_PROVIDER_IDreturn theURIidentifying the defaultVeraFoundryProvider.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VeraPDFFoundrydefaultInstance()static booleandefaultParserIsPDFBox()static Set<URI>getProviderIds()Obtain 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 Detail
-
DEFAULT_PROVIDER_ID
public static final URI DEFAULT_PROVIDER_ID
return theURIidentifying the defaultVeraFoundryProvider.
-
-
Method Detail
-
registerDefaultProvider
public static void registerDefaultProvider(VeraFoundryProvider provider)
Register the defaultVeraFoundryProvider.- Parameters:
provider- theVeraFoundryProviderto register as the default.
-
registerProvider
public static void registerProvider(URI id, VeraFoundryProvider provider)
Register aVeraFoundryProviderwith a uniqueURIidentifier.- Parameters:
id- a uniqueURIidentifying theVeraFoundryProvider.provider- theVeraFoundryProviderto register.
-
defaultInstance
public static VeraPDFFoundry defaultInstance()
- Returns:
- the default
VeraFoundryProvideridentified byDEFAULT_PROVIDER_ID.
-
newInstance
public static VeraPDFFoundry newInstance(URI id)
Obtain a newVeraPDFFoundryinstance.- Parameters:
id- theURIthat identifies theVeraPDFFoundry- Returns:
- the
VeraPDFFoundrycorresponding to the suppliedURI
-
getProviderIds
public static Set<URI> getProviderIds()
Obtain all registeredVeraFoundryProviderids- Returns:
- a
Setcontaining theURIids for all registeredVeraFoundryProviders.
-
setDefaultFlavour
public void setDefaultFlavour(PDFAFlavour defaultFlavour)
Set the defaultPDFAFlavourused as a fall back by the veraPDF library- Parameters:
defaultFlavour- the desired defaultPDFAFlavour
-
defaultParserIsPDFBox
public static boolean defaultParserIsPDFBox()
-
-