Package com.helger.commons.thirdparty
Class ThirdPartyModule
java.lang.Object
com.helger.commons.thirdparty.ThirdPartyModule
- All Implemented Interfaces:
IHasDisplayName,IThirdPartyModule,IHasVersion
The default implementation of the
IThirdPartyModule interface.- Author:
- Philip Helger
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanBy default a third-party module is not optional -
Constructor Summary
ConstructorsConstructorDescriptionThirdPartyModule(IThirdPartyModule aOther, boolean bOptional) ThirdPartyModule(String sDisplayName, String sCopyrightOwner, ILicense aLicense) ThirdPartyModule(String sDisplayName, String sCopyrightOwner, ILicense aLicense, boolean bOptional) ThirdPartyModule(String sDisplayName, String sCopyrightOwner, ILicense aLicense, Version aVersion, String sWebsiteURL) ThirdPartyModule(String sDisplayName, String sCopyrightOwner, ILicense aLicense, Version aVersion, String sWebsiteURL, boolean bOptional) -
Method Summary
-
Field Details
-
DEFAULT_OPTIONAL
public static final boolean DEFAULT_OPTIONALBy default a third-party module is not optional- See Also:
-
-
Constructor Details
-
ThirdPartyModule
-
ThirdPartyModule
-
ThirdPartyModule
-
ThirdPartyModule
-
ThirdPartyModule
-
-
Method Details
-
getDisplayName
- Specified by:
getDisplayNamein interfaceIHasDisplayName- Returns:
- The display name of this object. Should never be
null.
-
getCopyrightOwner
- Specified by:
getCopyrightOwnerin interfaceIThirdPartyModule- Returns:
- The copyright owner of this module. May not be
null.
-
getLicense
- Specified by:
getLicensein interfaceIThirdPartyModule- Returns:
- The license used by this module. May not be
null.
-
getVersion
- Specified by:
getVersionin interfaceIHasVersion- Specified by:
getVersionin interfaceIThirdPartyModule- Returns:
- The optional version of this product. May be
nullbecause this means another place where the version number needs to be maintained.
-
getWebSiteURL
- Specified by:
getWebSiteURLin interfaceIThirdPartyModule- Returns:
- The optional web site of the module. May be
null.
-
isOptional
public boolean isOptional()- Specified by:
isOptionalin interfaceIThirdPartyModule- Returns:
trueif this is an optional thirdparty module,falseif it is required.
-
getAsOptionalCopy
- Specified by:
getAsOptionalCopyin interfaceIThirdPartyModule- Returns:
- A copy of this module but being optional. If this module is already
optional,
thisis returned.
-
getAsNonOptionalCopy
- Specified by:
getAsNonOptionalCopyin interfaceIThirdPartyModule- Returns:
- A copy of this module but without being optional. If this module is
not optional,
thisis returned.
-
equals
-
hashCode
public int hashCode() -
toString
-