Interface ProfileDirectory
-
public interface ProfileDirectory
A ProfileDirectory provides access to a set ofValidationProfile
s that can be retrieved by String id orPDFAFlavour
.This interface provides a simple directory of
ValidationProfile
s that is intentionally restricted by the enum typePDFAFlavour
.- Author:
- Carl Wilson
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<PDFAFlavour>
getPDFAFlavours()
ValidationProfile
getValidationProfileByFlavour(PDFAFlavour flavour)
ValidationProfile
getValidationProfileById(String profileID)
Set<String>
getValidationProfileIds()
Set<ValidationProfile>
getValidationProfiles()
-
-
-
Method Detail
-
getValidationProfileIds
Set<String> getValidationProfileIds()
- Returns:
- the Set of ValidationProfile String identifiers for the profiles held in the directory.
-
getPDFAFlavours
Set<PDFAFlavour> getPDFAFlavours()
- Returns:
- the Set of
PDFAFlavour
enum instances that identify the profiles held in the directory.
-
getValidationProfileById
ValidationProfile getValidationProfileById(String profileID)
- Parameters:
profileID
- a two character String that uniquely identifies a particularPDFAFlavour
, e.g. 1a, 1b, 2a, etc.- Returns:
- the
ValidationProfile
associated 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
ValidationProfile getValidationProfileByFlavour(PDFAFlavour flavour)
- Parameters:
flavour
- aPDFAFlavour
instance that identifies aValidationProfile
- Returns:
- the
ValidationProfile
associated 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
ValidationProfile
s held in the directory.
-
-