Class ModuleInfo
java.lang.Object
com.inductiveautomation.ignition.common.modules.ModuleInfo
- All Implemented Interfaces:
- Serializable
Contains meta information about a module, such as its id, name description, required versions, hook classes, and jar
 file information
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic classContains meta information about a module's jar file, such as its scope and native lib parameters, and path within the module package.static classstatic class
- 
Method SummaryModifier and TypeMethodDescriptionbooleanlonggetCrc()The module file's crc is calculated when the modl file is loaded in the Gateway.getDependencies(int scope) The root of the module's documentation, expected to be an HTML file and must be stored under a folder named "doc"getHooks()getId()The location of the module on the local file system.getJars()The name of an HTML-formatted license file to be found in the module's *.modl filegetName()intintinthashCode()booleanisFree()booleanbooleanbooleanReturns 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.BuildervoidsetCrc(long crc) voidsetFree()Set to true when modules implement GatewayModuleHook.isFreeModule() to return truevoidsetInstallPath(String installPath) Sets the location of the module on the local file system.voidsetLicenseState(LicenseState newState) voidvoidSetter 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, String vendorName, 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 List<ModuleInfo>sortDependencyOrder(List<ModuleInfo> list, int scope, boolean reverse) Sorts the list of module infos in correct dependency order.toString()toXML()
- 
Method Details- 
newBuilder
- 
getId- Returns:
- The id for this module. Must be unique.
 
- 
getName- Returns:
- Human-readable name for the module
 
- 
getDescription
- 
getVendorIdpublic int getVendorId()
- 
getVendorName
- 
getVendorContactInfo
- 
setVendorInfoSetter needs to exist so that the Marketplace can add the vendor info to module.xml when uploading a customer's module.
- 
getLicenseFileThe name of an HTML-formatted license file to be found in the module's *.modl file
- 
getDocumentationRootThe root of the module's documentation, expected to be an HTML file and must be stored under a folder named "doc"
- 
getVersion
- 
getRequiredIgnitionVersion
- 
getRequiredFrameworkVersionpublic int getRequiredFrameworkVersion()
- 
getHooks
- 
getJars
- 
getExports
- 
getLibsRequired
- 
getDependencies
- 
getDependencies
- 
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
- 
equals
- 
hashCodepublic int hashCode()
- 
getLicenseState
- 
setLicenseState
- 
getCrcpublic long getCrc()The module file's crc is calculated when the modl file is loaded in the Gateway.
- 
setCrcpublic void setCrc(long crc) 
- 
getInstallPathThe 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.
- 
setInstallPathSets the location of the module on the local file system. The value should be an absolute path.
- 
toString
- 
toXML
- 
sortDependencyOrderpublic static List<ModuleInfo> sortDependencyOrder(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
 
 
-