Class ModuleInfo
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.modules.ModuleInfo
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public class ModuleInfo extends java.lang.Object implements java.io.SerializableContains meta information about a module, such as its id, name description, required versions, hook classes, and jar file information- See Also:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classModuleInfo.Builderstatic classModuleInfo.JarInfoContains meta information about a module's jar file, such as its scope and native lib parameters, and path within the module package.static classModuleInfo.LibraryInfostatic classModuleInfo.ModuleDependency
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)longgetCrc()The module file's crc is calculated when the modl file is loaded in the Gateway.java.util.List<ModuleInfo.ModuleDependency>getDependencies()java.util.List<ModuleInfo.ModuleDependency>getDependencies(int scope)java.lang.StringgetDescription()java.lang.StringgetDocumentationRoot()The root of the module's documentation, expected to be an HTML file and must be stored under a folder named "doc"java.util.List<ModuleInfo.JarInfo>getExports()java.util.Map<java.lang.Integer,java.lang.String>getHooks()java.lang.StringgetId()java.lang.StringgetInstallPath()The location of the module on the local file system.java.util.List<ModuleInfo.JarInfo>getJars()java.util.List<ModuleInfo.LibraryInfo>getLibsRequired()java.lang.StringgetLicenseFile()The name of an HTML-formatted license file to be found in the module's *.modl fileLicenseStategetLicenseState()java.lang.StringgetName()intgetRequiredFrameworkVersion()VersiongetRequiredIgnitionVersion()java.lang.StringgetVendorContactInfo()intgetVendorId()java.lang.StringgetVendorName()VersiongetVersion()inthashCode()booleanisFree()booleanisMakerEditionCompatible()booleanisSelfSigned()booleanisTrialMode()Returns true if the module is not marked as a free module AND either the module's license state is not set or the license state is a trial licensestatic ModuleInfo.BuildernewBuilder()voidsetCrc(long crc)voidsetFree()Set to true when modules implement GatewayModuleHook.isFreeModule() to return truevoidsetInstallPath(java.lang.String installPath)Sets the location of the module on the local file system.voidsetLicenseState(LicenseState newState)voidsetMakerEditionCompatible()voidsetSelfSigned()Setter needs to exist so that the Marketplace can add the selfsigned=true property to a module.xml when a user is signing their own module.voidsetVendorInfo(int vendorId, java.lang.String vendorName, java.lang.String vendorContactInfo)Setter needs to exist so that the Marketplace can add the vendor info to module.xml when uploading a customer's module.static java.util.List<ModuleInfo>sortDependencyOrder(java.util.List<ModuleInfo> list, int scope, boolean reverse)Sorts the list of module infos in correct dependency order.java.lang.StringtoString()java.lang.StringtoXML()
 
- 
- 
- 
Method Detail- 
newBuilderpublic static ModuleInfo.Builder newBuilder() 
 - 
getIdpublic java.lang.String getId() - Returns:
- The id for this module. Must be unique.
 
 - 
getNamepublic java.lang.String getName() - Returns:
- Human-readable name for the module
 
 - 
getDescriptionpublic java.lang.String getDescription() 
 - 
getVendorIdpublic int getVendorId() 
 - 
getVendorNamepublic java.lang.String getVendorName() 
 - 
getVendorContactInfopublic java.lang.String getVendorContactInfo() 
 - 
setVendorInfopublic void setVendorInfo(int vendorId, java.lang.String vendorName, java.lang.String vendorContactInfo)Setter needs to exist so that the Marketplace can add the vendor info to module.xml when uploading a customer's module.
 - 
getLicenseFilepublic java.lang.String getLicenseFile() The name of an HTML-formatted license file to be found in the module's *.modl file
 - 
getDocumentationRootpublic java.lang.String getDocumentationRoot() The root of the module's documentation, expected to be an HTML file and must be stored under a folder named "doc"
 - 
getVersionpublic Version getVersion() 
 - 
getRequiredIgnitionVersionpublic Version getRequiredIgnitionVersion() 
 - 
getRequiredFrameworkVersionpublic int getRequiredFrameworkVersion() 
 - 
getHookspublic java.util.Map<java.lang.Integer,java.lang.String> getHooks() 
 - 
getJarspublic java.util.List<ModuleInfo.JarInfo> getJars() 
 - 
getExportspublic java.util.List<ModuleInfo.JarInfo> getExports() 
 - 
getLibsRequiredpublic java.util.List<ModuleInfo.LibraryInfo> getLibsRequired() 
 - 
getDependencies@Nonnull public java.util.List<ModuleInfo.ModuleDependency> getDependencies() 
 - 
getDependencies@Nonnull public java.util.List<ModuleInfo.ModuleDependency> getDependencies(int scope) 
 - 
isFreepublic boolean isFree() 
 - 
isSelfSignedpublic boolean isSelfSigned() 
 - 
setFreepublic void setFree() Set to true when modules implement GatewayModuleHook.isFreeModule() to return true
 - 
isMakerEditionCompatiblepublic boolean isMakerEditionCompatible() 
 - 
setMakerEditionCompatiblepublic void setMakerEditionCompatible() 
 - 
setSelfSignedpublic void setSelfSigned() Setter needs to exist so that the Marketplace can add the selfsigned=true property to a module.xml when a user is signing their own module.
 - 
isTrialModepublic boolean isTrialMode() Returns true if the module is not marked as a free module AND either the module's license state is not set or the license state is a trial license
 - 
equalspublic boolean equals(java.lang.Object o) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
getLicenseStatepublic LicenseState getLicenseState() 
 - 
setLicenseStatepublic void setLicenseState(LicenseState newState) 
 - 
getCrcpublic long getCrc() The module file's crc is calculated when the modl file is loaded in the Gateway.
 - 
setCrcpublic void setCrc(long crc) 
 - 
getInstallPathpublic java.lang.String getInstallPath() The location of the module on the local file system. The value should be an absolute path. Intentionally left out of XML generation since the install path has no meaning outside the local system.
 - 
setInstallPathpublic void setInstallPath(java.lang.String installPath) Sets the location of the module on the local file system. The value should be an absolute path.
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
toXMLpublic java.lang.String toXML() 
 - 
sortDependencyOrderpublic static java.util.List<ModuleInfo> sortDependencyOrder(java.util.List<ModuleInfo> list, int scope, boolean reverse) throws DependencyCycleException Sorts the list of module infos in correct dependency order. Uses a digraph to sort the modules. Will ignore missing dependencies.- Throws:
- DependencyCycleException- If a dependency cycle is detected
 
 
- 
 
-