Package org.apache.rat
Class VersionInfo
java.lang.Object
org.apache.rat.VersionInfo
A formatter for Package information about a class.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor that uses the VersionInfo package for information.VersionInfo
(Class<?> clazz) Constructor for a specific class. -
Method Summary
Modifier and TypeMethodDescriptionGets the specification title of the package.Gets the specification vendor of the package.Gets the specification version of the package.getTitle()
Gets the implementation title of the package.Gets the implementation vendor of the package.Gets the implementation version of the package.static void
Simple testing output.toString()
Default string representation of the implementation information from the package.
-
Constructor Details
-
VersionInfo
public VersionInfo()Constructor that uses the VersionInfo package for information. -
VersionInfo
Constructor for a specific class.- Parameters:
clazz
- the class to get the Package information from.
-
-
Method Details
-
main
Simple testing output. Prints values from default constructor.- Parameters:
args
- not used.
-
toString
Default string representation of the implementation information from the package. -
getVersion
Gets the implementation version of the package. Will return "VERSION-NUMBER" if package information is not available.- Returns:
- the implementation version.
-
getVendor
Gets the implementation vendor of the package. Will return "VENDOR-NAME" if package information is not available.- Returns:
- the implementation vendor
-
getTitle
Gets the implementation title of the package. Will return "TITLE" if package information is not available.- Returns:
- the implementation title
-
getSpecVersion
Gets the specification version of the package. Will return "SPEC-VERSION" if package information is not available.- Returns:
- the specification version.
-
getSpecVendor
Gets the specification vendor of the package. Will return "SPEC-VENDOR" if package information is not available.- Returns:
- the specification vendor
-
getSpecTitle
Gets the specification title of the package. Will return "SPEC-TITLE" if package information is not available.- Returns:
- the specification title
-