Package org.verapdf.component
Class Components
- java.lang.Object
-
- org.verapdf.component.Components
-
public final class Components extends Object
Factory class for veraPDF components and associated classes.- Version:
- 0.1 Created 27 Oct 2016:00:13:55
- Author:
- Carl Wilson carlwilson AT github
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classComponents.TimerConvenience factory class to facilitate the creation ofAuditDurations.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ComponentDetailsdefaultDetails()static AuditDurationdefaultDuration()static ComponentDetailsdetailsFromValues(URI id, String name, String version, String provider, String description)Create a new newComponentDetailsinstance from the passed valuesstatic ComponentDetailslibraryDetails(URI id, String name)Convenience method that creates aComponentDetailsinstance with the veraPDF library version number and description.static ComponentDetailsveraDetails(URI id, String name, String version, String description)Convenience method that creates aComponentDetailsinstance with the veraPDF library description.
-
-
-
Method Detail
-
defaultDetails
public static ComponentDetails defaultDetails()
- Returns:
- the default
ComponentDetailsinstance.
-
libraryDetails
public static ComponentDetails libraryDetails(URI id, String name)
Convenience method that creates aComponentDetailsinstance with the veraPDF library version number and description.- Parameters:
id- a preferably uniqueURIthat identifies theComponentDetails.name- the name to be assigned theComponentDetails- Returns:
- a new
ComponentDetailsinstance populated using the passed parameters
-
veraDetails
public static ComponentDetails veraDetails(URI id, String name, String version, String description)
Convenience method that creates aComponentDetailsinstance with the veraPDF library description.- Parameters:
id- a preferably uniqueURIthat identifies theComponentDetails.name- the name to be assigned theComponentDetailsdescription- the description to be assigned to theComponentDetailsinstance.- Returns:
- a new
ComponentDetailsinstance populated using the passed parameters
-
detailsFromValues
public static ComponentDetails detailsFromValues(URI id, String name, String version, String provider, String description)
Create a new newComponentDetailsinstance from the passed values
-
defaultDuration
public static AuditDuration defaultDuration()
- Returns:
- the default
AuditDurationinstance
-
-