Class VersionInfo

java.lang.Object
org.apache.rat.VersionInfo

public final class VersionInfo extends Object
A formatter for Package information about a class.
See Also:
  • Constructor Details

    • VersionInfo

      public VersionInfo()
      Constructor that uses the VersionInfo package for information.
    • VersionInfo

      public VersionInfo(Class<?> clazz)
      Constructor for a specific class.
      Parameters:
      clazz - the class to get the Package information from.
  • Method Details

    • main

      public static void main(String[] args)
      Simple testing output. Prints values from default constructor.
      Parameters:
      args - not used.
    • toString

      public String toString()
      Default string representation of the implementation information from the package.
      Overrides:
      toString in class Object
      Returns:
      The string representation.
    • getVersion

      public String getVersion()
      Gets the implementation version of the package. Will return "VERSION-NUMBER" if package information is not available.
      Returns:
      the implementation version.
    • getVendor

      public String getVendor()
      Gets the implementation vendor of the package. Will return "VENDOR-NAME" if package information is not available.
      Returns:
      the implementation vendor
    • getTitle

      public String getTitle()
      Gets the implementation title of the package. Will return "TITLE" if package information is not available.
      Returns:
      the implementation title
    • getSpecVersion

      public String getSpecVersion()
      Gets the specification version of the package. Will return "SPEC-VERSION" if package information is not available.
      Returns:
      the specification version.
    • getSpecVendor

      public String getSpecVendor()
      Gets the specification vendor of the package. Will return "SPEC-VENDOR" if package information is not available.
      Returns:
      the specification vendor
    • getSpecTitle

      public String getSpecTitle()
      Gets the specification title of the package. Will return "SPEC-TITLE" if package information is not available.
      Returns:
      the specification title