Package org.verapdf
Class ReleaseDetails
- java.lang.Object
-
- org.verapdf.ReleaseDetails
-
public final class ReleaseDetails extends Object
Class that encapsulates the release details of the veraPDF validation library. The class controls instance creation so that only a single, static and immutable instance is available.- Author:
- Carl Wilson
-
-
Field Summary
Fields Modifier and Type Field Description static String
APPLICATION_PROPERTIES_ROOT
static String
LIBRARY_DETAILS_RESOURCE
static String
PROPERTIES_EXT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReleaseDetails
addDetailsFromResource(String resourceName)
Will load a ReleaseDetails instance from the resource found with resourceName.static ReleaseDetails
byId(String id)
Retrieve ReleaseDetails by idstatic ReleaseDetails
defaultInstance()
boolean
equals(Object obj)
{ @inheritDoc }Date
getBuildDate()
static Collection<ReleaseDetails>
getDetails()
String
getId()
static Set<String>
getIds()
static ReleaseDetails
getInstance()
String
getVersion()
int
hashCode()
{ @inheritDoc }static String
rightsStatement()
String
toString()
{ @inheritDoc }
-
-
-
Field Detail
-
APPLICATION_PROPERTIES_ROOT
public static final String APPLICATION_PROPERTIES_ROOT
- See Also:
- Constant Field Values
-
PROPERTIES_EXT
public static final String PROPERTIES_EXT
- See Also:
- Constant Field Values
-
LIBRARY_DETAILS_RESOURCE
public static final String LIBRARY_DETAILS_RESOURCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public String getId()
- Returns:
- the id of the release artifact
-
getVersion
public String getVersion()
- Returns:
- the veraPDF library version number
-
getBuildDate
public Date getBuildDate()
- Returns:
- the veraPDF library build date
-
defaultInstance
public static ReleaseDetails defaultInstance()
-
rightsStatement
public static String rightsStatement()
- Returns:
- the rights statement for the veraPDF software
-
getInstance
public static ReleaseDetails getInstance()
- Returns:
- the static immutable ReleaseDetails instance
-
byId
public static ReleaseDetails byId(String id)
Retrieve ReleaseDetails by id- Parameters:
id
- the id to lookup- Returns:
- the
-
getDetails
public static Collection<ReleaseDetails> getDetails()
-
addDetailsFromResource
public static ReleaseDetails addDetailsFromResource(String resourceName)
Will load a ReleaseDetails instance from the resource found with resourceName. This should be a properties file with the appropriate release details properties.- Parameters:
resourceName
- the name of the resource to load
-
-