Class ThirdPartyModule

java.lang.Object
com.helger.base.thirdparty.ThirdPartyModule
All Implemented Interfaces:
IHasDisplayName, IThirdPartyModule, IHasVersion

@Immutable public final class ThirdPartyModule extends Object implements IThirdPartyModule
The default implementation of the IThirdPartyModule interface.
Author:
Philip Helger
  • Field Details

    • DEFAULT_OPTIONAL

      public static final boolean DEFAULT_OPTIONAL
      By default a third-party module is not optional
      See Also:
  • Constructor Details

    • ThirdPartyModule

      public ThirdPartyModule(@NonNull IThirdPartyModule aOther, boolean bOptional)
      Constructor copying from another third party module with a different optional flag.
      Parameters:
      aOther - The third party module to copy from. May not be null.
      bOptional - true if the module is optional, false otherwise.
    • ThirdPartyModule

      public ThirdPartyModule(@Nonempty @NonNull @Nonempty String sDisplayName, @Nonempty @NonNull @Nonempty String sCopyrightOwner, @NonNull ILicense aLicense)
      Constructor with required fields and default optional flag.
      Parameters:
      sDisplayName - The display name. Neither null nor empty.
      sCopyrightOwner - The copyright owner. Neither null nor empty.
      aLicense - The license. May not be null.
    • ThirdPartyModule

      public ThirdPartyModule(@Nonempty @NonNull @Nonempty String sDisplayName, @Nonempty @NonNull @Nonempty String sCopyrightOwner, @NonNull ILicense aLicense, boolean bOptional)
      Constructor with required fields and optional flag.
      Parameters:
      sDisplayName - The display name. Neither null nor empty.
      sCopyrightOwner - The copyright owner. Neither null nor empty.
      aLicense - The license. May not be null.
      bOptional - true if the module is optional, false otherwise.
    • ThirdPartyModule

      public ThirdPartyModule(@Nonempty @NonNull @Nonempty String sDisplayName, @Nonempty @NonNull @Nonempty String sCopyrightOwner, @NonNull ILicense aLicense, @Nullable Version aVersion, @Nullable String sWebsiteURL)
      Constructor with all fields except optional flag.
      Parameters:
      sDisplayName - The display name. Neither null nor empty.
      sCopyrightOwner - The copyright owner. Neither null nor empty.
      aLicense - The license. May not be null.
      aVersion - The version. May be null.
      sWebsiteURL - The website URL. May be null.
    • ThirdPartyModule

      public ThirdPartyModule(@Nonempty @NonNull @Nonempty String sDisplayName, @Nonempty @NonNull @Nonempty String sCopyrightOwner, @NonNull ILicense aLicense, @Nullable Version aVersion, @Nullable String sWebsiteURL, boolean bOptional)
      Full constructor with all fields.
      Parameters:
      sDisplayName - The display name. Neither null nor empty.
      sCopyrightOwner - The copyright owner. Neither null nor empty.
      aLicense - The license. May not be null.
      aVersion - The version. May be null.
      sWebsiteURL - The website URL. May be null.
      bOptional - true if the module is optional, false otherwise.
  • Method Details