Interface ProfileDirectory
public interface ProfileDirectory
A ProfileDirectory provides access to a set of
ValidationProfiles
that can be retrieved by String id or PDFAFlavour.
This interface provides a simple directory of ValidationProfiles that is intentionally restricted by the enum type PDFAFlavour.
- Author:
- Carl Wilson
-
Method Summary
Modifier and TypeMethodDescriptiongetValidationProfileByFlavour(PDFAFlavour flavour) getValidationProfileById(String profileID)
-
Method Details
-
getValidationProfileIds
- Returns:
- the Set of ValidationProfile String identifiers for the profiles held in the directory.
-
getPDFAFlavours
Set<PDFAFlavour> getPDFAFlavours()- Returns:
- the Set of
PDFAFlavourenum instances that identify the profiles held in the directory.
-
getValidationProfileById
- Parameters:
profileID- a two character String that uniquely identifies a particularPDFAFlavour, e.g. 1a, 1b, 2a, etc.- Returns:
- the
ValidationProfileassociated with the profileId - Throws:
NoSuchElementException- when there is no profile associated with the profileID string IllegalArgumentException if the profileID parameter is nullIllegalArgumentException- if profileID is null
-
getValidationProfileByFlavour
- Parameters:
flavour- aPDFAFlavourinstance that identifies aValidationProfile- Returns:
- the
ValidationProfileassociated with the flavour - Throws:
NoSuchElementException- when there is no profile associated with the flavour IllegalArgumentException if the flavour parameter is nullIllegalArgumentException- if flavour is null
-
getValidationProfiles
Set<ValidationProfile> getValidationProfiles()- Returns:
- the full set of
ValidationProfiles held in the directory.
-